123456789101112131415161718192021222324 |
- 'use strict';
- const _ = require('lodash');
- const meta = require('./.tPolicyInterpretation.js');
- const Controller = require('egg').Controller;
- const { CrudController } = require('naf-framework-mongoose/lib/controller');
- // 管理
- class TPolicyInterpretationController extends Controller {
- constructor(ctx) {
- super(ctx);
- this.service = this.ctx.service.tPolicyInterpretation;
- }
- // 条件查询
- async select() {
- const res = await this.service.select(this.ctx.query);
- this.ctx.ok({ ...res });
- }
- }
- module.exports = CrudController(TPolicyInterpretationController, meta);
|