@be-link/ecommerce-client-backend-service-node-sdk 0.1.94 → 0.1.96
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.
|
@@ -11,6 +11,7 @@ declare class RoomServiceClass extends BaseService implements RoomService.BaseCo
|
|
|
11
11
|
getShareCover(request: RoomService.Request.GetShareCover): Promise<RoomService.Response.GetShareCover>;
|
|
12
12
|
settle(request: RoomService.Request.settle): Promise<RoomService.Response.settle>;
|
|
13
13
|
roomStatus(request: RoomService.Request.RoomStatus): Promise<RoomService.Response.RoomStatus>;
|
|
14
|
+
listQuickCommentContent(request: RoomService.Request.ListQuickCommentContent): Promise<RoomService.Response.ListQuickCommentContent>;
|
|
14
15
|
getBindStore(request: RoomService.Request.GetBindStore): Promise<RoomService.Response.GetBindStore>;
|
|
15
16
|
bindStore(request: RoomService.Request.BindStore): Promise<void>;
|
|
16
17
|
/** 根据门店绑定关系查询直播间列表 */
|
package/modules/room/service.js
CHANGED
|
@@ -45,6 +45,9 @@ let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
|
|
|
45
45
|
roomStatus(request) {
|
|
46
46
|
return (0, http_1.callApi)(this.getApiUrl(this.roomStatus), request);
|
|
47
47
|
}
|
|
48
|
+
listQuickCommentContent(request) {
|
|
49
|
+
return (0, http_1.callApi)(this.getApiUrl(this.listQuickCommentContent), request);
|
|
50
|
+
}
|
|
48
51
|
getBindStore(request) {
|
|
49
52
|
return (0, http_1.callApi)(this.getApiUrl(this.getBindStore), request);
|
|
50
53
|
}
|
|
@@ -122,6 +125,11 @@ __decorate([
|
|
|
122
125
|
(0, tsoa_1.Post)('room-status'),
|
|
123
126
|
__param(0, (0, tsoa_1.Body)())
|
|
124
127
|
], RoomServiceClass.prototype, "roomStatus", null);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, tsoa_1.OperationId)('获取直播间快捷评论内容'),
|
|
130
|
+
(0, tsoa_1.Post)('list-quick-comment-content'),
|
|
131
|
+
__param(0, (0, tsoa_1.Body)())
|
|
132
|
+
], RoomServiceClass.prototype, "listQuickCommentContent", null);
|
|
125
133
|
__decorate([
|
|
126
134
|
(0, tsoa_1.OperationId)('绑定门店列表查询'),
|
|
127
135
|
(0, tsoa_1.Post)('get-bind-store'),
|
package/modules/room/types.d.ts
CHANGED
|
@@ -54,6 +54,13 @@ export declare namespace RoomService {
|
|
|
54
54
|
interface RoomStatus {
|
|
55
55
|
id: string;
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* 获取直播间快捷评论内容
|
|
59
|
+
*/
|
|
60
|
+
interface ListQuickCommentContent {
|
|
61
|
+
/** 直播间ID */
|
|
62
|
+
liveStreamRoomId: string;
|
|
63
|
+
}
|
|
57
64
|
/**
|
|
58
65
|
* 绑定门店列表查询
|
|
59
66
|
*/
|
|
@@ -236,6 +243,12 @@ export declare namespace RoomService {
|
|
|
236
243
|
id: string;
|
|
237
244
|
status: ENUM.ROOM.STATUS;
|
|
238
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* 直播间快捷评论内容
|
|
248
|
+
*/
|
|
249
|
+
interface ListQuickCommentContent {
|
|
250
|
+
quickComments: string[];
|
|
251
|
+
}
|
|
239
252
|
/**
|
|
240
253
|
* 绑定门店列表响应
|
|
241
254
|
*/
|
|
@@ -369,6 +382,7 @@ export declare namespace RoomService {
|
|
|
369
382
|
uploadShareCover(request: Request.UploadShareCover, req?: FastifyRequest): Promise<Response.UploadShareCover>;
|
|
370
383
|
settle(request: Request.settle, req?: FastifyRequest): Promise<Response.settle>;
|
|
371
384
|
roomStatus(request: Request.RoomStatus, req?: FastifyRequest): Promise<Response.RoomStatus>;
|
|
385
|
+
listQuickCommentContent(request: Request.ListQuickCommentContent, req?: FastifyRequest): Promise<Response.ListQuickCommentContent>;
|
|
372
386
|
getBindStore(request: Request.GetBindStore, req?: FastifyRequest): Promise<Response.GetBindStore>;
|
|
373
387
|
bindStore(request: Request.BindStore, req?: FastifyRequest): Promise<void>;
|
|
374
388
|
/**
|
|
@@ -6,6 +6,7 @@ declare class RuleServiceClass extends BaseService implements RuleService.BaseCo
|
|
|
6
6
|
deleteRoomVisibilityRule(request: RuleService.Request.Delete): Promise<void>;
|
|
7
7
|
getRoomVisibilityRuleList(request: RuleService.Request.List): Promise<RuleService.Response.List>;
|
|
8
8
|
checkRoomVisibilityRule(request: RuleService.Request.Check): Promise<RuleService.Response.Check>;
|
|
9
|
+
batchCheckRoomVisibilityRule(request: RuleService.Request.BatchCheck): Promise<RuleService.Response.BatchCheck>;
|
|
9
10
|
}
|
|
10
11
|
export declare const ruleService: RuleServiceClass;
|
|
11
12
|
export default ruleService;
|
package/modules/rule/service.js
CHANGED
|
@@ -33,6 +33,9 @@ let RuleServiceClass = class RuleServiceClass extends BaseService_1.default {
|
|
|
33
33
|
checkRoomVisibilityRule(request) {
|
|
34
34
|
return (0, http_1.callApi)(this.getApiUrl(this.checkRoomVisibilityRule), request);
|
|
35
35
|
}
|
|
36
|
+
batchCheckRoomVisibilityRule(request) {
|
|
37
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchCheckRoomVisibilityRule), request);
|
|
38
|
+
}
|
|
36
39
|
};
|
|
37
40
|
__decorate([
|
|
38
41
|
(0, tsoa_1.OperationId)('创建直播间可见性规则'),
|
|
@@ -54,6 +57,11 @@ __decorate([
|
|
|
54
57
|
(0, tsoa_1.Post)('check-room-visibility-rule'),
|
|
55
58
|
__param(0, (0, tsoa_1.Body)())
|
|
56
59
|
], RuleServiceClass.prototype, "checkRoomVisibilityRule", null);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, tsoa_1.OperationId)('批量检查门店是否可见直播间'),
|
|
62
|
+
(0, tsoa_1.Post)('batch-check-room-visibility-rule'),
|
|
63
|
+
__param(0, (0, tsoa_1.Body)())
|
|
64
|
+
], RuleServiceClass.prototype, "batchCheckRoomVisibilityRule", null);
|
|
57
65
|
RuleServiceClass = __decorate([
|
|
58
66
|
(0, tsoa_1.Route)('rule'),
|
|
59
67
|
(0, tsoa_1.Tags)('Rule')
|
package/modules/rule/types.d.ts
CHANGED
|
@@ -47,6 +47,17 @@ export declare namespace RuleService {
|
|
|
47
47
|
/** 调用平台:client-客户端、backend-后台 */
|
|
48
48
|
platform?: string;
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* 批量检查直播间可见性规则
|
|
52
|
+
*/
|
|
53
|
+
interface BatchCheck {
|
|
54
|
+
/** 直播间id列表 */
|
|
55
|
+
liveStreamRoomIds: string[];
|
|
56
|
+
/** 门店id */
|
|
57
|
+
storeId: string;
|
|
58
|
+
/** 调用平台:client-客户端、backend-后台 */
|
|
59
|
+
platform?: string;
|
|
60
|
+
}
|
|
50
61
|
}
|
|
51
62
|
namespace Response {
|
|
52
63
|
/**
|
|
@@ -65,6 +76,16 @@ export declare namespace RuleService {
|
|
|
65
76
|
/** 不可见时的提示信息 */
|
|
66
77
|
message?: string;
|
|
67
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* 批量检查直播间可见性规则
|
|
81
|
+
*/
|
|
82
|
+
interface BatchCheck {
|
|
83
|
+
/** 检查结果列表,顺序与请求中的直播间id列表一致 */
|
|
84
|
+
list: Array<{
|
|
85
|
+
/** 直播间id */
|
|
86
|
+
liveStreamRoomId: string;
|
|
87
|
+
} & Check>;
|
|
88
|
+
}
|
|
68
89
|
}
|
|
69
90
|
interface BaseController {
|
|
70
91
|
/** 创建直播间可见性规则 */
|
|
@@ -75,5 +96,7 @@ export declare namespace RuleService {
|
|
|
75
96
|
getRoomVisibilityRuleList(request: RuleService.Request.List, req: FastifyRequest): Promise<RuleService.Response.List>;
|
|
76
97
|
/** 检查直播间可见性规则 */
|
|
77
98
|
checkRoomVisibilityRule(request: RuleService.Request.Check, req: FastifyRequest): Promise<RuleService.Response.Check>;
|
|
99
|
+
/** 批量检查门店是否可见直播间 */
|
|
100
|
+
batchCheckRoomVisibilityRule(request: RuleService.Request.BatchCheck, req: FastifyRequest): Promise<RuleService.Response.BatchCheck>;
|
|
78
101
|
}
|
|
79
102
|
}
|