12345678910111213141516171819 |
- 'use strict';
- const _ = require('lodash');
- const meta = require('./.department.js');
- const Controller = require('egg').Controller;
- const { CrudController } = require('naf-framework-mongoose/lib/controller');
- // 部门管理
- class DepartmentController extends Controller {
- constructor(ctx) {
- super(ctx);
- this.service = this.ctx.service.department;
- }
- }
- module.exports = CrudController(DepartmentController, meta);
|