info.js 510 B

1234567891011121314151617181920212223242526272829303132
  1. import { BaseService, Service, Permission } from "cl-admin";
  2. @Service("base/plugin/info")
  3. class PluginInfo extends BaseService {
  4. @Permission("config")
  5. config(data) {
  6. return this.request({
  7. url: "/config",
  8. method: "POST",
  9. data
  10. });
  11. }
  12. @Permission("getConfig")
  13. getConfig(params) {
  14. return this.request({
  15. url: "/getConfig",
  16. params
  17. });
  18. }
  19. @Permission("enable")
  20. enable(data) {
  21. return this.request({
  22. url: "/enable",
  23. method: "POST",
  24. data
  25. });
  26. }
  27. }
  28. export default PluginInfo;