@be-link/ecommerce-client-backend-service-node-sdk 0.1.51 → 0.1.52

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.
@@ -87,7 +87,7 @@ __decorate([
87
87
  ], MiniProgramServiceClass.prototype, "setUsed", null);
88
88
  __decorate([
89
89
  (0, tsoa_1.OperationId)('根据AppId获取Secret'),
90
- (0, tsoa_1.Post)('get-secret-by-appid'),
90
+ (0, tsoa_1.Post)('get-secret-by-app-id'),
91
91
  __param(0, (0, tsoa_1.Body)())
92
92
  ], MiniProgramServiceClass.prototype, "getSecretByAppId", null);
93
93
  __decorate([
@@ -19,6 +19,8 @@ declare class RoomServiceClass extends BaseService implements RoomService.BaseCo
19
19
  viewRecord(request: RoomService.Request.ViewRecord): Promise<RoomService.Response.ViewRecord>;
20
20
  /** 门店直播规则查询 */
21
21
  storeLiveStreamRule(request: RoomService.Request.StoreLiveStreamRule): Promise<RoomService.Response.StoreLiveStreamRule>;
22
+ searchByName(request: RoomService.Request.SearchByName): Promise<RoomService.Response.SearchByName>;
23
+ getBasicInfo(request: RoomService.Request.GetBasicInfo): Promise<RoomService.Response.GetBasicInfo>;
22
24
  }
23
25
  export declare const roomService: RoomServiceClass;
24
26
  export default roomService;
@@ -63,6 +63,12 @@ let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
63
63
  storeLiveStreamRule(request) {
64
64
  return (0, http_1.callApi)(this.getApiUrl(this.storeLiveStreamRule), request);
65
65
  }
66
+ searchByName(request) {
67
+ return (0, http_1.callApi)(this.getApiUrl(this.searchByName), request);
68
+ }
69
+ getBasicInfo(request) {
70
+ return (0, http_1.callApi)(this.getApiUrl(this.getBasicInfo), request);
71
+ }
66
72
  };
67
73
  __decorate([
68
74
  (0, tsoa_1.OperationId)('同步活动'),
@@ -129,6 +135,16 @@ __decorate([
129
135
  (0, tsoa_1.Post)('store-live-stream-rule'),
130
136
  __param(0, (0, tsoa_1.Body)())
131
137
  ], RoomServiceClass.prototype, "storeLiveStreamRule", null);
138
+ __decorate([
139
+ (0, tsoa_1.OperationId)('根据名称搜索房间'),
140
+ (0, tsoa_1.Post)('search-by-name'),
141
+ __param(0, (0, tsoa_1.Body)())
142
+ ], RoomServiceClass.prototype, "searchByName", null);
143
+ __decorate([
144
+ (0, tsoa_1.OperationId)('根据房间ID批量获取简要信息'),
145
+ (0, tsoa_1.Post)('get-basic-info'),
146
+ __param(0, (0, tsoa_1.Body)())
147
+ ], RoomServiceClass.prototype, "getBasicInfo", null);
132
148
  RoomServiceClass = __decorate([
133
149
  (0, tsoa_1.Route)('room'),
134
150
  (0, tsoa_1.Tags)('Room')
@@ -106,6 +106,20 @@ export declare namespace RoomService {
106
106
  /** 每页数量,默认20,最大100 */
107
107
  pageSize?: number;
108
108
  }
109
+ /**
110
+ * 根据名称搜索房间
111
+ */
112
+ interface SearchByName {
113
+ /** 房间名称(支持模糊搜索) */
114
+ name: string;
115
+ }
116
+ /**
117
+ * 根据房间ID批量获取简要信息
118
+ */
119
+ interface GetBasicInfo {
120
+ /** 直播间ID列表 */
121
+ ids: string[];
122
+ }
109
123
  }
110
124
  namespace Response {
111
125
  /**
@@ -194,6 +208,27 @@ export declare namespace RoomService {
194
208
  interface StoreLiveStreamRule {
195
209
  rule: boolean;
196
210
  }
211
+ /**
212
+ * 房间基本信息
213
+ */
214
+ interface RoomBasicInfo {
215
+ /** 直播间ID */
216
+ id: string;
217
+ /** 直播间名称 */
218
+ name: string;
219
+ }
220
+ /**
221
+ * 根据名称搜索房间响应
222
+ */
223
+ interface SearchByName {
224
+ list: RoomBasicInfo[];
225
+ }
226
+ /**
227
+ * 根据房间ID批量获取简要信息响应
228
+ */
229
+ interface GetBasicInfo {
230
+ list: RoomBasicInfo[];
231
+ }
197
232
  }
198
233
  interface BaseController {
199
234
  sync(request: ListActivityAPIRequest): Promise<ListActivityAPIResponse>;
@@ -212,5 +247,13 @@ export declare namespace RoomService {
212
247
  listByStoreBind(request: Request.ListByStoreBind, req?: FastifyRequest): Promise<Response.ListByStoreBind>;
213
248
  viewRecord(request: Request.ViewRecord, req?: FastifyRequest): Promise<Response.ViewRecord>;
214
249
  storeLiveStreamRule(request: Request.StoreLiveStreamRule, req?: FastifyRequest): Promise<Response.StoreLiveStreamRule>;
250
+ /**
251
+ * 根据名称搜索房间
252
+ */
253
+ searchByName(request: Request.SearchByName, req?: FastifyRequest): Promise<Response.SearchByName>;
254
+ /**
255
+ * 根据房间ID批量获取简要信息
256
+ */
257
+ getBasicInfo(request: Request.GetBasicInfo, req?: FastifyRequest): Promise<Response.GetBasicInfo>;
215
258
  }
216
259
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-client-backend-service-node-sdk",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",