mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 22:20:27 +08:00
33 lines
505 B
JavaScript
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;
|