UNPKG

youzanyun-devtool-worker

Version:

23 lines (22 loc) 863 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const spring4js_nodejs_1 = require("spring4js-nodejs"); let ApplicationService = class ApplicationService { async getAppDetail(projectName) { let res = await this.requestService.dubboCallWithAuthV2("com.youzan.baymax.api.CloudAppService", "findCloudAppByProjectName", [{ projectName }], { projectName }); if (+res.code !== 200 && +res.code !== 0) { throw new Error(res.message); } return { appDetail: res.data }; } }; tslib_1.__decorate([ (0, spring4js_nodejs_1.Resource)() ], ApplicationService.prototype, "requestService", void 0); ApplicationService = tslib_1.__decorate([ (0, spring4js_nodejs_1.Service)() ], ApplicationService); exports.default = ApplicationService;