@be-link/ecommerce-promotion-service-node-sdk 0.0.13 → 0.0.15
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.
|
@@ -7,6 +7,7 @@ declare class PointsMallService extends BaseService implements Service.PointsMal
|
|
|
7
7
|
batchToggleProductEnabled(request: Service.Request.batchToggleProductEnabled): Promise<void>;
|
|
8
8
|
batchToggleProductOnline(request: Service.Request.batchToggleProductOnline): Promise<void>;
|
|
9
9
|
queryProducts(request: Service.Request.queryProducts): Promise<Service.Response.queryProducts>;
|
|
10
|
+
getProductDetail(request: Service.Request.getProductDetail): Promise<Service.Response.getProductDetail>;
|
|
10
11
|
}
|
|
11
12
|
export declare const pointsMallService: PointsMallService;
|
|
12
13
|
export default pointsMallService;
|
|
@@ -36,6 +36,9 @@ let PointsMallService = class PointsMallService extends BaseService_1.default {
|
|
|
36
36
|
queryProducts(request) {
|
|
37
37
|
return (0, http_1.callApi)(this.getApiUrl(this.queryProducts), request);
|
|
38
38
|
}
|
|
39
|
+
getProductDetail(request) {
|
|
40
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getProductDetail), request);
|
|
41
|
+
}
|
|
39
42
|
};
|
|
40
43
|
__decorate([
|
|
41
44
|
(0, tsoa_1.OperationId)('创建积分商城商品'),
|
|
@@ -62,6 +65,11 @@ __decorate([
|
|
|
62
65
|
(0, tsoa_1.Post)('query-products'),
|
|
63
66
|
__param(0, (0, tsoa_1.Body)())
|
|
64
67
|
], PointsMallService.prototype, "queryProducts", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, tsoa_1.OperationId)('根据商品ID查询商品详情'),
|
|
70
|
+
(0, tsoa_1.Post)('get-product-detail'),
|
|
71
|
+
__param(0, (0, tsoa_1.Body)())
|
|
72
|
+
], PointsMallService.prototype, "getProductDetail", null);
|
|
65
73
|
PointsMallService = __decorate([
|
|
66
74
|
(0, tsoa_1.Route)('points-mall'),
|
|
67
75
|
(0, tsoa_1.Tags)('PointsMall')
|
|
@@ -103,6 +103,11 @@ export declare namespace Service {
|
|
|
103
103
|
/** 每页数量 */
|
|
104
104
|
pageSize?: number;
|
|
105
105
|
}
|
|
106
|
+
/** 根据商品ID查询商品详情 */
|
|
107
|
+
interface getProductDetail {
|
|
108
|
+
/** 商品ID */
|
|
109
|
+
productId: string;
|
|
110
|
+
}
|
|
106
111
|
}
|
|
107
112
|
namespace Response {
|
|
108
113
|
/** 创建积分商城商品响应 */
|
|
@@ -121,6 +126,11 @@ export declare namespace Service {
|
|
|
121
126
|
/** 每页数量 */
|
|
122
127
|
pageSize: number;
|
|
123
128
|
}
|
|
129
|
+
/** 查询商品详情响应 */
|
|
130
|
+
interface getProductDetail {
|
|
131
|
+
/** 商品详情 */
|
|
132
|
+
data: Entity.ProductPointExchange;
|
|
133
|
+
}
|
|
124
134
|
}
|
|
125
135
|
interface PointsMallController {
|
|
126
136
|
/** 创建积分商城商品 */
|
|
@@ -133,5 +143,7 @@ export declare namespace Service {
|
|
|
133
143
|
batchToggleProductOnline(request: Service.Request.batchToggleProductOnline, req: any): Promise<void>;
|
|
134
144
|
/** 根据条件查询积分商城商品 */
|
|
135
145
|
queryProducts(request: Service.Request.queryProducts, req: any): Promise<Service.Response.queryProducts>;
|
|
146
|
+
/** 根据商品ID查询商品详情 */
|
|
147
|
+
getProductDetail(request: Service.Request.getProductDetail, req: any): Promise<Service.Response.getProductDetail>;
|
|
136
148
|
}
|
|
137
149
|
}
|