cool-admin-vue/cool/modules/base/service/plugin/info.js
2021-02-28 22:24:54 +08:00

33 lines
505 B
JavaScript

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