@be-link/ecommerce-client-backend-service-node-sdk 0.1.80 → 0.1.82
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.
|
@@ -21,6 +21,7 @@ declare class RoomServiceClass extends BaseService implements RoomService.BaseCo
|
|
|
21
21
|
storeLiveStreamRule(request: RoomService.Request.StoreLiveStreamRule): Promise<RoomService.Response.StoreLiveStreamRule>;
|
|
22
22
|
searchByName(request: RoomService.Request.SearchByName): Promise<RoomService.Response.SearchByName>;
|
|
23
23
|
getBasicInfo(request: RoomService.Request.GetBasicInfo): Promise<RoomService.Response.GetBasicInfo>;
|
|
24
|
+
getRoomTagValues(request: RoomService.Request.GetRoomTagValues): Promise<RoomService.Response.GetRoomTagValues>;
|
|
24
25
|
userViewDetail(request: RoomService.Request.UserViewDetail): Promise<RoomService.Response.UserViewDetail>;
|
|
25
26
|
exportWatchHistory(request: RoomService.Request.ExportWatchHistory): Promise<RoomService.Response.ExportWatchHistory>;
|
|
26
27
|
}
|
package/modules/room/service.js
CHANGED
|
@@ -69,6 +69,9 @@ let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
|
|
|
69
69
|
getBasicInfo(request) {
|
|
70
70
|
return (0, http_1.callApi)(this.getApiUrl(this.getBasicInfo), request);
|
|
71
71
|
}
|
|
72
|
+
getRoomTagValues(request) {
|
|
73
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getRoomTagValues), request);
|
|
74
|
+
}
|
|
72
75
|
userViewDetail(request) {
|
|
73
76
|
return (0, http_1.callApi)(this.getApiUrl(this.userViewDetail), request);
|
|
74
77
|
}
|
|
@@ -151,6 +154,11 @@ __decorate([
|
|
|
151
154
|
(0, tsoa_1.Post)('get-basic-info'),
|
|
152
155
|
__param(0, (0, tsoa_1.Body)())
|
|
153
156
|
], RoomServiceClass.prototype, "getBasicInfo", null);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, tsoa_1.OperationId)('根据直播间ID列表查询对应的标签值'),
|
|
159
|
+
(0, tsoa_1.Post)('get-room-tag-values'),
|
|
160
|
+
__param(0, (0, tsoa_1.Body)())
|
|
161
|
+
], RoomServiceClass.prototype, "getRoomTagValues", null);
|
|
154
162
|
__decorate([
|
|
155
163
|
(0, tsoa_1.OperationId)('用户直播间观看详情查询'),
|
|
156
164
|
(0, tsoa_1.Post)('user-view-detail'),
|
package/modules/room/types.d.ts
CHANGED
|
@@ -120,6 +120,13 @@ export declare namespace RoomService {
|
|
|
120
120
|
/** 直播间ID列表 */
|
|
121
121
|
ids: string[];
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* 根据直播间ID列表查询对应的标签值
|
|
125
|
+
*/
|
|
126
|
+
interface GetRoomTagValues {
|
|
127
|
+
/** 直播间ID列表 */
|
|
128
|
+
ids: string[];
|
|
129
|
+
}
|
|
123
130
|
/**
|
|
124
131
|
* 用户直播间观看详情查询
|
|
125
132
|
*/
|
|
@@ -267,6 +274,21 @@ export declare namespace RoomService {
|
|
|
267
274
|
interface GetBasicInfo {
|
|
268
275
|
list: RoomBasicInfo[];
|
|
269
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* 直播间ID与其标签值项
|
|
279
|
+
*/
|
|
280
|
+
interface RoomTagValuesItem {
|
|
281
|
+
/** 直播间ID */
|
|
282
|
+
liveStreamRoomId: string;
|
|
283
|
+
/** 该直播间对应的 tag 表 value 列表 */
|
|
284
|
+
values: string[];
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* 根据直播间ID列表查询标签值响应
|
|
288
|
+
*/
|
|
289
|
+
interface GetRoomTagValues {
|
|
290
|
+
list: RoomTagValuesItem[];
|
|
291
|
+
}
|
|
270
292
|
/**
|
|
271
293
|
* 用户直播间观看详情项
|
|
272
294
|
*/
|
|
@@ -349,6 +371,10 @@ export declare namespace RoomService {
|
|
|
349
371
|
* 根据房间ID批量获取简要信息
|
|
350
372
|
*/
|
|
351
373
|
getBasicInfo(request: Request.GetBasicInfo, req?: FastifyRequest): Promise<Response.GetBasicInfo>;
|
|
374
|
+
/**
|
|
375
|
+
* 根据直播间ID列表查询对应的标签值
|
|
376
|
+
*/
|
|
377
|
+
getRoomTagValues(request: Request.GetRoomTagValues, req?: FastifyRequest): Promise<Response.GetRoomTagValues>;
|
|
352
378
|
/**
|
|
353
379
|
* 用户直播间观看详情查询
|
|
354
380
|
*/
|
|
@@ -331,6 +331,10 @@ export interface UserInfo {
|
|
|
331
331
|
lastWatchTime: string;
|
|
332
332
|
/** 累计消费金额(元) */
|
|
333
333
|
accumulatedConsumptionAmount: number;
|
|
334
|
+
/** 累计退款金额(元) */
|
|
335
|
+
accumulatedRefundAmount: number;
|
|
336
|
+
/** 7天累计消费金额(元) */
|
|
337
|
+
sevenDaysTotalAmount: number;
|
|
334
338
|
/** 最近消费时间 */
|
|
335
339
|
lastConsumptionTime: string;
|
|
336
340
|
/** 首次消费时间 */
|