@be-link/ecommerce-store-service-node-sdk 0.1.23 → 0.1.25
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.
package/modules/BaseService.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export default abstract class BaseService {
|
|
|
7
7
|
/** URL一级路径 */
|
|
8
8
|
protected abstract prefixUrl: string;
|
|
9
9
|
/** 子网域名 */
|
|
10
|
-
protected readonly natDevHost = "
|
|
11
|
-
protected readonly natProdHost = "http://
|
|
10
|
+
protected readonly natDevHost = "https://ecommerce-dev.wejourney.top/store";
|
|
11
|
+
protected readonly natProdHost = "http://10.1.0.109:8090/store";
|
|
12
12
|
/** 公网域名 */
|
|
13
13
|
protected readonly publicDevHost = "https://ecommerce-dev.wejourney.top/store";
|
|
14
14
|
protected readonly publicProdHost = "";
|
package/modules/BaseService.js
CHANGED
|
@@ -12,8 +12,8 @@ const string_1 = require("../utils/string");
|
|
|
12
12
|
class BaseService {
|
|
13
13
|
constructor() {
|
|
14
14
|
/** 子网域名 */
|
|
15
|
-
this.natDevHost = '
|
|
16
|
-
this.natProdHost = 'http://
|
|
15
|
+
this.natDevHost = 'https://ecommerce-dev.wejourney.top/store';
|
|
16
|
+
this.natProdHost = 'http://10.1.0.109:8090/store';
|
|
17
17
|
/** 公网域名 */
|
|
18
18
|
this.publicDevHost = 'https://ecommerce-dev.wejourney.top/store';
|
|
19
19
|
this.publicProdHost = '';
|
|
@@ -11,6 +11,7 @@ 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>;
|
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
|
}
|
|
@@ -115,6 +118,11 @@ __decorate([
|
|
|
115
118
|
(0, tsoa_1.Post)('get-store-id-by-name'),
|
|
116
119
|
__param(0, (0, tsoa_1.Body)())
|
|
117
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);
|
|
118
126
|
__decorate([
|
|
119
127
|
(0, tsoa_1.OperationId)('统一绑定门店人员'),
|
|
120
128
|
(0, tsoa_1.Post)('bind-store-user'),
|
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
|
*/
|
|
@@ -677,6 +684,11 @@ export declare namespace Store {
|
|
|
677
684
|
storeName: string;
|
|
678
685
|
}>;
|
|
679
686
|
}
|
|
687
|
+
/**
|
|
688
|
+
* 批量根据门店名称精确获取门店ID响应
|
|
689
|
+
* key 为门店名称,value 为门店ID
|
|
690
|
+
*/
|
|
691
|
+
type BatchGetStoreIdsByNames = Record<string, string>;
|
|
680
692
|
/**
|
|
681
693
|
* 根据条件查询门店ID列表响应
|
|
682
694
|
*/
|
|
@@ -780,6 +792,12 @@ export declare namespace Store {
|
|
|
780
792
|
* @returns 响应数据
|
|
781
793
|
*/
|
|
782
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>;
|
|
783
801
|
/**
|
|
784
802
|
* 统一绑定门店人员(支持店长、BD、加盟商、BDM等)
|
|
785
803
|
* 替换逻辑:先解绑所有当前绑定该 userId 的门店,然后将传入的 storeIds 绑定到该 userId
|