icon.js 695 B

1234567891011121314151617181920212223242526272829303132333435
  1. 'use strict';
  2. const Controller = require('egg').Controller;
  3. /*
  4. 军标库请求处理
  5. */
  6. class CoinController extends Controller {
  7. async list() {
  8. const {ctx, service} = this;
  9. await ctx.queryHandleByService( service.icon, "list");
  10. }
  11. async delete() {
  12. const {ctx, service} = this;
  13. await ctx.queryHandleByService( service.icon, "delete");
  14. }
  15. async edit() {
  16. const {ctx, service} = this;
  17. await ctx.bodyHandleByService( service.icon, "edit", "更新成功");
  18. }
  19. async add() {
  20. const {ctx, service} = this;
  21. await ctx.bodyHandleByService( service.icon, "add", "添加成功");
  22. }
  23. }
  24. module.exports = CoinController;