mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-15 15:42:50 +00:00
33 lines
524 B
TypeScript
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;
|