set.js 504 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. const _ = require('lodash');
  3. const meta = require('./.set.js');
  4. const Controller = require('egg').Controller;
  5. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  6. // 站点信息管理
  7. class SetController extends Controller {
  8. constructor(ctx) {
  9. super(ctx);
  10. this.service = this.ctx.service.set;
  11. }
  12. async show() {
  13. const res = await this.service.show();
  14. this.ctx.ok({ data: res });
  15. }
  16. }
  17. module.exports = CrudController(SetController, meta);