@be-link/ecommerce-product-service-node-sdk 0.0.6 → 0.0.7

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.
@@ -6,7 +6,7 @@ declare class ProductExpService extends BaseService implements Service.ProductEx
6
6
  addSupplier(request: Service.Request.addSupplier): Promise<Service.Response.addSupplier>;
7
7
  getLiveGroupList(): Promise<Service.Response.getLiveGroupList[]>;
8
8
  addLiveGroup(request: Service.Request.addLiveGroup): Promise<Service.Response.addLiveGroup>;
9
- productCategoryTree(): Promise<Service.Response.ProductCategoryTree>;
9
+ productCategoryList(request: Service.Request.productCategoryList): Promise<Service.ProductCategory[]>;
10
10
  }
11
11
  export declare const productExpService: ProductExpService;
12
12
  export default productExpService;
@@ -33,8 +33,8 @@ let ProductExpService = class ProductExpService extends BaseService_1.default {
33
33
  addLiveGroup(request) {
34
34
  return (0, http_1.callApi)(this.getApiUrl(this.addLiveGroup), request);
35
35
  }
36
- productCategoryTree() {
37
- return (0, http_1.callApi)(this.getApiUrl(this.productCategoryTree));
36
+ productCategoryList(request) {
37
+ return (0, http_1.callApi)(this.getApiUrl(this.productCategoryList), request);
38
38
  }
39
39
  };
40
40
  __decorate([
@@ -56,9 +56,10 @@ __decorate([
56
56
  __param(0, (0, tsoa_1.Body)())
57
57
  ], ProductExpService.prototype, "addLiveGroup", null);
58
58
  __decorate([
59
- (0, tsoa_1.OperationId)('商品分类 树结构'),
60
- (0, tsoa_1.Post)('product-category-tree')
61
- ], ProductExpService.prototype, "productCategoryTree", null);
59
+ (0, tsoa_1.OperationId)('商品分类列表'),
60
+ (0, tsoa_1.Post)('product-category-list'),
61
+ __param(0, (0, tsoa_1.Body)())
62
+ ], ProductExpService.prototype, "productCategoryList", null);
62
63
  ProductExpService = __decorate([
63
64
  (0, tsoa_1.Route)('product-exp'),
64
65
  (0, tsoa_1.Tags)('Product-exp')
@@ -2,7 +2,7 @@ export declare namespace ProductExpService {
2
2
  interface ProductCategory {
3
3
  id: string;
4
4
  parentId: string;
5
- level: string;
5
+ level: number;
6
6
  categoryName: string;
7
7
  }
8
8
  namespace Request {
@@ -14,6 +14,10 @@ export declare namespace ProductExpService {
14
14
  liveGroupName: string;
15
15
  creatorId: string;
16
16
  }
17
+ interface productCategoryList {
18
+ level: number;
19
+ parentId?: string;
20
+ }
17
21
  }
18
22
  namespace Response {
19
23
  interface addSupplier {
@@ -30,9 +34,6 @@ export declare namespace ProductExpService {
30
34
  liveGroupId: string;
31
35
  liveGroupName: string;
32
36
  }
33
- interface ProductCategoryTree extends ProductCategory {
34
- children?: ProductCategoryTree[];
35
- }
36
37
  interface list {
37
38
  total: number;
38
39
  list: {
@@ -65,8 +66,8 @@ export declare namespace ProductExpService {
65
66
  */
66
67
  addLiveGroup(request: ProductExpService.Request.addLiveGroup): Promise<ProductExpService.Response.addLiveGroup>;
67
68
  /**
68
- * 商品分类 树结构
69
+ * 商品分类列表
69
70
  */
70
- productCategoryTree(): Promise<ProductExpService.Response.ProductCategoryTree>;
71
+ productCategoryList(request: ProductExpService.Request.productCategoryList): Promise<ProductExpService.ProductCategory[]>;
71
72
  }
72
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-product-service-node-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "EcommerceProductService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",