tInformationDelivery.js 619 B

123456789101112131415161718192021222324
  1. 'use strict';
  2. const _ = require('lodash');
  3. const meta = require('./.tInformationDelivery.js');
  4. const Controller = require('egg').Controller;
  5. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  6. // 管理
  7. class TInformationDeliveryController extends Controller {
  8. constructor(ctx) {
  9. super(ctx);
  10. this.service = this.ctx.service.tInformationDelivery;
  11. }
  12. // 条件查询
  13. async select() {
  14. const res = await this.service.select(this.ctx.query);
  15. this.ctx.ok({ ...res });
  16. }
  17. }
  18. module.exports = CrudController(TInformationDeliveryController, meta);