youzanyun-devtool-worker
Version:
- web - ws - proxy
43 lines (42 loc) • 1.55 kB
JavaScript
;
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');
}
get appDetail() {
return this.deployPollService.appDetail;
}
async getGeneralConfig(projectId) {
const { proName } = await this.projectService.getProjectById(projectId);
const { appDetail: { appId } } = await this.applicationService.getAppDetail(proName);
let res = await this.requestService.dubboCallWithAuth("com.youzan.cloud.darwin.api.service.local.LocalExtRuleService", "queryExtImplAndRuleByAppId", [appId]);
console.log(appId, res);
if (+res.code !== 200 && +res.code !== 0) {
throw new Error(res.message);
}
return res;
}
loopDeploy() {
}
};
tslib_1.__decorate([
spring4js_nodejs_1.Resource()
], CommonToolService.prototype, "deployPollService", void 0);
tslib_1.__decorate([
spring4js_nodejs_1.Resource()
], CommonToolService.prototype, "requestService", void 0);
tslib_1.__decorate([
spring4js_nodejs_1.Resource()
], CommonToolService.prototype, "projectService", void 0);
tslib_1.__decorate([
spring4js_nodejs_1.Resource()
], CommonToolService.prototype, "applicationService", void 0);
CommonToolService = tslib_1.__decorate([
spring4js_nodejs_1.Service()
], CommonToolService);
exports.default = CommonToolService;