top.js 700 B

1234567891011121314151617181920212223242526272829
  1. 'use strict';
  2. const _ = require('lodash');
  3. const meta = require('./.top.js');
  4. const Controller = require('egg').Controller;
  5. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  6. // 作业监控管理
  7. class TopController extends Controller {
  8. constructor(ctx) {
  9. super(ctx);
  10. this.service = this.ctx.service.top;
  11. }
  12. async initServeNode() {
  13. // await this.ctx.service.creeperxtsqnode.creeper();
  14. // await this.ctx.service.creeperxtsqnode.sshcon();
  15. // 需要真的查库里数据
  16. this.ctx.ok();
  17. }
  18. async util() {
  19. // await this.ctx.service.creeperxtsread.qnodes();
  20. this.ctx.ok();
  21. }
  22. }
  23. module.exports = CrudController(TopController, meta);