1234567891011121314151617181920212223242526272829303132333435 |
- 'use strict';
- const Controller = require('egg').Controller;
- /*
- 军标库请求处理
- */
- class CoinController extends Controller {
- async list() {
- const {ctx, service} = this;
- await ctx.queryHandleByService( service.icon, "list");
- }
- async delete() {
- const {ctx, service} = this;
- await ctx.queryHandleByService( service.icon, "delete");
- }
- async edit() {
- const {ctx, service} = this;
- await ctx.bodyHandleByService( service.icon, "edit", "更新成功");
- }
- async add() {
- const {ctx, service} = this;
- await ctx.bodyHandleByService( service.icon, "add", "添加成功");
- }
- }
- module.exports = CoinController;
|