@be-link/ecommerce-backend-bff-service-node-sdk 0.0.111 → 0.0.114
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/cjs/bff/modules/pandora/coupon/types.d.ts +0 -6
- package/cjs/bff/modules/pandora/product/service.d.ts +2 -20
- package/cjs/bff/modules/pandora/product/service.js +0 -24
- package/cjs/bff/modules/pandora/product/types.d.ts +15 -253
- package/cjs/bff/modules/pandora/productExp/service.d.ts +2 -14
- package/cjs/bff/modules/pandora/productExp/service.js +2 -18
- package/cjs/bff/modules/pandora/productExp/types.d.ts +1 -54
- package/cjs/bff/modules/pandora/productLive/types.d.ts +0 -10
- package/cjs/bff/modules/pandora/room/service.d.ts +0 -6
- package/cjs/bff/modules/pandora/room/service.js +0 -8
- package/cjs/bff/modules/pandora/room/types.d.ts +2 -21
- package/cjs/bff/modules/pandora/user/service.d.ts +0 -1
- package/cjs/bff/modules/pandora/user/service.js +0 -3
- package/cjs/bff/modules/pandora/user/types.d.ts +0 -16
- package/cjs/enums.d.ts +0 -6
- package/cjs/enums.js +5 -21
- package/cjs/index.d.ts +8 -52
- package/cjs/index.js +38 -67
- package/cjs/utils/env.js +2 -2
- package/cjs/utils/http.js +1 -1
- package/esm/bff/modules/pandora/coupon/types.d.ts +0 -6
- package/esm/bff/modules/pandora/product/service.d.ts +2 -20
- package/esm/bff/modules/pandora/product/service.mjs +0 -24
- package/esm/bff/modules/pandora/product/types.d.ts +15 -253
- package/esm/bff/modules/pandora/productExp/service.d.ts +2 -14
- package/esm/bff/modules/pandora/productExp/service.mjs +2 -18
- package/esm/bff/modules/pandora/productExp/types.d.ts +1 -54
- package/esm/bff/modules/pandora/productLive/types.d.ts +0 -10
- package/esm/bff/modules/pandora/room/service.d.ts +0 -6
- package/esm/bff/modules/pandora/room/service.mjs +0 -8
- package/esm/bff/modules/pandora/room/types.d.ts +2 -21
- package/esm/bff/modules/pandora/user/service.d.ts +0 -1
- package/esm/bff/modules/pandora/user/service.mjs +0 -3
- package/esm/bff/modules/pandora/user/types.d.ts +0 -16
- package/esm/enums.d.ts +0 -6
- package/esm/enums.mjs +0 -10
- package/esm/index.d.ts +8 -52
- package/esm/index.mjs +8 -37
- package/esm/utils/env.mjs +2 -2
- package/esm/utils/http.mjs +1 -1
- package/package.json +9 -12
- package/cjs/bff/modules/pandora/award/service.d.ts +0 -17
- package/cjs/bff/modules/pandora/award/service.js +0 -27
- package/cjs/bff/modules/pandora/award/types.d.ts +0 -17
- package/cjs/bff/modules/pandora/award/types.js +0 -2
- package/cjs/bff/modules/pandora/orderCore/service.d.ts +0 -29
- package/cjs/bff/modules/pandora/orderCore/service.js +0 -43
- package/cjs/bff/modules/pandora/orderCore/types.d.ts +0 -18
- package/cjs/bff/modules/pandora/orderCore/types.js +0 -2
- package/cjs/bff/modules/pandora/orderQuery/service.d.ts +0 -35
- package/cjs/bff/modules/pandora/orderQuery/service.js +0 -51
- package/cjs/bff/modules/pandora/orderQuery/types.d.ts +0 -26
- package/cjs/bff/modules/pandora/orderQuery/types.js +0 -2
- package/cjs/bff/modules/pandora/pointRule/service.d.ts +0 -53
- package/cjs/bff/modules/pandora/pointRule/service.js +0 -75
- package/cjs/bff/modules/pandora/pointRule/types.d.ts +0 -38
- package/cjs/bff/modules/pandora/pointRule/types.js +0 -2
- package/cjs/bff/modules/pandora/pointsMall/service.d.ts +0 -47
- package/cjs/bff/modules/pandora/pointsMall/service.js +0 -67
- package/cjs/bff/modules/pandora/pointsMall/types.d.ts +0 -177
- package/cjs/bff/modules/pandora/pointsMall/types.js +0 -2
- package/cjs/bff/modules/pandora/store/service.d.ts +0 -95
- package/cjs/bff/modules/pandora/store/service.js +0 -131
- package/cjs/bff/modules/pandora/store/types.d.ts +0 -883
- package/cjs/bff/modules/pandora/store/types.js +0 -2
- package/cjs/bff/modules/pandora/storeUserRelation/service.d.ts +0 -41
- package/cjs/bff/modules/pandora/storeUserRelation/service.js +0 -59
- package/cjs/bff/modules/pandora/storeUserRelation/types.d.ts +0 -223
- package/cjs/bff/modules/pandora/storeUserRelation/types.js +0 -2
- package/cjs/bff/modules/pandora/task/service.d.ts +0 -65
- package/cjs/bff/modules/pandora/task/service.js +0 -91
- package/cjs/bff/modules/pandora/task/types.d.ts +0 -36
- package/cjs/bff/modules/pandora/task/types.js +0 -2
- package/cjs/bff/modules/pandora/taskWatch/service.d.ts +0 -23
- package/cjs/bff/modules/pandora/taskWatch/service.js +0 -35
- package/cjs/bff/modules/pandora/taskWatch/types.d.ts +0 -15
- package/cjs/bff/modules/pandora/taskWatch/types.js +0 -2
- package/cjs/bff/modules/pandora/userManager/service/address.service.d.ts +0 -12
- package/cjs/bff/modules/pandora/userManager/service/address.service.js +0 -32
- package/cjs/bff/modules/pandora/userManager/service/coupon.service.d.ts +0 -11
- package/cjs/bff/modules/pandora/userManager/service/coupon.service.js +0 -29
- package/cjs/bff/modules/pandora/userManager/service/index.d.ts +0 -5
- package/cjs/bff/modules/pandora/userManager/service/index.js +0 -21
- package/cjs/bff/modules/pandora/userManager/service/point.service.d.ts +0 -13
- package/cjs/bff/modules/pandora/userManager/service/point.service.js +0 -35
- package/cjs/bff/modules/pandora/userManager/service/region.service.d.ts +0 -14
- package/cjs/bff/modules/pandora/userManager/service/region.service.js +0 -38
- package/cjs/bff/modules/pandora/userManager/service/user.service.d.ts +0 -12
- package/cjs/bff/modules/pandora/userManager/service/user.service.js +0 -32
- package/cjs/bff/modules/pandora/userManager/types/address.types.d.ts +0 -94
- package/cjs/bff/modules/pandora/userManager/types/address.types.js +0 -2
- package/cjs/bff/modules/pandora/userManager/types/coupon.types.d.ts +0 -99
- package/cjs/bff/modules/pandora/userManager/types/coupon.types.js +0 -2
- package/cjs/bff/modules/pandora/userManager/types/index.d.ts +0 -5
- package/cjs/bff/modules/pandora/userManager/types/index.js +0 -21
- package/cjs/bff/modules/pandora/userManager/types/point.types.d.ts +0 -113
- package/cjs/bff/modules/pandora/userManager/types/point.types.js +0 -2
- package/cjs/bff/modules/pandora/userManager/types/region.types.d.ts +0 -77
- package/cjs/bff/modules/pandora/userManager/types/region.types.js +0 -2
- package/cjs/bff/modules/pandora/userManager/types/user.types.d.ts +0 -124
- package/cjs/bff/modules/pandora/userManager/types/user.types.js +0 -2
- package/esm/bff/modules/pandora/award/service.d.ts +0 -17
- package/esm/bff/modules/pandora/award/service.mjs +0 -20
- package/esm/bff/modules/pandora/award/types.d.ts +0 -17
- package/esm/bff/modules/pandora/award/types.mjs +0 -1
- package/esm/bff/modules/pandora/orderCore/service.d.ts +0 -29
- package/esm/bff/modules/pandora/orderCore/service.mjs +0 -36
- package/esm/bff/modules/pandora/orderCore/types.d.ts +0 -18
- package/esm/bff/modules/pandora/orderCore/types.mjs +0 -1
- package/esm/bff/modules/pandora/orderQuery/service.d.ts +0 -35
- package/esm/bff/modules/pandora/orderQuery/service.mjs +0 -44
- package/esm/bff/modules/pandora/orderQuery/types.d.ts +0 -26
- package/esm/bff/modules/pandora/orderQuery/types.mjs +0 -1
- package/esm/bff/modules/pandora/pointRule/service.d.ts +0 -53
- package/esm/bff/modules/pandora/pointRule/service.mjs +0 -68
- package/esm/bff/modules/pandora/pointRule/types.d.ts +0 -38
- package/esm/bff/modules/pandora/pointRule/types.mjs +0 -1
- package/esm/bff/modules/pandora/pointsMall/service.d.ts +0 -47
- package/esm/bff/modules/pandora/pointsMall/service.mjs +0 -60
- package/esm/bff/modules/pandora/pointsMall/types.d.ts +0 -177
- package/esm/bff/modules/pandora/pointsMall/types.mjs +0 -1
- package/esm/bff/modules/pandora/store/service.d.ts +0 -95
- package/esm/bff/modules/pandora/store/service.mjs +0 -124
- package/esm/bff/modules/pandora/store/types.d.ts +0 -883
- package/esm/bff/modules/pandora/store/types.mjs +0 -1
- package/esm/bff/modules/pandora/storeUserRelation/service.d.ts +0 -41
- package/esm/bff/modules/pandora/storeUserRelation/service.mjs +0 -52
- package/esm/bff/modules/pandora/storeUserRelation/types.d.ts +0 -223
- package/esm/bff/modules/pandora/storeUserRelation/types.mjs +0 -1
- package/esm/bff/modules/pandora/task/service.d.ts +0 -65
- package/esm/bff/modules/pandora/task/service.mjs +0 -84
- package/esm/bff/modules/pandora/task/types.d.ts +0 -36
- package/esm/bff/modules/pandora/task/types.mjs +0 -1
- package/esm/bff/modules/pandora/taskWatch/service.d.ts +0 -23
- package/esm/bff/modules/pandora/taskWatch/service.mjs +0 -28
- package/esm/bff/modules/pandora/taskWatch/types.d.ts +0 -15
- package/esm/bff/modules/pandora/taskWatch/types.mjs +0 -1
- package/esm/bff/modules/pandora/userManager/service/address.service.d.ts +0 -12
- package/esm/bff/modules/pandora/userManager/service/address.service.mjs +0 -25
- package/esm/bff/modules/pandora/userManager/service/coupon.service.d.ts +0 -11
- package/esm/bff/modules/pandora/userManager/service/coupon.service.mjs +0 -22
- package/esm/bff/modules/pandora/userManager/service/index.d.ts +0 -5
- package/esm/bff/modules/pandora/userManager/service/index.mjs +0 -5
- package/esm/bff/modules/pandora/userManager/service/point.service.d.ts +0 -13
- package/esm/bff/modules/pandora/userManager/service/point.service.mjs +0 -28
- package/esm/bff/modules/pandora/userManager/service/region.service.d.ts +0 -14
- package/esm/bff/modules/pandora/userManager/service/region.service.mjs +0 -31
- package/esm/bff/modules/pandora/userManager/service/user.service.d.ts +0 -12
- package/esm/bff/modules/pandora/userManager/service/user.service.mjs +0 -25
- package/esm/bff/modules/pandora/userManager/types/address.types.d.ts +0 -94
- package/esm/bff/modules/pandora/userManager/types/address.types.mjs +0 -1
- package/esm/bff/modules/pandora/userManager/types/coupon.types.d.ts +0 -99
- package/esm/bff/modules/pandora/userManager/types/coupon.types.mjs +0 -1
- package/esm/bff/modules/pandora/userManager/types/index.d.ts +0 -5
- package/esm/bff/modules/pandora/userManager/types/index.mjs +0 -5
- package/esm/bff/modules/pandora/userManager/types/point.types.d.ts +0 -113
- package/esm/bff/modules/pandora/userManager/types/point.types.mjs +0 -1
- package/esm/bff/modules/pandora/userManager/types/region.types.d.ts +0 -77
- package/esm/bff/modules/pandora/userManager/types/region.types.mjs +0 -1
- package/esm/bff/modules/pandora/userManager/types/user.types.d.ts +0 -124
- package/esm/bff/modules/pandora/userManager/types/user.types.mjs +0 -1
|
@@ -1,113 +1,68 @@
|
|
|
1
1
|
import { StandardResponse } from '../../../../types';
|
|
2
2
|
export declare namespace PandoraProductExpService {
|
|
3
3
|
interface ProductCategory {
|
|
4
|
-
/** 分类ID */
|
|
5
4
|
id: string;
|
|
6
|
-
/** 父级ID */
|
|
7
5
|
parentId: string;
|
|
8
|
-
/** 层级 */
|
|
9
6
|
level: number;
|
|
10
|
-
/** 分类名称 */
|
|
11
7
|
categoryName: string;
|
|
12
8
|
}
|
|
13
9
|
namespace Request {
|
|
14
10
|
interface getSupplierList {
|
|
15
|
-
/** 页码,0开始 */
|
|
16
11
|
pageIndex: number;
|
|
17
|
-
/** 每页数量 */
|
|
18
12
|
pageSize: number;
|
|
19
|
-
/** 供应商名称,模糊匹配 */
|
|
20
13
|
supplierName?: string;
|
|
21
14
|
}
|
|
22
15
|
interface addSupplier {
|
|
23
|
-
/** 供应商名称 */
|
|
24
16
|
supplierName: string;
|
|
25
17
|
}
|
|
26
18
|
interface getLiveGroupList {
|
|
27
|
-
/** 页码,0开始 */
|
|
28
19
|
pageIndex: number;
|
|
29
|
-
/** 每页数量 */
|
|
30
20
|
pageSize: number;
|
|
31
|
-
/** 直播分组名称,模糊匹配 */
|
|
32
21
|
liveGroupName?: string;
|
|
33
22
|
}
|
|
34
23
|
interface addLiveGroup {
|
|
35
|
-
/** 直播分组名称 */
|
|
36
24
|
liveGroupName: string;
|
|
37
25
|
}
|
|
38
26
|
interface productCategoryList {
|
|
39
|
-
/** 分类层级 */
|
|
40
27
|
level: number;
|
|
41
|
-
/** 父分类ID */
|
|
42
28
|
parentId?: string;
|
|
43
29
|
}
|
|
44
|
-
interface setStoreScope {
|
|
45
|
-
/** 商品Id */
|
|
46
|
-
productId: string;
|
|
47
|
-
/** 类型 VISIBLE | INVISIBLE */
|
|
48
|
-
type: string;
|
|
49
|
-
/** 门店Id列表 */
|
|
50
|
-
storeIds: string[];
|
|
51
|
-
}
|
|
52
|
-
interface queryStoreScope {
|
|
53
|
-
/** 商品Id */
|
|
54
|
-
productId: string;
|
|
55
|
-
}
|
|
56
30
|
}
|
|
57
31
|
namespace Response {
|
|
58
32
|
interface addSupplier {
|
|
59
|
-
/** 供应商Id */
|
|
60
33
|
supplierId: string;
|
|
61
34
|
}
|
|
62
35
|
interface getSupplierList {
|
|
63
36
|
total: number;
|
|
64
37
|
list: {
|
|
65
|
-
/** 供应商Id */
|
|
66
38
|
supplierId: string;
|
|
67
|
-
/** 供应商名称 */
|
|
68
39
|
supplierName: string;
|
|
69
40
|
}[];
|
|
70
41
|
}
|
|
71
42
|
interface addLiveGroup {
|
|
72
|
-
/** 直播分组Id */
|
|
73
43
|
liveGroupId: string;
|
|
74
44
|
}
|
|
75
45
|
interface getLiveGroupList {
|
|
76
46
|
total: number;
|
|
77
47
|
list: {
|
|
78
|
-
/** 直播分组Id */
|
|
79
48
|
liveGroupId: string;
|
|
80
|
-
/** 直播分组名称 */
|
|
81
49
|
liveGroupName: string;
|
|
82
50
|
}[];
|
|
83
51
|
}
|
|
84
52
|
interface list {
|
|
85
53
|
total: number;
|
|
86
54
|
list: {
|
|
87
|
-
/** 商品ID */
|
|
88
55
|
productId: string;
|
|
89
|
-
/** 商品名称 */
|
|
90
56
|
productName: string;
|
|
91
|
-
/** 商品图片 */
|
|
92
57
|
productImage: string;
|
|
93
|
-
/** 价格 */
|
|
94
58
|
price: number;
|
|
95
|
-
/** 库存 */
|
|
96
59
|
stock: number;
|
|
97
60
|
}[];
|
|
98
61
|
}
|
|
99
62
|
interface getProductManagerList {
|
|
100
|
-
/** 产品经理ID */
|
|
101
63
|
productManagerId: string;
|
|
102
|
-
/** 产品经理名称 */
|
|
103
64
|
productManagerName: string;
|
|
104
65
|
}
|
|
105
|
-
interface queryStoreScope {
|
|
106
|
-
/** 类型 VISIBLE | INVISIBLE */
|
|
107
|
-
type: string;
|
|
108
|
-
/** 门店Id列表 */
|
|
109
|
-
storeIds: string[];
|
|
110
|
-
}
|
|
111
66
|
}
|
|
112
67
|
/**
|
|
113
68
|
* ProductLive Controller 接口定义
|
|
@@ -132,18 +87,10 @@ export declare namespace PandoraProductExpService {
|
|
|
132
87
|
/**
|
|
133
88
|
* 获取产品经理列表
|
|
134
89
|
*/
|
|
135
|
-
getProductManagerList(): Promise<StandardResponse<PandoraProductExpService.Response.getProductManagerList
|
|
90
|
+
getProductManagerList(): Promise<StandardResponse<PandoraProductExpService.Response.getProductManagerList>>;
|
|
136
91
|
/**
|
|
137
92
|
* 商品分类列表
|
|
138
93
|
*/
|
|
139
94
|
productCategoryList(request: PandoraProductExpService.Request.productCategoryList): Promise<StandardResponse<PandoraProductExpService.ProductCategory[]>>;
|
|
140
|
-
/**
|
|
141
|
-
* 设置门店范围
|
|
142
|
-
*/
|
|
143
|
-
setStoreScope(request: PandoraProductExpService.Request.setStoreScope): Promise<StandardResponse<void>>;
|
|
144
|
-
/**
|
|
145
|
-
* 获取门店范围
|
|
146
|
-
*/
|
|
147
|
-
queryStoreScope(request: PandoraProductExpService.Request.queryStoreScope): Promise<StandardResponse<PandoraProductExpService.Response.queryStoreScope>>;
|
|
148
95
|
}
|
|
149
96
|
}
|
|
@@ -2,17 +2,12 @@ import { StandardResponse } from '../../../../types';
|
|
|
2
2
|
export declare namespace PandoraProductLiveService {
|
|
3
3
|
namespace Request {
|
|
4
4
|
interface list {
|
|
5
|
-
/** 0 开始 */
|
|
6
5
|
pageIndex: number;
|
|
7
|
-
/** 每页数量 */
|
|
8
6
|
pageSize: number;
|
|
9
|
-
/** 直播间ID */
|
|
10
7
|
liveRoomId: string;
|
|
11
8
|
}
|
|
12
9
|
interface operate {
|
|
13
|
-
/** 商品ID */
|
|
14
10
|
productId: string;
|
|
15
|
-
/** 直播间ID */
|
|
16
11
|
liveRoomId: string;
|
|
17
12
|
}
|
|
18
13
|
}
|
|
@@ -20,15 +15,10 @@ export declare namespace PandoraProductLiveService {
|
|
|
20
15
|
interface list {
|
|
21
16
|
total: number;
|
|
22
17
|
list: {
|
|
23
|
-
/** 商品ID */
|
|
24
18
|
productId: string;
|
|
25
|
-
/** 商品名称 */
|
|
26
19
|
productName: string;
|
|
27
|
-
/** 商品图片 */
|
|
28
20
|
productImage: string;
|
|
29
|
-
/** 价格 */
|
|
30
21
|
price: number;
|
|
31
|
-
/** 库存 */
|
|
32
22
|
stock: number;
|
|
33
23
|
}[];
|
|
34
24
|
}
|
|
@@ -56,10 +56,4 @@ export declare class PandoraRoomService extends BaseService implements Service.B
|
|
|
56
56
|
* @returns Promise,解析为标准响应格式
|
|
57
57
|
*/
|
|
58
58
|
bindStore(request: Service.Request.BindStore): Promise<StandardResponse<void>>;
|
|
59
|
-
/**
|
|
60
|
-
* 根据门店绑定关系查询直播间列表
|
|
61
|
-
* @param request - 请求参数
|
|
62
|
-
* @returns Promise,解析为标准响应格式
|
|
63
|
-
*/
|
|
64
|
-
listByStoreBind(request: Service.Request.ListByStoreBind): Promise<StandardResponse<Service.Response.ListByStoreBind>>;
|
|
65
59
|
}
|
|
@@ -79,13 +79,5 @@ class PandoraRoomService extends BaseService_1.default {
|
|
|
79
79
|
bindStore(request) {
|
|
80
80
|
return this.request(this.bindStore, request);
|
|
81
81
|
}
|
|
82
|
-
/**
|
|
83
|
-
* 根据门店绑定关系查询直播间列表
|
|
84
|
-
* @param request - 请求参数
|
|
85
|
-
* @returns Promise,解析为标准响应格式
|
|
86
|
-
*/
|
|
87
|
-
listByStoreBind(request) {
|
|
88
|
-
return this.request(this.listByStoreBind, request);
|
|
89
|
-
}
|
|
90
82
|
}
|
|
91
83
|
exports.PandoraRoomService = PandoraRoomService;
|
|
@@ -80,17 +80,6 @@ export declare namespace RoomService {
|
|
|
80
80
|
/** 门店ID列表 */
|
|
81
81
|
bind: string[];
|
|
82
82
|
}
|
|
83
|
-
/**
|
|
84
|
-
* 根据门店绑定关系查询直播间列表
|
|
85
|
-
*/
|
|
86
|
-
interface ListByStoreBind {
|
|
87
|
-
/** 门店ID */
|
|
88
|
-
storeId: string;
|
|
89
|
-
/** 页码,从0开始 */
|
|
90
|
-
pageIndex: number;
|
|
91
|
-
/** 每页数量,默认20,最大100 */
|
|
92
|
-
pageSize?: number;
|
|
93
|
-
}
|
|
94
83
|
}
|
|
95
84
|
namespace Response {
|
|
96
85
|
/**
|
|
@@ -145,13 +134,6 @@ export declare namespace RoomService {
|
|
|
145
134
|
/** 门店总数 */
|
|
146
135
|
total: number;
|
|
147
136
|
}
|
|
148
|
-
/**
|
|
149
|
-
* 根据门店绑定关系查询直播间列表响应
|
|
150
|
-
*/
|
|
151
|
-
interface ListByStoreBind {
|
|
152
|
-
list: Room[];
|
|
153
|
-
total: number;
|
|
154
|
-
}
|
|
155
137
|
}
|
|
156
138
|
interface BaseController {
|
|
157
139
|
list(request: Request.List): Promise<StandardResponse<Response.List>>;
|
|
@@ -162,7 +144,6 @@ export declare namespace RoomService {
|
|
|
162
144
|
roomStatus(request: Request.RoomStatus): Promise<StandardResponse<Response.RoomStatus>>;
|
|
163
145
|
getBindStore(request: Request.GetBindStore): Promise<StandardResponse<Response.GetBindStore>>;
|
|
164
146
|
bindStore(request: Request.BindStore): Promise<StandardResponse<void>>;
|
|
165
|
-
listByStoreBind(request: Request.ListByStoreBind): Promise<StandardResponse<Response.ListByStoreBind>>;
|
|
166
147
|
}
|
|
167
148
|
}
|
|
168
149
|
/**
|
|
@@ -244,8 +225,8 @@ export interface RoomBindStore {
|
|
|
244
225
|
address: string;
|
|
245
226
|
/** 门店电话 */
|
|
246
227
|
telephone: string;
|
|
247
|
-
/**
|
|
248
|
-
|
|
228
|
+
/** 绑定标签id,根据是否是空字符串表示是否有分组 */
|
|
229
|
+
tagId: string;
|
|
249
230
|
/** 联系人姓名(店长) */
|
|
250
231
|
storeManagerName: string;
|
|
251
232
|
/** 直播间id,根据id是否为空字符串表示是否绑定了本店 */
|
|
@@ -16,5 +16,4 @@ export declare class PandoraUserService extends BaseService implements Service.U
|
|
|
16
16
|
getUserInfoByRole(): Promise<StandardResponse<Service.Response.getUserInfoByRole>>;
|
|
17
17
|
getUserRolePermissions(request: Service.Request.getUserRolePermissions): Promise<StandardResponse<Service.Response.getUserRolePermissions>>;
|
|
18
18
|
getStoreOptions(request: Service.Request.getStoreOptions): Promise<StandardResponse<Service.Response.getStoreOptions>>;
|
|
19
|
-
getUserNamesByIds(request: Service.Request.getUserNamesByIds): Promise<StandardResponse<Service.Response.getUserNamesByIds>>;
|
|
20
19
|
}
|
|
@@ -39,8 +39,5 @@ class PandoraUserService extends BaseService_1.default {
|
|
|
39
39
|
getStoreOptions(request) {
|
|
40
40
|
return this.request(this.getStoreOptions, request);
|
|
41
41
|
}
|
|
42
|
-
getUserNamesByIds(request) {
|
|
43
|
-
return this.request(this.getUserNamesByIds, request);
|
|
44
|
-
}
|
|
45
42
|
}
|
|
46
43
|
exports.PandoraUserService = PandoraUserService;
|
|
@@ -59,12 +59,6 @@ export declare namespace PandoraUserService {
|
|
|
59
59
|
interface getStoreOptions {
|
|
60
60
|
name?: string;
|
|
61
61
|
}
|
|
62
|
-
/**
|
|
63
|
-
* 批量获取用户名称
|
|
64
|
-
*/
|
|
65
|
-
interface getUserNamesByIds {
|
|
66
|
-
ids: string[];
|
|
67
|
-
}
|
|
68
62
|
}
|
|
69
63
|
namespace Response {
|
|
70
64
|
/**
|
|
@@ -167,15 +161,6 @@ export declare namespace PandoraUserService {
|
|
|
167
161
|
name: string;
|
|
168
162
|
}>;
|
|
169
163
|
}
|
|
170
|
-
/**
|
|
171
|
-
* 批量获取用户名称响应
|
|
172
|
-
*/
|
|
173
|
-
interface getUserNamesByIds {
|
|
174
|
-
users: Array<{
|
|
175
|
-
id: string;
|
|
176
|
-
name: string;
|
|
177
|
-
}>;
|
|
178
|
-
}
|
|
179
164
|
}
|
|
180
165
|
/**
|
|
181
166
|
* User Controller 接口定义
|
|
@@ -189,6 +174,5 @@ export declare namespace PandoraUserService {
|
|
|
189
174
|
getUserInfoByRole(): Promise<StandardResponse<Response.getUserInfoByRole>>;
|
|
190
175
|
getUserRolePermissions(request: Request.getUserRolePermissions): Promise<StandardResponse<Response.getUserRolePermissions>>;
|
|
191
176
|
getStoreOptions(request: Request.getStoreOptions): Promise<StandardResponse<Response.getStoreOptions>>;
|
|
192
|
-
getUserNamesByIds(request: Request.getUserNamesByIds): Promise<StandardResponse<Response.getUserNamesByIds>>;
|
|
193
177
|
}
|
|
194
178
|
}
|
package/cjs/enums.d.ts
CHANGED
|
@@ -3,11 +3,5 @@
|
|
|
3
3
|
* 集中管理所有第三方服务 SDK 的枚举和常量
|
|
4
4
|
*/
|
|
5
5
|
export { ENUM as PRODUCT_SERVICE_ENUM } from '@be-link/ecommerce-product-service-node-sdk/enum';
|
|
6
|
-
export { ENUM as STORE_SERVICE_ENUM } from '@be-link/ecommerce-store-service-node-sdk/enums';
|
|
7
|
-
export { ENUM as PROMOTION_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
|
|
8
6
|
export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
|
|
9
7
|
export { ENUM as PROMOTION_SERVICE_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
|
|
10
|
-
export { ENUM as USER_SERVICE_ENUM } from '@be-link/ecommerce-user-service-node-sdk/enum';
|
|
11
|
-
export { ENUM as TRADE_SERVICE_ENUM } from '@be-link/ecommerce-trade-service-node-sdk/enums';
|
|
12
|
-
export { ENUM as TASK_CENTER_ENUM } from '@be-link/ecommerce-task-center-service-node-sdk/enum';
|
|
13
|
-
export { ENUM as BACKEND_SERVICE_ENUM } from '@be-link/ecommerce-backend-user-service-node-sdk/enum';
|
package/cjs/enums.js
CHANGED
|
@@ -4,29 +4,13 @@
|
|
|
4
4
|
* 集中管理所有第三方服务 SDK 的枚举和常量
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
7
|
+
exports.PROMOTION_SERVICE_ENUM = exports.ROOM_SERVICE_ENUM = exports.PRODUCT_SERVICE_ENUM = void 0;
|
|
8
8
|
// 商品服务枚举
|
|
9
9
|
var enum_1 = require("@be-link/ecommerce-product-service-node-sdk/enum");
|
|
10
10
|
Object.defineProperty(exports, "PRODUCT_SERVICE_ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
|
|
11
|
-
var enums_1 = require("@be-link/ecommerce-store-service-node-sdk/enums");
|
|
12
|
-
Object.defineProperty(exports, "STORE_SERVICE_ENUM", { enumerable: true, get: function () { return enums_1.ENUM; } });
|
|
13
|
-
var enum_2 = require("@be-link/ecommerce-promotion-service-node-sdk/enum");
|
|
14
|
-
Object.defineProperty(exports, "PROMOTION_ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
|
|
15
11
|
// 直播间枚举
|
|
16
|
-
var
|
|
17
|
-
Object.defineProperty(exports, "ROOM_SERVICE_ENUM", { enumerable: true, get: function () { return
|
|
12
|
+
var enum_2 = require("@be-link/ecommerce-client-backend-service-node-sdk/enum");
|
|
13
|
+
Object.defineProperty(exports, "ROOM_SERVICE_ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
|
|
18
14
|
// 优惠券服务枚举
|
|
19
|
-
var
|
|
20
|
-
Object.defineProperty(exports, "PROMOTION_SERVICE_ENUM", { enumerable: true, get: function () { return
|
|
21
|
-
// 用户服务枚举
|
|
22
|
-
var enum_5 = require("@be-link/ecommerce-user-service-node-sdk/enum");
|
|
23
|
-
Object.defineProperty(exports, "USER_SERVICE_ENUM", { enumerable: true, get: function () { return enum_5.ENUM; } });
|
|
24
|
-
// 交易服务枚举
|
|
25
|
-
var enums_2 = require("@be-link/ecommerce-trade-service-node-sdk/enums");
|
|
26
|
-
Object.defineProperty(exports, "TRADE_SERVICE_ENUM", { enumerable: true, get: function () { return enums_2.ENUM; } });
|
|
27
|
-
// 任务中心服务枚举
|
|
28
|
-
var enum_6 = require("@be-link/ecommerce-task-center-service-node-sdk/enum");
|
|
29
|
-
Object.defineProperty(exports, "TASK_CENTER_ENUM", { enumerable: true, get: function () { return enum_6.ENUM; } });
|
|
30
|
-
// 后台用户枚举
|
|
31
|
-
var enum_7 = require("@be-link/ecommerce-backend-user-service-node-sdk/enum");
|
|
32
|
-
Object.defineProperty(exports, "BACKEND_SERVICE_ENUM", { enumerable: true, get: function () { return enum_7.ENUM; } });
|
|
15
|
+
var enum_3 = require("@be-link/ecommerce-promotion-service-node-sdk/enum");
|
|
16
|
+
Object.defineProperty(exports, "PROMOTION_SERVICE_ENUM", { enumerable: true, get: function () { return enum_3.ENUM; } });
|
package/cjs/index.d.ts
CHANGED
|
@@ -1,33 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PandoraStoreUserRelationService } from './bff/modules/pandora/storeUserRelation/service';
|
|
1
|
+
import { PandoraExampleService } from './bff/modules/pandora/example/service';
|
|
3
2
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
|
|
4
3
|
import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service';
|
|
5
4
|
import { PandoraAuthService } from './bff/modules/pandora/auth/service';
|
|
6
5
|
import { PandoraBDService } from './bff/modules/pandora/bd/service';
|
|
7
6
|
import { PandoraBDMService } from './bff/modules/pandora/bdm/service';
|
|
8
7
|
import { PandoraCommonService } from './bff/modules/pandora/common/service';
|
|
9
|
-
import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
|
|
10
|
-
import { PandoraExampleService } from './bff/modules/pandora/example/service';
|
|
11
|
-
import { PandoraProductService } from './bff/modules/pandora/product/service';
|
|
12
|
-
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
|
|
13
|
-
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
|
|
14
8
|
import { PandoraRoleService } from './bff/modules/pandora/role/service';
|
|
15
|
-
import { PandoraRoomService } from './bff/modules/pandora/room/service';
|
|
16
9
|
import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
|
|
17
10
|
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
|
|
18
11
|
import { PandoraUserService } from './bff/modules/pandora/user/service';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service';
|
|
25
|
-
import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service';
|
|
26
|
-
import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
|
|
27
|
-
import { PandoraTaskService } from './bff/modules/pandora/task/service';
|
|
28
|
-
import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service';
|
|
29
|
-
import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service';
|
|
30
|
-
import { PandoraAwardService } from './bff/modules/pandora/award/service';
|
|
12
|
+
import { PandoraProductService } from './bff/modules/pandora/product/service';
|
|
13
|
+
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
|
|
14
|
+
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
|
|
15
|
+
import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
|
|
16
|
+
import { PandoraRoomService } from './bff/modules/pandora/room/service';
|
|
31
17
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
|
|
32
18
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
|
|
33
19
|
import { SdkOptions } from './types';
|
|
@@ -52,34 +38,14 @@ export declare class PandoraSDK {
|
|
|
52
38
|
storeClerk: PandoraStoreClerkService;
|
|
53
39
|
storeManager: PandoraStoreManagerService;
|
|
54
40
|
user: PandoraUserService;
|
|
55
|
-
userManagement: PandoraUserManagementService;
|
|
56
|
-
pointManagement: PandoraPointManagementService;
|
|
57
|
-
couponManagement: PandoraCouponManagementService;
|
|
58
|
-
addressManagement: PandoraAddressManagementService;
|
|
59
|
-
regionManagement: PandoraRegionManagementService;
|
|
60
41
|
product: PandoraProductService;
|
|
61
42
|
productExp: PandoraProductExpService;
|
|
62
43
|
productLive: PandoraProductLiveService;
|
|
63
44
|
coupon: PandoraCouponService;
|
|
64
|
-
pointMall: PandoraPointsMallService;
|
|
65
|
-
/**
|
|
66
|
-
* Pandora 门店服务模块
|
|
67
|
-
*/
|
|
68
|
-
store: PandoraStoreService;
|
|
69
|
-
/**
|
|
70
|
-
* Pandora 门店用户关系服务模块
|
|
71
|
-
*/
|
|
72
|
-
storeUserRelation: PandoraStoreUserRelationService;
|
|
73
|
-
award: PandoraAwardService;
|
|
74
45
|
/**
|
|
75
46
|
* 直播间模块
|
|
76
47
|
*/
|
|
77
48
|
room: PandoraRoomService;
|
|
78
|
-
orderQuery: PandoraOrderQueryService;
|
|
79
|
-
orderCore: PandoraOrderCoreService;
|
|
80
|
-
task: PandoraTaskService;
|
|
81
|
-
taskWatch: PandoraTaskWatchService;
|
|
82
|
-
pointRule: PandoraPointRuleService;
|
|
83
49
|
/**
|
|
84
50
|
* 加盟商模块
|
|
85
51
|
*/
|
|
@@ -117,14 +83,12 @@ export declare class MiniProgramSDK {
|
|
|
117
83
|
*/
|
|
118
84
|
constructor(options: SdkOptions);
|
|
119
85
|
}
|
|
120
|
-
export {
|
|
121
|
-
export {
|
|
86
|
+
export { SdkError, BizError, SystemError } from './errors';
|
|
87
|
+
export { SdkOptions, IRequestStrategy, StandardResponse } from './types';
|
|
122
88
|
export * from './enums';
|
|
123
89
|
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
124
90
|
export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
|
|
125
91
|
export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
|
126
|
-
export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
|
|
127
|
-
export { StoreUserRelationService as PandoraStoreUserRelationServiceTypes } from './bff/modules/pandora/storeUserRelation/types';
|
|
128
92
|
export { PandoraAuthService as PandoraAuthServiceTypes } from './bff/modules/pandora/auth/types';
|
|
129
93
|
export { PandoraBDService as PandoraBDServiceTypes } from './bff/modules/pandora/bd/types';
|
|
130
94
|
export { PandoraBDMService as PandoraBDMServiceTypes } from './bff/modules/pandora/bdm/types';
|
|
@@ -133,18 +97,10 @@ export { PandoraRoleService as PandoraRoleServiceTypes } from './bff/modules/pan
|
|
|
133
97
|
export { PandoraStoreClerkService as PandoraStoreClerkServiceTypes } from './bff/modules/pandora/storeClerk/types';
|
|
134
98
|
export { PandoraStoreManagerService as PandoraStoreManagerServiceTypes } from './bff/modules/pandora/storeManager/types';
|
|
135
99
|
export { PandoraUserService as PandoraUserServiceTypes } from './bff/modules/pandora/user/types';
|
|
136
|
-
export * from './bff/modules/pandora/userManager/types';
|
|
137
100
|
export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
|
|
138
101
|
export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
|
|
139
102
|
export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
|
|
140
|
-
export { PandoraOrderQueryService as PandoraOrderQueryServiceTypes } from './bff/modules/pandora/orderQuery/types';
|
|
141
|
-
export { PandoraOrderCoreService as PandoraOrderCoreServiceTypes } from './bff/modules/pandora/orderCore/types';
|
|
142
|
-
export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
|
|
143
|
-
export { PandoraTaskWatchService as PandoraTaskWatchServiceTypes } from './bff/modules/pandora/taskWatch/types';
|
|
144
|
-
export { PandoraPointRuleService as PandoraPointRuleServiceTypes } from './bff/modules/pandora/pointRule/types';
|
|
145
103
|
export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
|
|
146
104
|
export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
|
|
147
|
-
export { PointMallService as PointMallServiceTypes } from './bff/modules/pandora/pointsMall/types';
|
|
148
|
-
export { AwardService as PandoraAwardServiceTypes } from './bff/modules/pandora/award/types';
|
|
149
105
|
export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
|
|
150
106
|
export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
|
package/cjs/index.js
CHANGED
|
@@ -14,40 +14,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.SystemError = exports.
|
|
18
|
-
const service_1 = require("./bff/modules/pandora/store/service");
|
|
19
|
-
const service_2 = require("./bff/modules/pandora/storeUserRelation/service");
|
|
20
|
-
const service_3 = require("./bff/modules/miniprogram/demo/service");
|
|
21
|
-
const service_4 = require("./bff/modules/miniprogram/auth/service");
|
|
22
|
-
const service_5 = require("./bff/modules/pandora/auth/service");
|
|
23
|
-
const service_6 = require("./bff/modules/pandora/bd/service");
|
|
24
|
-
const service_7 = require("./bff/modules/pandora/bdm/service");
|
|
25
|
-
const service_8 = require("./bff/modules/pandora/common/service");
|
|
26
|
-
const service_9 = require("./bff/modules/pandora/coupon/service");
|
|
27
|
-
const service_10 = require("./bff/modules/pandora/example/service");
|
|
28
|
-
const service_11 = require("./bff/modules/pandora/product/service");
|
|
29
|
-
const service_12 = require("./bff/modules/pandora/productExp/service");
|
|
30
|
-
const service_13 = require("./bff/modules/pandora/productLive/service");
|
|
31
|
-
const service_14 = require("./bff/modules/pandora/role/service");
|
|
32
|
-
const service_15 = require("./bff/modules/pandora/room/service");
|
|
33
|
-
const service_16 = require("./bff/modules/pandora/storeClerk/service");
|
|
34
|
-
const service_17 = require("./bff/modules/pandora/storeManager/service");
|
|
35
|
-
const service_18 = require("./bff/modules/pandora/user/service");
|
|
36
|
-
const user_service_1 = require("./bff/modules/pandora/userManager/service/user.service");
|
|
37
|
-
const point_service_1 = require("./bff/modules/pandora/userManager/service/point.service");
|
|
38
|
-
const coupon_service_1 = require("./bff/modules/pandora/userManager/service/coupon.service");
|
|
39
|
-
const address_service_1 = require("./bff/modules/pandora/userManager/service/address.service");
|
|
40
|
-
const region_service_1 = require("./bff/modules/pandora/userManager/service/region.service");
|
|
17
|
+
exports.SystemError = exports.BizError = exports.SdkError = exports.MiniProgramSDK = exports.PandoraSDK = void 0;
|
|
41
18
|
const client_1 = require("./bff/request/client");
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
19
|
+
const service_1 = require("./bff/modules/pandora/example/service");
|
|
20
|
+
const service_2 = require("./bff/modules/miniprogram/demo/service");
|
|
21
|
+
const service_3 = require("./bff/modules/miniprogram/auth/service");
|
|
22
|
+
const service_4 = require("./bff/modules/pandora/auth/service");
|
|
23
|
+
const service_5 = require("./bff/modules/pandora/bd/service");
|
|
24
|
+
const service_6 = require("./bff/modules/pandora/bdm/service");
|
|
25
|
+
const service_7 = require("./bff/modules/pandora/common/service");
|
|
26
|
+
const service_8 = require("./bff/modules/pandora/role/service");
|
|
27
|
+
const service_9 = require("./bff/modules/pandora/storeClerk/service");
|
|
28
|
+
const service_10 = require("./bff/modules/pandora/storeManager/service");
|
|
29
|
+
const service_11 = require("./bff/modules/pandora/user/service");
|
|
30
|
+
const service_12 = require("./bff/modules/pandora/product/service");
|
|
31
|
+
const service_13 = require("./bff/modules/pandora/productExp/service");
|
|
32
|
+
const service_14 = require("./bff/modules/pandora/productLive/service");
|
|
33
|
+
const service_15 = require("./bff/modules/pandora/coupon/service");
|
|
34
|
+
const service_16 = require("./bff/modules/pandora/room/service");
|
|
35
|
+
const service_17 = require("./bff/modules/pandora/franchisee/service");
|
|
36
|
+
const service_18 = require("./bff/modules/miniprogram/franchisee/service");
|
|
51
37
|
/**
|
|
52
38
|
* Pandora 平台 SDK(管理后台)
|
|
53
39
|
* 包含所有 Pandora 平台相关的服务
|
|
@@ -61,35 +47,21 @@ class PandoraSDK {
|
|
|
61
47
|
// 使用提供的选项初始化 HttpClient
|
|
62
48
|
this.http = new client_1.HttpClient(options);
|
|
63
49
|
// 使用 HttpClient 实例化所有 Pandora 服务模块
|
|
64
|
-
this.example = new
|
|
65
|
-
this.auth = new
|
|
66
|
-
this.bd = new
|
|
67
|
-
this.bdm = new
|
|
68
|
-
this.common = new
|
|
69
|
-
this.role = new
|
|
70
|
-
this.storeClerk = new
|
|
71
|
-
this.storeManager = new
|
|
72
|
-
this.user = new
|
|
73
|
-
this.product = new
|
|
74
|
-
this.productExp = new
|
|
75
|
-
this.productLive = new
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
78
|
-
this.
|
|
79
|
-
this.coupon = new service_9.PandoraCouponService(this.http);
|
|
80
|
-
this.userManagement = new user_service_1.PandoraUserManagementService(this.http);
|
|
81
|
-
this.pointManagement = new point_service_1.PandoraPointManagementService(this.http);
|
|
82
|
-
this.couponManagement = new coupon_service_1.PandoraCouponManagementService(this.http);
|
|
83
|
-
this.addressManagement = new address_service_1.PandoraAddressManagementService(this.http);
|
|
84
|
-
this.regionManagement = new region_service_1.PandoraRegionManagementService(this.http);
|
|
85
|
-
this.pointMall = new service_19.PandoraPointsMallService(this.http);
|
|
86
|
-
this.orderQuery = new service_20.PandoraOrderQueryService(this.http);
|
|
87
|
-
this.orderCore = new service_21.PandoraOrderCoreService(this.http);
|
|
88
|
-
this.task = new service_22.PandoraTaskService(this.http);
|
|
89
|
-
this.taskWatch = new service_23.PandoraTaskWatchService(this.http);
|
|
90
|
-
this.pointRule = new service_24.PandoraPointRuleService(this.http);
|
|
91
|
-
this.award = new service_25.PandoraAwardService(this.http);
|
|
92
|
-
this.franchisee = new service_26.PandoraFranchiseeService(this.http);
|
|
50
|
+
this.example = new service_1.PandoraExampleService(this.http);
|
|
51
|
+
this.auth = new service_4.PandoraAuthService(this.http);
|
|
52
|
+
this.bd = new service_5.PandoraBDService(this.http);
|
|
53
|
+
this.bdm = new service_6.PandoraBDMService(this.http);
|
|
54
|
+
this.common = new service_7.PandoraCommonService(this.http);
|
|
55
|
+
this.role = new service_8.PandoraRoleService(this.http);
|
|
56
|
+
this.storeClerk = new service_9.PandoraStoreClerkService(this.http);
|
|
57
|
+
this.storeManager = new service_10.PandoraStoreManagerService(this.http);
|
|
58
|
+
this.user = new service_11.PandoraUserService(this.http);
|
|
59
|
+
this.product = new service_12.PandoraProductService(this.http);
|
|
60
|
+
this.productExp = new service_13.PandoraProductExpService(this.http);
|
|
61
|
+
this.productLive = new service_14.PandoraProductLiveService(this.http);
|
|
62
|
+
this.room = new service_16.PandoraRoomService(this.http);
|
|
63
|
+
this.coupon = new service_15.PandoraCouponService(this.http);
|
|
64
|
+
this.franchisee = new service_17.PandoraFranchiseeService(this.http);
|
|
93
65
|
}
|
|
94
66
|
}
|
|
95
67
|
exports.PandoraSDK = PandoraSDK;
|
|
@@ -106,18 +78,17 @@ class MiniProgramSDK {
|
|
|
106
78
|
// 使用提供的选项初始化 HttpClient
|
|
107
79
|
this.http = new client_1.HttpClient(options);
|
|
108
80
|
// 使用 HttpClient 实例化所有小程序服务模块
|
|
109
|
-
this.demo = new
|
|
110
|
-
this.auth = new
|
|
111
|
-
this.franchisee = new
|
|
81
|
+
this.demo = new service_2.MiniProgramDemoService(this.http);
|
|
82
|
+
this.auth = new service_3.MiniprogramAuthServiceClass(this.http);
|
|
83
|
+
this.franchisee = new service_18.MiniprogramFranchiseeService(this.http);
|
|
112
84
|
}
|
|
113
85
|
}
|
|
114
86
|
exports.MiniProgramSDK = MiniProgramSDK;
|
|
115
87
|
// ==================== 导出 ====================
|
|
116
88
|
// 错误类
|
|
117
89
|
var errors_1 = require("./errors");
|
|
118
|
-
Object.defineProperty(exports, "BizError", { enumerable: true, get: function () { return errors_1.BizError; } });
|
|
119
90
|
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_1.SdkError; } });
|
|
91
|
+
Object.defineProperty(exports, "BizError", { enumerable: true, get: function () { return errors_1.BizError; } });
|
|
120
92
|
Object.defineProperty(exports, "SystemError", { enumerable: true, get: function () { return errors_1.SystemError; } });
|
|
121
93
|
// 枚举和常量
|
|
122
94
|
__exportStar(require("./enums"), exports);
|
|
123
|
-
__exportStar(require("./bff/modules/pandora/userManager/types"), exports);
|
package/cjs/utils/env.js
CHANGED
|
@@ -21,8 +21,8 @@ function getContainerHost(environment) {
|
|
|
21
21
|
// 生产环境和测试环境使用不同的主机地址
|
|
22
22
|
// TODO 生产url
|
|
23
23
|
return environment === 'production'
|
|
24
|
-
? '
|
|
25
|
-
: 'https://
|
|
24
|
+
? '' // 生产环境
|
|
25
|
+
: 'https://ecommerce-dev.wejourney.top/b-bff'; // 测试环境
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* 根据环境获取微信云环境标识符
|
package/cjs/utils/http.js
CHANGED
|
@@ -31,7 +31,7 @@ async function callApi(url, request) {
|
|
|
31
31
|
console.error(`ecommerce-backend-bff-service 异常: ${axiosError.message},requestId: ${requestId}`);
|
|
32
32
|
console.info('响应信息', data.message);
|
|
33
33
|
console.error('异常堆栈', JSON.stringify(error.stack));
|
|
34
|
-
throw
|
|
34
|
+
throw error;
|
|
35
35
|
}
|
|
36
36
|
console.error(`ecommerce-backend-bff-service 未知异常: ${axiosError.message}`, error.stack);
|
|
37
37
|
throw error;
|
|
@@ -226,8 +226,6 @@ export declare namespace CouponService {
|
|
|
226
226
|
pageIndex?: number;
|
|
227
227
|
/** 每页数量 */
|
|
228
228
|
pageSize?: number;
|
|
229
|
-
/** 券ID */
|
|
230
|
-
id?: string;
|
|
231
229
|
/** 券名称(模糊查询) */
|
|
232
230
|
name?: string;
|
|
233
231
|
/** 券类型 */
|
|
@@ -296,10 +294,6 @@ export declare namespace CouponService {
|
|
|
296
294
|
createdAt: number;
|
|
297
295
|
/** 更新时间 */
|
|
298
296
|
updatedAt: number;
|
|
299
|
-
/** 创建人ID */
|
|
300
|
-
creatorId: string;
|
|
301
|
-
/** 创建人名称 */
|
|
302
|
-
creatorName: string;
|
|
303
297
|
}
|
|
304
298
|
/** 券模版列表响应 */
|
|
305
299
|
interface getCouponTemplateList {
|