@be-link/ecommerce-product-service-node-sdk 0.1.37 → 0.1.39

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.
@@ -2,6 +2,7 @@ import { ProductExpService as Service } from './types';
2
2
  import BaseService from '../BaseService';
3
3
  declare class ProductExpService extends BaseService implements Service.ProductExpController {
4
4
  protected prefixUrl: string;
5
+ queryPurePointsSalesTopList(request: Service.Request.queryPurePointsSalesTopList): Promise<Service.Response.queryPurePointsSalesTopList>;
5
6
  getSupplierList(request: Service.Request.getSupplierList): Promise<Service.Response.getSupplierList>;
6
7
  addSupplier(request: Service.Request.addSupplier): Promise<Service.Response.addSupplier>;
7
8
  getLiveGroupList(request: Service.Request.getLiveGroupList): Promise<Service.Response.getLiveGroupList>;
@@ -21,6 +21,9 @@ let ProductExpService = class ProductExpService extends BaseService_1.default {
21
21
  super(...arguments);
22
22
  this.prefixUrl = '/product-exp';
23
23
  }
24
+ queryPurePointsSalesTopList(request) {
25
+ return (0, http_1.callApi)(this.getApiUrl(this.queryPurePointsSalesTopList), request);
26
+ }
24
27
  getSupplierList(request) {
25
28
  return (0, http_1.callApi)(this.getApiUrl(this.getSupplierList), request);
26
29
  }
@@ -58,6 +61,11 @@ let ProductExpService = class ProductExpService extends BaseService_1.default {
58
61
  return (0, http_1.callApi)(this.getApiUrl(this.queryProductExpList), request);
59
62
  }
60
63
  };
64
+ __decorate([
65
+ (0, tsoa_1.OperationId)('查询积分商城纯积分兑换销量 Top10'),
66
+ (0, tsoa_1.Post)('query-pure-points-sales-top-list'),
67
+ __param(0, (0, tsoa_1.Body)())
68
+ ], ProductExpService.prototype, "queryPurePointsSalesTopList", null);
61
69
  __decorate([
62
70
  (0, tsoa_1.OperationId)('获取供应商列表'),
63
71
  (0, tsoa_1.Post)('get-supplier-list'),
@@ -37,6 +37,9 @@ export declare namespace ProductExpService {
37
37
  categoryName: string;
38
38
  }
39
39
  namespace Request {
40
+ /** 查询积分商城纯积分兑换销量 Top10 */
41
+ interface queryPurePointsSalesTopList {
42
+ }
40
43
  interface getSupplierList {
41
44
  /** 页码,0开始 */
42
45
  pageIndex: number;
@@ -120,6 +123,19 @@ export declare namespace ProductExpService {
120
123
  }
121
124
  }
122
125
  namespace Response {
126
+ /** 查询积分商城纯积分兑换销量 Top10 响应 */
127
+ interface queryPurePointsSalesTopList {
128
+ list: {
129
+ /** 商品ID */
130
+ productId: string;
131
+ /** 商品名称 */
132
+ productName: string;
133
+ /** 商品图片 */
134
+ productImage: string;
135
+ /** 销量 */
136
+ salesQuantity: number;
137
+ }[];
138
+ }
123
139
  interface addSupplier {
124
140
  /** 供应商Id */
125
141
  supplierId: string;
@@ -224,6 +240,10 @@ export declare namespace ProductExpService {
224
240
  * ProductLive Controller 接口定义
225
241
  */
226
242
  interface ProductExpController {
243
+ /**
244
+ * 查询积分商城纯积分兑换销量 Top10
245
+ */
246
+ queryPurePointsSalesTopList(request: ProductExpService.Request.queryPurePointsSalesTopList): Promise<ProductExpService.Response.queryPurePointsSalesTopList>;
227
247
  /**
228
248
  * 获取供应商列表
229
249
  */
@@ -5,6 +5,7 @@ declare class ProductLiveService extends BaseService implements Service.ProductL
5
5
  list(request: Service.Request.list): Promise<Service.Response.list>;
6
6
  add(request: Service.Request.operate[]): Promise<void>;
7
7
  remove(request: Service.Request.operate): Promise<void>;
8
+ syncMemberCard(request: Service.Request.syncMemberCard): Promise<void>;
8
9
  }
9
10
  export declare const productLiveService: ProductLiveService;
10
11
  export default productLiveService;
@@ -30,6 +30,9 @@ let ProductLiveService = class ProductLiveService extends BaseService_1.default
30
30
  remove(request) {
31
31
  return (0, http_1.callApi)(this.getApiUrl(this.remove), request);
32
32
  }
33
+ syncMemberCard(request) {
34
+ return (0, http_1.callApi)(this.getApiUrl(this.syncMemberCard), request);
35
+ }
33
36
  };
34
37
  __decorate([
35
38
  (0, tsoa_1.OperationId)('商品列表'),
@@ -46,6 +49,11 @@ __decorate([
46
49
  (0, tsoa_1.Post)('remove'),
47
50
  __param(0, (0, tsoa_1.Body)())
48
51
  ], ProductLiveService.prototype, "remove", null);
52
+ __decorate([
53
+ (0, tsoa_1.OperationId)('同步直播间开卡讲解卡片'),
54
+ (0, tsoa_1.Post)('sync-member-card'),
55
+ __param(0, (0, tsoa_1.Body)())
56
+ ], ProductLiveService.prototype, "syncMemberCard", null);
49
57
  ProductLiveService = __decorate([
50
58
  (0, tsoa_1.Route)('product-live'),
51
59
  (0, tsoa_1.Tags)('Product-live')
@@ -14,6 +14,14 @@ export declare namespace ProductLiveService {
14
14
  /** 直播间ID */
15
15
  liveRoomId: string;
16
16
  }
17
+ interface syncMemberCard {
18
+ /** 直播间ID */
19
+ liveRoomId: string;
20
+ /** 城市ID */
21
+ cityId?: string;
22
+ /** 是否同步会员开卡卡片:true-开启 false-关闭 */
23
+ enableSync: boolean;
24
+ }
17
25
  }
18
26
  namespace Response {
19
27
  interface list {
@@ -50,5 +58,9 @@ export declare namespace ProductLiveService {
50
58
  * 删除商品
51
59
  */
52
60
  remove(request: ProductLiveService.Request.operate): Promise<void>;
61
+ /**
62
+ * 同步直播间开卡讲解卡片
63
+ */
64
+ syncMemberCard(request: ProductLiveService.Request.syncMemberCard): Promise<void>;
53
65
  }
54
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-product-service-node-sdk",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "EcommerceProductService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",