@be-link/ecommerce-product-service-node-sdk 0.1.32 → 0.1.33
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.
|
@@ -27,6 +27,7 @@ declare class ProductService extends BaseService implements Service.ProductContr
|
|
|
27
27
|
updateSkuPrice(request: Service.Request.updateSkuPrice[]): Promise<void>;
|
|
28
28
|
queryProductSkuListWithDel(request: Service.Request.queryProductSkuListWithDel): Promise<Service.Response.queryProductSkuList>;
|
|
29
29
|
getClassification(request: Service.Request.getClassification): Promise<Service.Response.getClassification>;
|
|
30
|
+
getAllClassifications(request: Service.Request.getAllClassifications): Promise<Service.Response.getAllClassifications>;
|
|
30
31
|
}
|
|
31
32
|
export declare const productService: ProductService;
|
|
32
33
|
export default productService;
|
|
@@ -96,6 +96,9 @@ let ProductService = class ProductService extends BaseService_1.default {
|
|
|
96
96
|
getClassification(request) {
|
|
97
97
|
return (0, http_1.callApi)(this.getApiUrl(this.getClassification), request);
|
|
98
98
|
}
|
|
99
|
+
getAllClassifications(request) {
|
|
100
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getAllClassifications), request);
|
|
101
|
+
}
|
|
99
102
|
};
|
|
100
103
|
__decorate([
|
|
101
104
|
(0, tsoa_1.OperationId)('商品列表'),
|
|
@@ -222,6 +225,11 @@ __decorate([
|
|
|
222
225
|
(0, tsoa_1.Post)('get-classification'),
|
|
223
226
|
__param(0, (0, tsoa_1.Body)())
|
|
224
227
|
], ProductService.prototype, "getClassification", null);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, tsoa_1.OperationId)('查询所有商品分类'),
|
|
230
|
+
(0, tsoa_1.Post)('get-all-classifications'),
|
|
231
|
+
__param(0, (0, tsoa_1.Body)())
|
|
232
|
+
], ProductService.prototype, "getAllClassifications", null);
|
|
225
233
|
ProductService = __decorate([
|
|
226
234
|
(0, tsoa_1.Route)('product'),
|
|
227
235
|
(0, tsoa_1.Tags)('Product')
|
|
@@ -377,6 +377,7 @@ export declare namespace ProductService {
|
|
|
377
377
|
/** 商品Id */
|
|
378
378
|
productId: string;
|
|
379
379
|
}
|
|
380
|
+
type getAllClassifications = Record<string, never>;
|
|
380
381
|
}
|
|
381
382
|
namespace Response {
|
|
382
383
|
interface create {
|
|
@@ -690,6 +691,13 @@ export declare namespace ProductService {
|
|
|
690
691
|
/** 商品分类 */
|
|
691
692
|
classification: string;
|
|
692
693
|
}
|
|
694
|
+
interface classificationItem {
|
|
695
|
+
/** 分类枚举值 */
|
|
696
|
+
value: string;
|
|
697
|
+
/** 分类中文名称 */
|
|
698
|
+
label: string;
|
|
699
|
+
}
|
|
700
|
+
type getAllClassifications = classificationItem[];
|
|
693
701
|
}
|
|
694
702
|
/**
|
|
695
703
|
* ProductLive Controller 接口定义
|
|
@@ -786,5 +794,9 @@ export declare namespace ProductService {
|
|
|
786
794
|
* 根据商品ID查询分类
|
|
787
795
|
*/
|
|
788
796
|
getClassification(request: ProductService.Request.getClassification): Promise<ProductService.Response.getClassification>;
|
|
797
|
+
/**
|
|
798
|
+
* 查询所有商品分类
|
|
799
|
+
*/
|
|
800
|
+
getAllClassifications(request: ProductService.Request.getAllClassifications): Promise<ProductService.Response.getAllClassifications>;
|
|
789
801
|
}
|
|
790
802
|
}
|