UNPKG

youzanyun-devtool-worker

Version:

- web - ws - proxy

21 lines (20 loc) 814 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.dubboCallWithAuth("com.youzan.baymax.api.CloudAppService", "findCloudAppByProjectName", [{ projectName }]); if (+res.code !== 200 && +res.code !== 0) { throw new Error(res.message); } return { appDetail: res.data }; } }; tslib_1.__decorate([ spring4js_nodejs_1.Resource() ], ApplicationService.prototype, "requestService", void 0); ApplicationService = tslib_1.__decorate([ spring4js_nodejs_1.Service() ], ApplicationService); exports.default = ApplicationService;