UNPKG

youzanyun-devtool-worker

Version:

- web - ws - proxy

39 lines (38 loc) 1.52 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const spring4js_nodejs_1 = require("spring4js-nodejs"); const BaseController_1 = tslib_1.__importDefault(require("../BaseController")); let GroupController = class GroupController extends BaseController_1.default { async getGroupList(ctx) { const data = ctx.query; const res = await this.dpRequestService.queryGroupList(data); return res; } async saveGroup(ctx) { const data = ctx.request.body; const res = await this.dpRequestService.saveGroup(data); return res; } async deleteGroup(ctx) { const data = ctx.request.body; const res = await this.dpRequestService.deleteGroup(data); return res; } }; tslib_1.__decorate([ spring4js_nodejs_1.Resource() ], GroupController.prototype, "dpRequestService", void 0); tslib_1.__decorate([ spring4js_nodejs_1.Path("group/list", spring4js_nodejs_1.HttpMethod.GET) ], GroupController.prototype, "getGroupList", null); tslib_1.__decorate([ spring4js_nodejs_1.Path("group/save", spring4js_nodejs_1.HttpMethod.POST) ], GroupController.prototype, "saveGroup", null); tslib_1.__decorate([ spring4js_nodejs_1.Path("group/delete", spring4js_nodejs_1.HttpMethod.POST) ], GroupController.prototype, "deleteGroup", null); GroupController = tslib_1.__decorate([ spring4js_nodejs_1.Controller("/api/design-platform") ], GroupController); exports.default = GroupController;