UNPKG

youzanyun-devtool-worker

Version:

- web - ws - proxy

40 lines (39 loc) 1.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const spring4js_nodejs_1 = require("spring4js-nodejs"); let CommonToolService = class CommonToolService { constructor() { } async start() { console.log('start'); } async getGeneralConfig(projectId) { const result = await this.customApiService.getExtImplAndRule(projectId); return result; } async deployConfig(projectId) { const res = await this.h5ExtensionUploadService.uploadInfo(projectId); if (!res) { return res; } const deployResult = await this.deployPollService.deploy('ruleConfig'); return deployResult; } }; tslib_1.__decorate([ spring4js_nodejs_1.Resource() ], CommonToolService.prototype, "deployPollService", void 0); tslib_1.__decorate([ spring4js_nodejs_1.Resource() ], CommonToolService.prototype, "projectService", void 0); tslib_1.__decorate([ spring4js_nodejs_1.Resource() ], CommonToolService.prototype, "customApiService", void 0); tslib_1.__decorate([ spring4js_nodejs_1.Resource() ], CommonToolService.prototype, "h5ExtensionUploadService", void 0); CommonToolService = tslib_1.__decorate([ spring4js_nodejs_1.Service() ], CommonToolService); exports.default = CommonToolService;