@be-link/ecommerce-client-backend-service-node-sdk 0.1.13 → 0.1.15
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 DataServiceClass extends BaseService implements DataService.BaseCo
|
|
|
12
12
|
getLiveStreamStatistics(request: DataService.Request.LiveStreamStatistics): Promise<DataService.Response.LiveStreamStatistics>;
|
|
13
13
|
/** 直播间商品销量排行查询 */
|
|
14
14
|
getLiveStreamProductTop(request: DataService.Request.LiveStreamProductTop): Promise<DataService.Response.LiveStreamProductTop>;
|
|
15
|
+
/** 观众导出数据 */
|
|
16
|
+
audienceExport(): Promise<DataService.Response.AudienceExport>;
|
|
15
17
|
}
|
|
16
18
|
export declare const dataService: DataServiceClass;
|
|
17
19
|
export default dataService;
|
package/modules/data/service.js
CHANGED
|
@@ -45,6 +45,10 @@ let DataServiceClass = class DataServiceClass extends BaseService_1.default {
|
|
|
45
45
|
getLiveStreamProductTop(request) {
|
|
46
46
|
return (0, http_1.callApi)(this.getApiUrl(this.getLiveStreamProductTop), request);
|
|
47
47
|
}
|
|
48
|
+
/** 观众导出数据 */
|
|
49
|
+
audienceExport() {
|
|
50
|
+
return (0, http_1.callApi)(this.getApiUrl(this.audienceExport), undefined);
|
|
51
|
+
}
|
|
48
52
|
};
|
|
49
53
|
__decorate([
|
|
50
54
|
(0, tsoa_1.OperationId)('获取用户观看时长'),
|
|
@@ -81,6 +85,10 @@ __decorate([
|
|
|
81
85
|
(0, tsoa_1.Post)('get-live-stream-product-top'),
|
|
82
86
|
__param(0, (0, tsoa_1.Body)())
|
|
83
87
|
], DataServiceClass.prototype, "getLiveStreamProductTop", null);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, tsoa_1.OperationId)('观众导出数据'),
|
|
90
|
+
(0, tsoa_1.Post)('audience-export')
|
|
91
|
+
], DataServiceClass.prototype, "audienceExport", null);
|
|
84
92
|
DataServiceClass = __decorate([
|
|
85
93
|
(0, tsoa_1.Route)('data'),
|
|
86
94
|
(0, tsoa_1.Tags)('Data')
|
package/modules/data/types.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ export declare namespace DataService {
|
|
|
49
49
|
* 直播间观众列表查询
|
|
50
50
|
*/
|
|
51
51
|
interface AudienceList {
|
|
52
|
+
/** 观众数据主键id,用于导出 */
|
|
53
|
+
ids: string[];
|
|
52
54
|
/** 直播间id */
|
|
53
55
|
liveStreamRoomId: string;
|
|
54
56
|
/** 门店id */
|
|
@@ -116,6 +118,13 @@ export declare namespace DataService {
|
|
|
116
118
|
interface LiveStreamProductTop {
|
|
117
119
|
list: Product[];
|
|
118
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* 观众导出数据响应
|
|
123
|
+
*/
|
|
124
|
+
interface AudienceExport {
|
|
125
|
+
headers: string[];
|
|
126
|
+
data: string[][];
|
|
127
|
+
}
|
|
119
128
|
}
|
|
120
129
|
interface BaseController {
|
|
121
130
|
userLiveStreamRelation(request: Request.UserLiveStreamRelation, req?: FastifyRequest): Promise<void>;
|
|
@@ -125,12 +134,15 @@ export declare namespace DataService {
|
|
|
125
134
|
getAudienceList(request: Request.AudienceList, req?: FastifyRequest): Promise<Response.AudienceList>;
|
|
126
135
|
getLiveStreamStatistics(request: Request.LiveStreamStatistics, req?: FastifyRequest): Promise<Response.LiveStreamStatistics>;
|
|
127
136
|
getLiveStreamProductTop(request: Request.LiveStreamProductTop, req?: FastifyRequest): Promise<Response.LiveStreamProductTop>;
|
|
137
|
+
audienceExport(req?: FastifyRequest): Promise<Response.AudienceExport>;
|
|
128
138
|
}
|
|
129
139
|
}
|
|
130
140
|
/**
|
|
131
141
|
* 观众
|
|
132
142
|
*/
|
|
133
143
|
export interface Audience {
|
|
144
|
+
/** 观众数据主键id */
|
|
145
|
+
id: number;
|
|
134
146
|
/** 主播间id */
|
|
135
147
|
liveStreamRoomId: string;
|
|
136
148
|
/** 观看类型 0-直播、1-回放 */
|