@be-link/ecommerce-product-service-node-sdk 0.1.38 → 0.1.39
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.
|
@@ -5,6 +5,7 @@ declare class ProductLiveService extends BaseService implements Service.ProductL
|
|
|
5
5
|
list(request: Service.Request.list): Promise<Service.Response.list>;
|
|
6
6
|
add(request: Service.Request.operate[]): Promise<void>;
|
|
7
7
|
remove(request: Service.Request.operate): Promise<void>;
|
|
8
|
+
syncMemberCard(request: Service.Request.syncMemberCard): Promise<void>;
|
|
8
9
|
}
|
|
9
10
|
export declare const productLiveService: ProductLiveService;
|
|
10
11
|
export default productLiveService;
|
|
@@ -30,6 +30,9 @@ let ProductLiveService = class ProductLiveService extends BaseService_1.default
|
|
|
30
30
|
remove(request) {
|
|
31
31
|
return (0, http_1.callApi)(this.getApiUrl(this.remove), request);
|
|
32
32
|
}
|
|
33
|
+
syncMemberCard(request) {
|
|
34
|
+
return (0, http_1.callApi)(this.getApiUrl(this.syncMemberCard), request);
|
|
35
|
+
}
|
|
33
36
|
};
|
|
34
37
|
__decorate([
|
|
35
38
|
(0, tsoa_1.OperationId)('商品列表'),
|
|
@@ -46,6 +49,11 @@ __decorate([
|
|
|
46
49
|
(0, tsoa_1.Post)('remove'),
|
|
47
50
|
__param(0, (0, tsoa_1.Body)())
|
|
48
51
|
], ProductLiveService.prototype, "remove", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, tsoa_1.OperationId)('同步直播间开卡讲解卡片'),
|
|
54
|
+
(0, tsoa_1.Post)('sync-member-card'),
|
|
55
|
+
__param(0, (0, tsoa_1.Body)())
|
|
56
|
+
], ProductLiveService.prototype, "syncMemberCard", null);
|
|
49
57
|
ProductLiveService = __decorate([
|
|
50
58
|
(0, tsoa_1.Route)('product-live'),
|
|
51
59
|
(0, tsoa_1.Tags)('Product-live')
|
|
@@ -14,6 +14,14 @@ export declare namespace ProductLiveService {
|
|
|
14
14
|
/** 直播间ID */
|
|
15
15
|
liveRoomId: string;
|
|
16
16
|
}
|
|
17
|
+
interface syncMemberCard {
|
|
18
|
+
/** 直播间ID */
|
|
19
|
+
liveRoomId: string;
|
|
20
|
+
/** 城市ID */
|
|
21
|
+
cityId?: string;
|
|
22
|
+
/** 是否同步会员开卡卡片:true-开启 false-关闭 */
|
|
23
|
+
enableSync: boolean;
|
|
24
|
+
}
|
|
17
25
|
}
|
|
18
26
|
namespace Response {
|
|
19
27
|
interface list {
|
|
@@ -50,5 +58,9 @@ export declare namespace ProductLiveService {
|
|
|
50
58
|
* 删除商品
|
|
51
59
|
*/
|
|
52
60
|
remove(request: ProductLiveService.Request.operate): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* 同步直播间开卡讲解卡片
|
|
63
|
+
*/
|
|
64
|
+
syncMemberCard(request: ProductLiveService.Request.syncMemberCard): Promise<void>;
|
|
53
65
|
}
|
|
54
66
|
}
|