@be-link/ecommerce-product-service-node-sdk 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/modules/BaseService.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export default abstract class BaseService {
|
|
|
6
6
|
/** URL一级路径 */
|
|
7
7
|
protected abstract prefixUrl: string;
|
|
8
8
|
/** 子网域名 */
|
|
9
|
-
protected readonly natDevHost = "https://product-service-196345-5-1304510571.sh.run.tcloudbase.com
|
|
9
|
+
protected readonly natDevHost = "https://product-service-196345-5-1304510571.sh.run.tcloudbase.com";
|
|
10
10
|
protected readonly natProdHost = "";
|
|
11
11
|
/** 获取API URL */
|
|
12
12
|
protected getApiUrl(func: Function): string;
|
package/modules/BaseService.js
CHANGED
|
@@ -13,7 +13,7 @@ class BaseService {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
/** 子网域名 */
|
|
15
15
|
// protected readonly natDevHost = 'http://yayvmsbg.product-service.07vmo6rk.by26x7u9.com:8090'
|
|
16
|
-
this.natDevHost = 'https://product-service-196345-5-1304510571.sh.run.tcloudbase.com
|
|
16
|
+
this.natDevHost = 'https://product-service-196345-5-1304510571.sh.run.tcloudbase.com';
|
|
17
17
|
this.natProdHost = '';
|
|
18
18
|
}
|
|
19
19
|
/** 获取API URL */
|
|
@@ -19,6 +19,7 @@ declare class ProductService extends BaseService implements Service.ProductContr
|
|
|
19
19
|
getProductSkuInfo(request: Service.Request.getProductSkuInfo): Promise<Service.Response.getProductSkuInfo>;
|
|
20
20
|
searchProductByName(request: Service.Request.searchProductByName): Promise<Service.Response.searchProductByName[]>;
|
|
21
21
|
queryBindSkus(request: Service.Request.queryBindSkus): Promise<Service.Response.queryBindSkus[]>;
|
|
22
|
+
productQrCode(request: Service.Request.productQrCode): Promise<Service.Response.productQrCode>;
|
|
22
23
|
}
|
|
23
24
|
export declare const productService: ProductService;
|
|
24
25
|
export default productService;
|
|
@@ -72,6 +72,9 @@ let ProductService = class ProductService extends BaseService_1.default {
|
|
|
72
72
|
queryBindSkus(request) {
|
|
73
73
|
return (0, http_1.callApi)(this.getApiUrl(this.queryBindSkus), request);
|
|
74
74
|
}
|
|
75
|
+
productQrCode(request) {
|
|
76
|
+
return (0, http_1.callApi)(this.getApiUrl(this.productQrCode), request);
|
|
77
|
+
}
|
|
75
78
|
};
|
|
76
79
|
__decorate([
|
|
77
80
|
(0, tsoa_1.OperationId)('商品列表'),
|
|
@@ -158,6 +161,11 @@ __decorate([
|
|
|
158
161
|
(0, tsoa_1.Post)('query-bind-skus'),
|
|
159
162
|
__param(0, (0, tsoa_1.Body)())
|
|
160
163
|
], ProductService.prototype, "queryBindSkus", null);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, tsoa_1.OperationId)('获取商品二维码'),
|
|
166
|
+
(0, tsoa_1.Post)('product-qr-code'),
|
|
167
|
+
__param(0, (0, tsoa_1.Body)())
|
|
168
|
+
], ProductService.prototype, "productQrCode", null);
|
|
161
169
|
ProductService = __decorate([
|
|
162
170
|
(0, tsoa_1.Route)('product'),
|
|
163
171
|
(0, tsoa_1.Tags)('Product')
|
|
@@ -288,6 +288,10 @@ export declare namespace ProductService {
|
|
|
288
288
|
/** SKU Id */
|
|
289
289
|
skuId: string;
|
|
290
290
|
}
|
|
291
|
+
interface productQrCode {
|
|
292
|
+
/** 路径 */
|
|
293
|
+
path: string;
|
|
294
|
+
}
|
|
291
295
|
}
|
|
292
296
|
namespace Response {
|
|
293
297
|
interface create {
|
|
@@ -565,6 +569,10 @@ export declare namespace ProductService {
|
|
|
565
569
|
/** 上下架状态 */
|
|
566
570
|
status: string;
|
|
567
571
|
}
|
|
572
|
+
interface productQrCode {
|
|
573
|
+
/** 二维码URL */
|
|
574
|
+
qrCodeUrl: string;
|
|
575
|
+
}
|
|
568
576
|
}
|
|
569
577
|
/**
|
|
570
578
|
* ProductLive Controller 接口定义
|
|
@@ -638,5 +646,9 @@ export declare namespace ProductService {
|
|
|
638
646
|
* 获取绑定的SKU信息
|
|
639
647
|
*/
|
|
640
648
|
queryBindSkus(request: ProductService.Request.queryBindSkus): Promise<ProductService.Response.queryBindSkus[]>;
|
|
649
|
+
/**
|
|
650
|
+
* 商品二维码
|
|
651
|
+
*/
|
|
652
|
+
productQrCode(request: ProductService.Request.productQrCode): Promise<ProductService.Response.productQrCode>;
|
|
641
653
|
}
|
|
642
654
|
}
|