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