@be-link/ecommerce-client-backend-service-node-sdk 0.1.59 → 0.1.61
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.
- package/modules/room/service.d.ts +2 -0
- package/modules/room/service.js +16 -0
- package/modules/room/types.d.ts +100 -0
- package/package.json +1 -1
|
@@ -21,6 +21,8 @@ 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
|
+
userViewDetail(request: RoomService.Request.UserViewDetail): Promise<RoomService.Response.UserViewDetail>;
|
|
25
|
+
exportWatchHistory(request: RoomService.Request.ExportWatchHistory): Promise<RoomService.Response.ExportWatchHistory>;
|
|
24
26
|
}
|
|
25
27
|
export declare const roomService: RoomServiceClass;
|
|
26
28
|
export default roomService;
|
package/modules/room/service.js
CHANGED
|
@@ -69,6 +69,12 @@ 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
|
+
userViewDetail(request) {
|
|
73
|
+
return (0, http_1.callApi)(this.getApiUrl(this.userViewDetail), request);
|
|
74
|
+
}
|
|
75
|
+
exportWatchHistory(request) {
|
|
76
|
+
return (0, http_1.callApi)(this.getApiUrl(this.exportWatchHistory), request);
|
|
77
|
+
}
|
|
72
78
|
};
|
|
73
79
|
__decorate([
|
|
74
80
|
(0, tsoa_1.OperationId)('同步活动'),
|
|
@@ -145,6 +151,16 @@ __decorate([
|
|
|
145
151
|
(0, tsoa_1.Post)('get-basic-info'),
|
|
146
152
|
__param(0, (0, tsoa_1.Body)())
|
|
147
153
|
], RoomServiceClass.prototype, "getBasicInfo", null);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, tsoa_1.OperationId)('用户直播间观看详情查询'),
|
|
156
|
+
(0, tsoa_1.Post)('user-view-detail'),
|
|
157
|
+
__param(0, (0, tsoa_1.Body)())
|
|
158
|
+
], RoomServiceClass.prototype, "userViewDetail", null);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, tsoa_1.OperationId)('导出用户观看历史'),
|
|
161
|
+
(0, tsoa_1.Post)('export-watch-history'),
|
|
162
|
+
__param(0, (0, tsoa_1.Body)())
|
|
163
|
+
], RoomServiceClass.prototype, "exportWatchHistory", null);
|
|
148
164
|
RoomServiceClass = __decorate([
|
|
149
165
|
(0, tsoa_1.Route)('room'),
|
|
150
166
|
(0, tsoa_1.Tags)('Room')
|
package/modules/room/types.d.ts
CHANGED
|
@@ -120,6 +120,44 @@ export declare namespace RoomService {
|
|
|
120
120
|
/** 直播间ID列表 */
|
|
121
121
|
ids: string[];
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* 用户直播间观看详情查询
|
|
125
|
+
*/
|
|
126
|
+
interface UserViewDetail {
|
|
127
|
+
/** 用户ID,必填 */
|
|
128
|
+
userId: string;
|
|
129
|
+
/** 直播开始时间-起(毫秒时间戳),选填 */
|
|
130
|
+
startTime?: number;
|
|
131
|
+
/** 直播开始时间-止(毫秒时间戳),选填 */
|
|
132
|
+
endTime?: number;
|
|
133
|
+
/** 直播间标题(模糊搜索),选填 */
|
|
134
|
+
liveTitle?: string;
|
|
135
|
+
/** 直播间ID(精准匹配),选填 */
|
|
136
|
+
liveStreamRoomId?: string;
|
|
137
|
+
/** 页码,从 0 开始,默认 0 */
|
|
138
|
+
pageIndex: number;
|
|
139
|
+
/** 每页数量 */
|
|
140
|
+
pageSize: number;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* 导出用户观看历史
|
|
144
|
+
*/
|
|
145
|
+
interface ExportWatchHistory {
|
|
146
|
+
/** 用户ID,必填 */
|
|
147
|
+
userId: string;
|
|
148
|
+
/** 直播开始时间-起(毫秒时间戳),选填 */
|
|
149
|
+
startTime?: number;
|
|
150
|
+
/** 直播开始时间-止(毫秒时间戳),选填 */
|
|
151
|
+
endTime?: number;
|
|
152
|
+
/** 直播间标题(模糊搜索),选填 */
|
|
153
|
+
liveTitle?: string;
|
|
154
|
+
/** 直播间ID(精准匹配),选填 */
|
|
155
|
+
liveStreamRoomId?: string;
|
|
156
|
+
/** 页码,从 0 开始,默认 0 */
|
|
157
|
+
pageIndex: number;
|
|
158
|
+
/** 每页数量 */
|
|
159
|
+
pageSize: number;
|
|
160
|
+
}
|
|
123
161
|
}
|
|
124
162
|
namespace Response {
|
|
125
163
|
/**
|
|
@@ -229,6 +267,60 @@ export declare namespace RoomService {
|
|
|
229
267
|
interface GetBasicInfo {
|
|
230
268
|
list: RoomBasicInfo[];
|
|
231
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* 用户直播间观看详情项
|
|
272
|
+
*/
|
|
273
|
+
interface UserViewDetailItem {
|
|
274
|
+
/** 直播间 ID */
|
|
275
|
+
liveStreamRoomId: string;
|
|
276
|
+
/** 直播间标题 */
|
|
277
|
+
liveTitle: string;
|
|
278
|
+
/** 直播开始时间 (格式 "YYYY-MM-DD HH:mm:ss") */
|
|
279
|
+
liveStartTime: string;
|
|
280
|
+
/** 看播时长 (格式 "X小时X分" 或 "X分钟") */
|
|
281
|
+
watchDuration: string;
|
|
282
|
+
/** 首次进入时间 (格式 "YYYY-MM-DD HH:mm:ss") */
|
|
283
|
+
firstEntryTime: string;
|
|
284
|
+
/** 最后进入时间 (格式 "YYYY-MM-DD HH:mm:ss") */
|
|
285
|
+
lastEntryTime: string;
|
|
286
|
+
/** 是否完播 (枚举值:"是" / "否") */
|
|
287
|
+
isCompleted: string;
|
|
288
|
+
/** 获得积分 (仅限直播营销活动积分) */
|
|
289
|
+
earnedPoints: number;
|
|
290
|
+
/** 获得券 (张数) */
|
|
291
|
+
earnedCoupons: number;
|
|
292
|
+
/** 下单笔数 */
|
|
293
|
+
orderCount: number;
|
|
294
|
+
/** 直播间下单金额 (元) */
|
|
295
|
+
orderAmount: number;
|
|
296
|
+
/** 7天累计下单金额 (元) */
|
|
297
|
+
totalSevenOrderAmount: number;
|
|
298
|
+
/** 最近下单时间 (格式 "YYYY-MM-DD HH:mm:ss") */
|
|
299
|
+
lastOrderTime: string;
|
|
300
|
+
/** 评论数 */
|
|
301
|
+
commentCount: number;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* 用户直播间观看详情响应
|
|
305
|
+
*/
|
|
306
|
+
interface UserViewDetail {
|
|
307
|
+
list: UserViewDetailItem[];
|
|
308
|
+
total: number;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* 批量导出响应
|
|
312
|
+
*/
|
|
313
|
+
interface IBatchExport {
|
|
314
|
+
/** 表头 */
|
|
315
|
+
headers: string[];
|
|
316
|
+
/** 数据 */
|
|
317
|
+
data: (string | number)[][];
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* 导出用户观看历史响应
|
|
321
|
+
*/
|
|
322
|
+
interface ExportWatchHistory extends IBatchExport {
|
|
323
|
+
}
|
|
232
324
|
}
|
|
233
325
|
interface BaseController {
|
|
234
326
|
sync(request: ListActivityAPIRequest): Promise<ListActivityAPIResponse>;
|
|
@@ -255,5 +347,13 @@ export declare namespace RoomService {
|
|
|
255
347
|
* 根据房间ID批量获取简要信息
|
|
256
348
|
*/
|
|
257
349
|
getBasicInfo(request: Request.GetBasicInfo, req?: FastifyRequest): Promise<Response.GetBasicInfo>;
|
|
350
|
+
/**
|
|
351
|
+
* 用户直播间观看详情查询
|
|
352
|
+
*/
|
|
353
|
+
userViewDetail(request: Request.UserViewDetail, req?: FastifyRequest): Promise<Response.UserViewDetail>;
|
|
354
|
+
/**
|
|
355
|
+
* 导出用户观看历史
|
|
356
|
+
*/
|
|
357
|
+
exportWatchHistory(request: Request.ExportWatchHistory, req?: FastifyRequest): Promise<Response.ExportWatchHistory>;
|
|
258
358
|
}
|
|
259
359
|
}
|