UNPKG

youzanyun-devtool-worker

Version:

- web - ws - proxy

22 lines (21 loc) 841 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const spring4js_nodejs_1 = require("spring4js-nodejs"); const get_1 = tslib_1.__importDefault(require("lodash/get")); let ShopService = class ShopService { async getTestShopList(param) { let res = await this.requestService.dubboCallWithAuth("com.youzan.baymax.api.DiyTestShopService", "getTestShopByApp", [param]); if (+res.code !== 200 && +res.code !== 0) { throw new Error(res.message); } return { shopList: get_1.default(res.data, 'shopList') }; } }; tslib_1.__decorate([ spring4js_nodejs_1.Resource() ], ShopService.prototype, "requestService", void 0); ShopService = tslib_1.__decorate([ spring4js_nodejs_1.Service() ], ShopService); exports.default = ShopService;