2021-03-30 18:23:08 +08:00

33 lines
524 B
TypeScript

import { BaseService, Service, Permission } from "/@/core";
@Service("base/plugin/info")
class PluginInfo extends BaseService {
@Permission("config")
config(data: any) {
return this.request({
url: "/config",
method: "POST",
data
});
}
@Permission("getConfig")
getConfig(params: any) {
return this.request({
url: "/getConfig",
params
});
}
@Permission("enable")
enable(data: any) {
return this.request({
url: "/enable",
method: "POST",
data
});
}
}
export default PluginInfo;