@be-link/ecommerce-client-backend-service-node-sdk 0.1.94 → 0.1.95
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.
|
@@ -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
|
}
|