UNPKG

youzanyun-devtool-worker

Version:

35 lines (34 loc) 1.28 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, branch) { const result = await this.customApiService.getExtImplAndRule(projectId, branch); return result; } async deployConfig(projectId, branch) { const res = await this.h5ExtensionUploadService.uploadInfo(projectId); return res ? { code: 200, data: res } : res; } }; tslib_1.__decorate([ (0, spring4js_nodejs_1.Resource)() ], CommonToolService.prototype, "deployPollService", void 0); tslib_1.__decorate([ (0, spring4js_nodejs_1.Resource)() ], CommonToolService.prototype, "projectService", void 0); tslib_1.__decorate([ (0, spring4js_nodejs_1.Resource)() ], CommonToolService.prototype, "customApiService", void 0); tslib_1.__decorate([ (0, spring4js_nodejs_1.Resource)() ], CommonToolService.prototype, "h5ExtensionUploadService", void 0); CommonToolService = tslib_1.__decorate([ (0, spring4js_nodejs_1.Service)() ], CommonToolService); exports.default = CommonToolService;