@be-link/ecommerce-product-service-node-sdk 0.0.14 → 0.0.16
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.
|
@@ -16,6 +16,7 @@ declare class ProductService extends BaseService implements Service.ProductContr
|
|
|
16
16
|
getProductDetail(request: Service.Request.detail): Promise<Service.Response.getProductDetail>;
|
|
17
17
|
isSoldOut(request: Service.Request.isSoldOut): Promise<Service.Response.isSoldOut>;
|
|
18
18
|
deleteScheduledTask(request: Service.Request.deleteScheduledTask): Promise<void>;
|
|
19
|
+
getProductSkuInfo(request: Service.Request.getProductSkuInfo): Promise<Service.Response.getProductSkuInfo>;
|
|
19
20
|
}
|
|
20
21
|
export declare const productService: ProductService;
|
|
21
22
|
export default productService;
|
|
@@ -63,6 +63,9 @@ let ProductService = class ProductService extends BaseService_1.default {
|
|
|
63
63
|
deleteScheduledTask(request) {
|
|
64
64
|
return (0, http_1.callApi)(this.getApiUrl(this.deleteScheduledTask), request);
|
|
65
65
|
}
|
|
66
|
+
getProductSkuInfo(request) {
|
|
67
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getProductSkuInfo), request);
|
|
68
|
+
}
|
|
66
69
|
};
|
|
67
70
|
__decorate([
|
|
68
71
|
(0, tsoa_1.OperationId)('商品列表'),
|
|
@@ -134,6 +137,11 @@ __decorate([
|
|
|
134
137
|
(0, tsoa_1.Post)('delete-scheduled-task'),
|
|
135
138
|
__param(0, (0, tsoa_1.Body)())
|
|
136
139
|
], ProductService.prototype, "deleteScheduledTask", null);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, tsoa_1.OperationId)('获取商品和sku信息 s端'),
|
|
142
|
+
(0, tsoa_1.Post)('get-product-sku-info'),
|
|
143
|
+
__param(0, (0, tsoa_1.Body)())
|
|
144
|
+
], ProductService.prototype, "getProductSkuInfo", null);
|
|
137
145
|
ProductService = __decorate([
|
|
138
146
|
(0, tsoa_1.Route)('product'),
|
|
139
147
|
(0, tsoa_1.Tags)('Product')
|
|
@@ -149,6 +149,11 @@ export declare namespace ProductService {
|
|
|
149
149
|
interface deleteScheduledTask {
|
|
150
150
|
taskId: string;
|
|
151
151
|
}
|
|
152
|
+
interface getProductSkuInfo {
|
|
153
|
+
productId: string;
|
|
154
|
+
skuIds?: string[];
|
|
155
|
+
skuCodes?: string[];
|
|
156
|
+
}
|
|
152
157
|
}
|
|
153
158
|
namespace Response {
|
|
154
159
|
interface create {
|
|
@@ -250,6 +255,46 @@ export declare namespace ProductService {
|
|
|
250
255
|
skuId: string;
|
|
251
256
|
soldOut: boolean;
|
|
252
257
|
}
|
|
258
|
+
interface getProductSkuInfo {
|
|
259
|
+
productInfo: {
|
|
260
|
+
productId: string;
|
|
261
|
+
productType: string;
|
|
262
|
+
productName: string;
|
|
263
|
+
isCombo: number;
|
|
264
|
+
mainImg: string;
|
|
265
|
+
imgList: string[];
|
|
266
|
+
productDesc: string;
|
|
267
|
+
categoryId: string;
|
|
268
|
+
twoCategoryId: string;
|
|
269
|
+
threeCategoryId: string;
|
|
270
|
+
pickType: string;
|
|
271
|
+
dispatchType: string;
|
|
272
|
+
storageMethod: string;
|
|
273
|
+
classification: string;
|
|
274
|
+
stockUnit: string;
|
|
275
|
+
status: string;
|
|
276
|
+
needVerify: number;
|
|
277
|
+
verifyPeriod: VerifyPeriod | null;
|
|
278
|
+
miniSaleQuantity: number;
|
|
279
|
+
purchaseLimit: number;
|
|
280
|
+
freightTemplate: string[] | null;
|
|
281
|
+
visibleStores: string[] | null;
|
|
282
|
+
invisibleStores: string[] | null;
|
|
283
|
+
};
|
|
284
|
+
skuList: {
|
|
285
|
+
skuId: string;
|
|
286
|
+
attrs: Attr[];
|
|
287
|
+
price: number;
|
|
288
|
+
strikethroughPrice: number;
|
|
289
|
+
purchasePrice: number;
|
|
290
|
+
skuCode: string;
|
|
291
|
+
multiSkuCodes: string[];
|
|
292
|
+
bindSkus: BindSku[];
|
|
293
|
+
showBindSkus: number;
|
|
294
|
+
hasBindSkus: number;
|
|
295
|
+
hasMultiSkuCodes: number;
|
|
296
|
+
}[];
|
|
297
|
+
}
|
|
253
298
|
}
|
|
254
299
|
/**
|
|
255
300
|
* ProductLive Controller 接口定义
|
|
@@ -311,5 +356,9 @@ export declare namespace ProductService {
|
|
|
311
356
|
* 删除定时任务
|
|
312
357
|
*/
|
|
313
358
|
deleteScheduledTask(request: ProductService.Request.deleteScheduledTask): Promise<void>;
|
|
359
|
+
/**
|
|
360
|
+
* 获取商品和sku信息 s端
|
|
361
|
+
*/
|
|
362
|
+
getProductSkuInfo(request: ProductService.Request.getProductSkuInfo): Promise<ProductService.Response.getProductSkuInfo>;
|
|
314
363
|
}
|
|
315
364
|
}
|