1234567891011121314151617181920212223242526272829 |
- 'use strict';
- const _ = require('lodash');
- const meta = require('./.top.js');
- const Controller = require('egg').Controller;
- const { CrudController } = require('naf-framework-mongoose/lib/controller');
- // 作业监控管理
- class TopController extends Controller {
- constructor(ctx) {
- super(ctx);
- this.service = this.ctx.service.top;
- }
- async initServeNode() {
- // await this.ctx.service.creeperxtsqnode.creeper();
- // await this.ctx.service.creeperxtsqnode.sshcon();
- // 需要真的查库里数据
- this.ctx.ok();
- }
- async util() {
- // await this.ctx.service.creeperxtsread.qnodes();
- this.ctx.ok();
- }
- }
- module.exports = CrudController(TopController, meta);
|