@be-link/ecommerce-client-backend-service-node-sdk 0.0.9 → 0.0.10

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.
@@ -12,6 +12,8 @@ declare class RoomServiceClass extends BaseService implements RoomService.BaseCo
12
12
  roomStatus(request: RoomService.Request.RoomStatus): Promise<RoomService.Response.RoomStatus>;
13
13
  getBindStore(request: RoomService.Request.GetBindStore): Promise<RoomService.Response.GetBindStore>;
14
14
  bindStore(request: RoomService.Request.BindStore): Promise<void>;
15
+ /** 根据门店绑定关系查询直播间列表 */
16
+ listByStoreBind(request: RoomService.Request.ListByStoreBind): Promise<RoomService.Response.ListByStoreBind>;
15
17
  }
16
18
  export declare const roomService: RoomServiceClass;
17
19
  export default roomService;
@@ -48,6 +48,10 @@ let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
48
48
  bindStore(request) {
49
49
  return (0, http_1.callApi)(this.getApiUrl(this.bindStore), request);
50
50
  }
51
+ /** 根据门店绑定关系查询直播间列表 */
52
+ listByStoreBind(request) {
53
+ return (0, http_1.callApi)(this.getApiUrl(this.listByStoreBind), request);
54
+ }
51
55
  };
52
56
  __decorate([
53
57
  (0, tsoa_1.OperationId)('同步活动'),
@@ -94,6 +98,11 @@ __decorate([
94
98
  (0, tsoa_1.Post)('bind-store'),
95
99
  __param(0, (0, tsoa_1.Body)())
96
100
  ], RoomServiceClass.prototype, "bindStore", null);
101
+ __decorate([
102
+ (0, tsoa_1.OperationId)('根据门店绑定关系查询直播间列表'),
103
+ (0, tsoa_1.Post)('list-by-store-bind'),
104
+ __param(0, (0, tsoa_1.Body)())
105
+ ], RoomServiceClass.prototype, "listByStoreBind", null);
97
106
  RoomServiceClass = __decorate([
98
107
  (0, tsoa_1.Route)('room'),
99
108
  (0, tsoa_1.Tags)('Room')
@@ -63,6 +63,17 @@ export declare namespace RoomService {
63
63
  /** 门店ID列表 */
64
64
  bind: string[];
65
65
  }
66
+ /**
67
+ * 根据门店绑定关系查询直播间列表
68
+ */
69
+ interface ListByStoreBind {
70
+ /** 门店ID */
71
+ storeId: string;
72
+ /** 页码,从0开始 */
73
+ pageIndex: number;
74
+ /** 每页数量,默认20,最大100 */
75
+ pageSize?: number;
76
+ }
66
77
  }
67
78
  namespace Response {
68
79
  /**
@@ -113,6 +124,13 @@ export declare namespace RoomService {
113
124
  /** 已绑定门店ID列表 */
114
125
  bind: string[];
115
126
  }
127
+ /**
128
+ * 根据门店绑定关系查询直播间列表响应
129
+ */
130
+ interface ListByStoreBind {
131
+ list: Room[];
132
+ total: number;
133
+ }
116
134
  }
117
135
  interface BaseController {
118
136
  sync(request: ListActivityAPIRequest): Promise<ListActivityAPIResponse>;
@@ -124,5 +142,9 @@ export declare namespace RoomService {
124
142
  roomStatus(request: Request.RoomStatus, req?: FastifyRequest): Promise<Response.RoomStatus>;
125
143
  getBindStore(request: Request.GetBindStore, req?: FastifyRequest): Promise<Response.GetBindStore>;
126
144
  bindStore(request: Request.BindStore, req?: FastifyRequest): Promise<void>;
145
+ /**
146
+ * 根据门店绑定关系查询直播间列表
147
+ */
148
+ listByStoreBind(request: Request.ListByStoreBind, req?: FastifyRequest): Promise<Response.ListByStoreBind>;
127
149
  }
128
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-client-backend-service-node-sdk",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",