123456789101112131415161718 |
- 'use strict';
- const _ = require('lodash');
- const Controller = require('egg').Controller;
- const meta = require('./.task.js');
- const { CrudController } = require('naf-framework-mongoose/lib/controller');
- // 作业管理
- class TaskController extends Controller {
- constructor(ctx) {
- super(ctx);
- this.service = this.ctx.service.task;
- }
- }
- module.exports = CrudController(TaskController, meta);
|