@be-link/ecommerce-client-backend-service-node-sdk 0.0.11 → 0.0.12
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.
|
@@ -8,6 +8,7 @@ declare class RoomServiceClass extends BaseService implements RoomService.BaseCo
|
|
|
8
8
|
detail(request: RoomService.Request.Detail): Promise<RoomService.Response.Detail>;
|
|
9
9
|
share(request: RoomService.Request.Share): Promise<RoomService.Response.Share>;
|
|
10
10
|
uploadShareCover(request: RoomService.Request.UploadShareCover): Promise<RoomService.Response.UploadShareCover>;
|
|
11
|
+
getShareCover(request: RoomService.Request.getShareCover): Promise<RoomService.Response.getShareCover>;
|
|
11
12
|
settle(request: RoomService.Request.settle): Promise<RoomService.Response.settle>;
|
|
12
13
|
roomStatus(request: RoomService.Request.RoomStatus): Promise<RoomService.Response.RoomStatus>;
|
|
13
14
|
getBindStore(request: RoomService.Request.GetBindStore): Promise<RoomService.Response.GetBindStore>;
|
package/modules/room/service.js
CHANGED
|
@@ -36,6 +36,9 @@ let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
|
|
|
36
36
|
uploadShareCover(request) {
|
|
37
37
|
return (0, http_1.callApi)(this.getApiUrl(this.uploadShareCover), request);
|
|
38
38
|
}
|
|
39
|
+
getShareCover(request) {
|
|
40
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getShareCover), request);
|
|
41
|
+
}
|
|
39
42
|
settle(request) {
|
|
40
43
|
return (0, http_1.callApi)(this.getApiUrl(this.settle), request);
|
|
41
44
|
}
|
|
@@ -82,6 +85,11 @@ __decorate([
|
|
|
82
85
|
(0, tsoa_1.Post)('upload-share-cover'),
|
|
83
86
|
__param(0, (0, tsoa_1.Body)())
|
|
84
87
|
], RoomServiceClass.prototype, "uploadShareCover", null);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, tsoa_1.OperationId)('获取封面'),
|
|
90
|
+
(0, tsoa_1.Post)('get-share-cover'),
|
|
91
|
+
__param(0, (0, tsoa_1.Body)())
|
|
92
|
+
], RoomServiceClass.prototype, "getShareCover", null);
|
|
85
93
|
__decorate([
|
|
86
94
|
(0, tsoa_1.OperationId)('结算状态查询'),
|
|
87
95
|
(0, tsoa_1.Post)('settle'),
|
package/modules/room/types.d.ts
CHANGED
|
@@ -28,6 +28,13 @@ export declare namespace RoomService {
|
|
|
28
28
|
interface Share {
|
|
29
29
|
id: string;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* 获取封面
|
|
33
|
+
*/
|
|
34
|
+
interface getShareCover {
|
|
35
|
+
/** 直播间id */
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
31
38
|
/**
|
|
32
39
|
* 上传分分享封面
|
|
33
40
|
*/
|
|
@@ -112,6 +119,19 @@ export declare namespace RoomService {
|
|
|
112
119
|
id: string;
|
|
113
120
|
shareCover: string;
|
|
114
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* 获取封面
|
|
124
|
+
*/
|
|
125
|
+
interface getShareCover {
|
|
126
|
+
/** 直播间id */
|
|
127
|
+
id: string;
|
|
128
|
+
/** 名称 */
|
|
129
|
+
name: string;
|
|
130
|
+
/** 分享封面url */
|
|
131
|
+
shareCover: string;
|
|
132
|
+
/** 开始时间 */
|
|
133
|
+
liveTime: number;
|
|
134
|
+
}
|
|
115
135
|
/**
|
|
116
136
|
* 结算状态响应
|
|
117
137
|
*/
|
|
@@ -153,6 +173,7 @@ export declare namespace RoomService {
|
|
|
153
173
|
list(request: Request.List, req?: FastifyRequest): Promise<Response.List>;
|
|
154
174
|
detail(request: Request.Detail, req?: FastifyRequest): Promise<Response.Detail>;
|
|
155
175
|
share(request: Request.Share, req?: FastifyRequest): Promise<Response.Share>;
|
|
176
|
+
getShareCover(request: Request.getShareCover, req?: FastifyRequest): Promise<Response.getShareCover>;
|
|
156
177
|
uploadShareCover(request: Request.UploadShareCover, req?: FastifyRequest): Promise<Response.UploadShareCover>;
|
|
157
178
|
settle(request: Request.settle, req?: FastifyRequest): Promise<Response.settle>;
|
|
158
179
|
roomStatus(request: Request.RoomStatus, req?: FastifyRequest): Promise<Response.RoomStatus>;
|