cool-admin-vue/cool/modules/base/service/plugin/info.js

33 lines
505 B
JavaScript
Raw Normal View History

2021-02-28 01:55:04 +08:00
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;