@be-link/ecommerce-store-service-node-sdk 0.1.22 → 0.1.24
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,12 +11,14 @@ declare class StoreService extends BaseService implements Store.StoreController
|
|
|
11
11
|
batchGetStoreInfo(request: Store.Request.BatchGetStoreInfo): Promise<Store.Response.BatchGetStoreInfo>;
|
|
12
12
|
getStoreList(request: Store.Request.GetStoreList): Promise<Store.Response.GetStoreList>;
|
|
13
13
|
getStoreIdByName(request: Store.Request.GetStoreIdByName): Promise<Store.Response.GetStoreIdByName>;
|
|
14
|
+
batchGetStoreIdsByNames(request: Store.Request.BatchGetStoreIdsByNames): Promise<Store.Response.BatchGetStoreIdsByNames>;
|
|
14
15
|
bindStoreUser(request: Store.Request.BindStoreUser): Promise<Store.Response.BindStoreUser>;
|
|
15
16
|
getStoreFullInfo(request: Store.Request.GetStoreFullInfo): Promise<Store.Response.GetStoreFullInfo>;
|
|
16
17
|
getStoreIdsByConditions(request: Store.Request.GetStoreIdsByConditions): Promise<Store.Response.GetStoreIdsByConditions>;
|
|
17
18
|
getStoreCount(): Promise<Store.Response.GetStoreCount>;
|
|
18
19
|
bindWelfareOfficial(request: Store.Request.BindWelfareOfficial): Promise<void>;
|
|
19
20
|
getWelfareOfficialByStoreId(request: Store.Request.GetWelfareOfficialByStoreId): Promise<Store.Response.GetWelfareOfficialByStoreId>;
|
|
21
|
+
batchGetWelfareOfficialByStoreIds(request: Store.Request.BatchGetWelfareOfficialByStoreIds): Promise<Store.Response.BatchGetWelfareOfficialByStoreIds>;
|
|
20
22
|
}
|
|
21
23
|
export declare const storeService: StoreService;
|
|
22
24
|
export default storeService;
|
package/modules/store/service.js
CHANGED
|
@@ -48,6 +48,9 @@ let StoreService = class StoreService extends BaseService_1.default {
|
|
|
48
48
|
getStoreIdByName(request) {
|
|
49
49
|
return (0, http_1.callApi)(this.getApiUrl(this.getStoreIdByName), request);
|
|
50
50
|
}
|
|
51
|
+
batchGetStoreIdsByNames(request) {
|
|
52
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchGetStoreIdsByNames), request);
|
|
53
|
+
}
|
|
51
54
|
bindStoreUser(request) {
|
|
52
55
|
return (0, http_1.callApi)(this.getApiUrl(this.bindStoreUser), request);
|
|
53
56
|
}
|
|
@@ -66,6 +69,9 @@ let StoreService = class StoreService extends BaseService_1.default {
|
|
|
66
69
|
getWelfareOfficialByStoreId(request) {
|
|
67
70
|
return (0, http_1.callApi)(this.getApiUrl(this.getWelfareOfficialByStoreId), request);
|
|
68
71
|
}
|
|
72
|
+
batchGetWelfareOfficialByStoreIds(request) {
|
|
73
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchGetWelfareOfficialByStoreIds), request);
|
|
74
|
+
}
|
|
69
75
|
};
|
|
70
76
|
__decorate([
|
|
71
77
|
(0, tsoa_1.OperationId)('创建门店'),
|
|
@@ -112,6 +118,11 @@ __decorate([
|
|
|
112
118
|
(0, tsoa_1.Post)('get-store-id-by-name'),
|
|
113
119
|
__param(0, (0, tsoa_1.Body)())
|
|
114
120
|
], StoreService.prototype, "getStoreIdByName", null);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, tsoa_1.OperationId)('批量根据门店名称精确获取门店ID'),
|
|
123
|
+
(0, tsoa_1.Post)('batch-get-store-ids-by-names'),
|
|
124
|
+
__param(0, (0, tsoa_1.Body)())
|
|
125
|
+
], StoreService.prototype, "batchGetStoreIdsByNames", null);
|
|
115
126
|
__decorate([
|
|
116
127
|
(0, tsoa_1.OperationId)('统一绑定门店人员'),
|
|
117
128
|
(0, tsoa_1.Post)('bind-store-user'),
|
|
@@ -141,6 +152,11 @@ __decorate([
|
|
|
141
152
|
(0, tsoa_1.Post)('get-welfare-official-by-store-id'),
|
|
142
153
|
__param(0, (0, tsoa_1.Body)())
|
|
143
154
|
], StoreService.prototype, "getWelfareOfficialByStoreId", null);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, tsoa_1.OperationId)('批量通过门店IDs获取福利官信息'),
|
|
157
|
+
(0, tsoa_1.Post)('batch-get-welfare-official-by-store-ids'),
|
|
158
|
+
__param(0, (0, tsoa_1.Body)())
|
|
159
|
+
], StoreService.prototype, "batchGetWelfareOfficialByStoreIds", null);
|
|
144
160
|
StoreService = __decorate([
|
|
145
161
|
(0, tsoa_1.Route)('store'),
|
|
146
162
|
(0, tsoa_1.Tags)('Store')
|
package/modules/store/types.d.ts
CHANGED
|
@@ -467,6 +467,13 @@ export declare namespace Store {
|
|
|
467
467
|
/** 门店名称 */
|
|
468
468
|
storeName: string;
|
|
469
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
* 批量根据门店名称精确获取门店ID请求
|
|
472
|
+
*/
|
|
473
|
+
interface BatchGetStoreIdsByNames {
|
|
474
|
+
/** 门店名称列表 */
|
|
475
|
+
storeNames: string[];
|
|
476
|
+
}
|
|
470
477
|
/**
|
|
471
478
|
* 根据条件查询门店ID列表请求
|
|
472
479
|
*/
|
|
@@ -496,6 +503,11 @@ export declare namespace Store {
|
|
|
496
503
|
/** 门店ID */
|
|
497
504
|
storeId: string;
|
|
498
505
|
}
|
|
506
|
+
/** 批量通过门店IDs获取福利官信息 */
|
|
507
|
+
interface BatchGetWelfareOfficialByStoreIds {
|
|
508
|
+
/** 门店ID列表 */
|
|
509
|
+
storeIds: string[];
|
|
510
|
+
}
|
|
499
511
|
}
|
|
500
512
|
namespace Response {
|
|
501
513
|
/**
|
|
@@ -672,6 +684,11 @@ export declare namespace Store {
|
|
|
672
684
|
storeName: string;
|
|
673
685
|
}>;
|
|
674
686
|
}
|
|
687
|
+
/**
|
|
688
|
+
* 批量根据门店名称精确获取门店ID响应
|
|
689
|
+
* key 为门店名称,value 为门店ID
|
|
690
|
+
*/
|
|
691
|
+
type BatchGetStoreIdsByNames = Record<string, string>;
|
|
675
692
|
/**
|
|
676
693
|
* 根据条件查询门店ID列表响应
|
|
677
694
|
*/
|
|
@@ -697,6 +714,19 @@ export declare namespace Store {
|
|
|
697
714
|
/** 福利官企微二维码 */
|
|
698
715
|
welfareOfficialQrCodeUrl: string;
|
|
699
716
|
}
|
|
717
|
+
/** 批量通过门店IDs获取福利官信息响应,key 为门店 ID */
|
|
718
|
+
type BatchGetWelfareOfficialByStoreIds = Record<string, {
|
|
719
|
+
/** 门店ID */
|
|
720
|
+
storeId: string;
|
|
721
|
+
/** 福利官用户ID */
|
|
722
|
+
welfareOfficialUserId: string;
|
|
723
|
+
/** 福利官姓名 */
|
|
724
|
+
welfareOfficialName: string;
|
|
725
|
+
/** 福利官企微id */
|
|
726
|
+
welfareOfficialQyUserId: string;
|
|
727
|
+
/** 福利官企微二维码 */
|
|
728
|
+
welfareOfficialQrCodeUrl: string;
|
|
729
|
+
}>;
|
|
700
730
|
}
|
|
701
731
|
/**
|
|
702
732
|
* Store Controller 接口定义
|
|
@@ -762,6 +792,12 @@ export declare namespace Store {
|
|
|
762
792
|
* @returns 响应数据
|
|
763
793
|
*/
|
|
764
794
|
getStoreIdByName(request: Store.Request.GetStoreIdByName): Promise<Store.Response.GetStoreIdByName>;
|
|
795
|
+
/**
|
|
796
|
+
* 批量根据门店名称精确获取门店ID
|
|
797
|
+
* @param request 请求参数
|
|
798
|
+
* @returns 响应数据
|
|
799
|
+
*/
|
|
800
|
+
batchGetStoreIdsByNames(request: Store.Request.BatchGetStoreIdsByNames): Promise<Store.Response.BatchGetStoreIdsByNames>;
|
|
765
801
|
/**
|
|
766
802
|
* 统一绑定门店人员(支持店长、BD、加盟商、BDM等)
|
|
767
803
|
* 替换逻辑:先解绑所有当前绑定该 userId 的门店,然后将传入的 storeIds 绑定到该 userId
|
|
@@ -784,5 +820,7 @@ export declare namespace Store {
|
|
|
784
820
|
bindWelfareOfficial(request: Store.Request.BindWelfareOfficial): Promise<void>;
|
|
785
821
|
/** 通过门店获取福利官信息 */
|
|
786
822
|
getWelfareOfficialByStoreId(request: Store.Request.GetWelfareOfficialByStoreId): Promise<Store.Response.GetWelfareOfficialByStoreId>;
|
|
823
|
+
/** 批量通过门店IDs获取福利官信息 */
|
|
824
|
+
batchGetWelfareOfficialByStoreIds(request: Store.Request.BatchGetWelfareOfficialByStoreIds): Promise<Store.Response.BatchGetWelfareOfficialByStoreIds>;
|
|
787
825
|
}
|
|
788
826
|
}
|