@be-link/ecommerce-client-backend-service-node-sdk 0.1.13 → 0.1.14
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
|
@@ -116,6 +116,13 @@ export declare namespace DataService {
|
|
|
116
116
|
interface LiveStreamProductTop {
|
|
117
117
|
list: Product[];
|
|
118
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* 观众导出数据响应
|
|
121
|
+
*/
|
|
122
|
+
interface AudienceExport {
|
|
123
|
+
headers: string[];
|
|
124
|
+
data: string[][];
|
|
125
|
+
}
|
|
119
126
|
}
|
|
120
127
|
interface BaseController {
|
|
121
128
|
userLiveStreamRelation(request: Request.UserLiveStreamRelation, req?: FastifyRequest): Promise<void>;
|
|
@@ -125,6 +132,7 @@ export declare namespace DataService {
|
|
|
125
132
|
getAudienceList(request: Request.AudienceList, req?: FastifyRequest): Promise<Response.AudienceList>;
|
|
126
133
|
getLiveStreamStatistics(request: Request.LiveStreamStatistics, req?: FastifyRequest): Promise<Response.LiveStreamStatistics>;
|
|
127
134
|
getLiveStreamProductTop(request: Request.LiveStreamProductTop, req?: FastifyRequest): Promise<Response.LiveStreamProductTop>;
|
|
135
|
+
audienceExport(req?: FastifyRequest): Promise<Response.AudienceExport>;
|
|
128
136
|
}
|
|
129
137
|
}
|
|
130
138
|
/**
|