dock.js 550 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. // const _ = require('lodash');
  3. const meta = require('./.dock.js');
  4. const Controller = require('egg').Controller;
  5. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  6. // 公共聊天表管理
  7. class DockController extends Controller {
  8. constructor(ctx) {
  9. super(ctx);
  10. this.service = this.ctx.service.dock;
  11. }
  12. // GET
  13. // 查询
  14. async myapply() {
  15. const res = await this.service.myapply(this.ctx.query);
  16. this.ctx.ok({ ...res });
  17. }
  18. }
  19. module.exports = CrudController(DockController, meta);