@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
|
}
|
|
@@ -73,12 +73,4 @@ export class PandoraRoomService extends BaseService {
|
|
|
73
73
|
bindStore(request) {
|
|
74
74
|
return this.request(this.bindStore, request);
|
|
75
75
|
}
|
|
76
|
-
/**
|
|
77
|
-
* 根据门店绑定关系查询直播间列表
|
|
78
|
-
* @param request - 请求参数
|
|
79
|
-
* @returns Promise,解析为标准响应格式
|
|
80
|
-
*/
|
|
81
|
-
listByStoreBind(request) {
|
|
82
|
-
return this.request(this.listByStoreBind, request);
|
|
83
|
-
}
|
|
84
76
|
}
|
|
@@ -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
|
}
|
|
@@ -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/esm/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/esm/enums.mjs
CHANGED
|
@@ -4,17 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// 商品服务枚举
|
|
6
6
|
export { ENUM as PRODUCT_SERVICE_ENUM } from '@be-link/ecommerce-product-service-node-sdk/enum';
|
|
7
|
-
export { ENUM as STORE_SERVICE_ENUM } from '@be-link/ecommerce-store-service-node-sdk/enums';
|
|
8
|
-
export { ENUM as PROMOTION_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
|
|
9
7
|
// 直播间枚举
|
|
10
8
|
export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
|
|
11
9
|
// 优惠券服务枚举
|
|
12
10
|
export { ENUM as PROMOTION_SERVICE_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
|
|
13
|
-
// 用户服务枚举
|
|
14
|
-
export { ENUM as USER_SERVICE_ENUM } from '@be-link/ecommerce-user-service-node-sdk/enum';
|
|
15
|
-
// 交易服务枚举
|
|
16
|
-
export { ENUM as TRADE_SERVICE_ENUM } from '@be-link/ecommerce-trade-service-node-sdk/enums';
|
|
17
|
-
// 任务中心服务枚举
|
|
18
|
-
export { ENUM as TASK_CENTER_ENUM } from '@be-link/ecommerce-task-center-service-node-sdk/enum';
|
|
19
|
-
// 后台用户枚举
|
|
20
|
-
export { ENUM as BACKEND_SERVICE_ENUM } from '@be-link/ecommerce-backend-user-service-node-sdk/enum';
|
package/esm/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/esm/index.mjs
CHANGED
|
@@ -1,34 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HttpClient } from './bff/request/client.mjs';
|
|
2
|
+
import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
|
|
3
3
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service.mjs';
|
|
4
4
|
import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service.mjs';
|
|
5
5
|
import { PandoraAuthService } from './bff/modules/pandora/auth/service.mjs';
|
|
6
6
|
import { PandoraBDService } from './bff/modules/pandora/bd/service.mjs';
|
|
7
7
|
import { PandoraBDMService } from './bff/modules/pandora/bdm/service.mjs';
|
|
8
8
|
import { PandoraCommonService } from './bff/modules/pandora/common/service.mjs';
|
|
9
|
-
import { PandoraCouponService } from './bff/modules/pandora/coupon/service.mjs';
|
|
10
|
-
import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
|
|
11
|
-
import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
|
|
12
|
-
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
|
|
13
|
-
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service.mjs';
|
|
14
9
|
import { PandoraRoleService } from './bff/modules/pandora/role/service.mjs';
|
|
15
|
-
import { PandoraRoomService } from './bff/modules/pandora/room/service.mjs';
|
|
16
10
|
import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service.mjs';
|
|
17
11
|
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
|
|
18
12
|
import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { HttpClient } from './bff/request/client.mjs';
|
|
25
|
-
import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service.mjs';
|
|
26
|
-
import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service.mjs';
|
|
27
|
-
import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service.mjs';
|
|
28
|
-
import { PandoraTaskService } from './bff/modules/pandora/task/service.mjs';
|
|
29
|
-
import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service.mjs';
|
|
30
|
-
import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service.mjs';
|
|
31
|
-
import { PandoraAwardService } from './bff/modules/pandora/award/service.mjs';
|
|
13
|
+
import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
|
|
14
|
+
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
|
|
15
|
+
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service.mjs';
|
|
16
|
+
import { PandoraCouponService } from './bff/modules/pandora/coupon/service.mjs';
|
|
17
|
+
import { PandoraRoomService } from './bff/modules/pandora/room/service.mjs';
|
|
32
18
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service.mjs';
|
|
33
19
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service.mjs';
|
|
34
20
|
/**
|
|
@@ -56,22 +42,8 @@ export class PandoraSDK {
|
|
|
56
42
|
this.product = new PandoraProductService(this.http);
|
|
57
43
|
this.productExp = new PandoraProductExpService(this.http);
|
|
58
44
|
this.productLive = new PandoraProductLiveService(this.http);
|
|
59
|
-
this.store = new PandoraStoreService(this.http);
|
|
60
|
-
this.storeUserRelation = new PandoraStoreUserRelationService(this.http);
|
|
61
45
|
this.room = new PandoraRoomService(this.http);
|
|
62
46
|
this.coupon = new PandoraCouponService(this.http);
|
|
63
|
-
this.userManagement = new PandoraUserManagementService(this.http);
|
|
64
|
-
this.pointManagement = new PandoraPointManagementService(this.http);
|
|
65
|
-
this.couponManagement = new PandoraCouponManagementService(this.http);
|
|
66
|
-
this.addressManagement = new PandoraAddressManagementService(this.http);
|
|
67
|
-
this.regionManagement = new PandoraRegionManagementService(this.http);
|
|
68
|
-
this.pointMall = new PandoraPointsMallService(this.http);
|
|
69
|
-
this.orderQuery = new PandoraOrderQueryService(this.http);
|
|
70
|
-
this.orderCore = new PandoraOrderCoreService(this.http);
|
|
71
|
-
this.task = new PandoraTaskService(this.http);
|
|
72
|
-
this.taskWatch = new PandoraTaskWatchService(this.http);
|
|
73
|
-
this.pointRule = new PandoraPointRuleService(this.http);
|
|
74
|
-
this.award = new PandoraAwardService(this.http);
|
|
75
47
|
this.franchisee = new PandoraFranchiseeService(this.http);
|
|
76
48
|
}
|
|
77
49
|
}
|
|
@@ -95,7 +67,6 @@ export class MiniProgramSDK {
|
|
|
95
67
|
}
|
|
96
68
|
// ==================== 导出 ====================
|
|
97
69
|
// 错误类
|
|
98
|
-
export {
|
|
70
|
+
export { SdkError, BizError, SystemError } from './errors/index.mjs';
|
|
99
71
|
// 枚举和常量
|
|
100
72
|
export * from './enums.mjs';
|
|
101
|
-
export * from './bff/modules/pandora/userManager/types/index.mjs';
|
package/esm/utils/env.mjs
CHANGED
|
@@ -15,8 +15,8 @@ export function getContainerHost(environment) {
|
|
|
15
15
|
// 生产环境和测试环境使用不同的主机地址
|
|
16
16
|
// TODO 生产url
|
|
17
17
|
return environment === 'production'
|
|
18
|
-
? '
|
|
19
|
-
: 'https://
|
|
18
|
+
? '' // 生产环境
|
|
19
|
+
: 'https://ecommerce-dev.wejourney.top/b-bff'; // 测试环境
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* 根据环境获取微信云环境标识符
|
package/esm/utils/http.mjs
CHANGED
|
@@ -25,7 +25,7 @@ export async function callApi(url, request) {
|
|
|
25
25
|
console.error(`ecommerce-backend-bff-service 异常: ${axiosError.message},requestId: ${requestId}`);
|
|
26
26
|
console.info('响应信息', data.message);
|
|
27
27
|
console.error('异常堆栈', JSON.stringify(error.stack));
|
|
28
|
-
throw
|
|
28
|
+
throw error;
|
|
29
29
|
}
|
|
30
30
|
console.error(`ecommerce-backend-bff-service 未知异常: ${axiosError.message}`, error.stack);
|
|
31
31
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@be-link/ecommerce-backend-bff-service-node-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.114",
|
|
4
4
|
"description": "EcommerceBackendBffService Node.js SDK",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./cjs/index.js",
|
|
@@ -24,21 +24,18 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@be-link/ecommerce-backend-user-service-node-sdk": "^0.0.
|
|
28
|
-
"@be-link/ecommerce-product-service-node-sdk": "^0.0.
|
|
27
|
+
"@be-link/ecommerce-backend-user-service-node-sdk": "^0.0.8",
|
|
28
|
+
"@be-link/ecommerce-product-service-node-sdk": "^0.0.13",
|
|
29
29
|
"@be-link/ecommerce-volcengine-open-api-sdk": "^1.0.11",
|
|
30
|
-
"@be-link/ecommerce-client-backend-service-node-sdk": "^0.0.
|
|
31
|
-
"@be-link/ecommerce-tag-service-node-sdk": "^0.0.
|
|
32
|
-
"@be-link/ecommerce-store-service-node-sdk": "^0.0.
|
|
33
|
-
"@be-link/ecommerce-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"@be-link/ecommerce-promotion-service-node-sdk": "^0.0.36",
|
|
37
|
-
"axios": "1.13.2"
|
|
30
|
+
"@be-link/ecommerce-client-backend-service-node-sdk": "^0.0.7",
|
|
31
|
+
"@be-link/ecommerce-tag-service-node-sdk": "^0.0.10",
|
|
32
|
+
"@be-link/ecommerce-store-service-node-sdk": "^0.0.12",
|
|
33
|
+
"@be-link/ecommerce-promotion-service-node-sdk": "^0.0.26",
|
|
34
|
+
"axios": "1.13.2",
|
|
35
|
+
"tsoa": "^6.4.0"
|
|
38
36
|
},
|
|
39
37
|
"devDependencies": {
|
|
40
38
|
"@types/node": "^20.0.0",
|
|
41
|
-
"tsoa": "^6.4.0",
|
|
42
39
|
"typescript": "^5.0.0"
|
|
43
40
|
}
|
|
44
41
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AwardService as Service } from './types';
|
|
2
|
-
import BaseService from '../../BaseService';
|
|
3
|
-
import type { StandardResponse } from '../../../../types';
|
|
4
|
-
/**
|
|
5
|
-
* PandoraAwardService - Pandora Award 服务模块
|
|
6
|
-
* 提供 Pandora Award 相关的 API 方法
|
|
7
|
-
* 平台: pandora
|
|
8
|
-
*/
|
|
9
|
-
export declare class PandoraAwardService extends BaseService implements Service.AwardController {
|
|
10
|
-
protected prefixUrl: string;
|
|
11
|
-
/**
|
|
12
|
-
* 后台单个发券
|
|
13
|
-
* @param request - 请求参数
|
|
14
|
-
* @returns Promise,解析为标准响应格式
|
|
15
|
-
*/
|
|
16
|
-
adminSingleIssueCoupon(request: Service.Request.adminSingleIssueCoupon): Promise<StandardResponse<Service.Response.adminSingleIssueCoupon>>;
|
|
17
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PandoraAwardService = void 0;
|
|
7
|
-
const BaseService_1 = __importDefault(require("../../BaseService"));
|
|
8
|
-
/**
|
|
9
|
-
* PandoraAwardService - Pandora Award 服务模块
|
|
10
|
-
* 提供 Pandora Award 相关的 API 方法
|
|
11
|
-
* 平台: pandora
|
|
12
|
-
*/
|
|
13
|
-
class PandoraAwardService extends BaseService_1.default {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.prefixUrl = '/pandora/award';
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 后台单个发券
|
|
20
|
-
* @param request - 请求参数
|
|
21
|
-
* @returns Promise,解析为标准响应格式
|
|
22
|
-
*/
|
|
23
|
-
adminSingleIssueCoupon(request) {
|
|
24
|
-
return this.request(this.adminSingleIssueCoupon, request);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.PandoraAwardService = PandoraAwardService;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { StandardResponse } from '../../../../types';
|
|
2
|
-
import type { Service as AwardServiceTypes } from '@be-link/ecommerce-promotion-service-node-sdk/modules/award/types';
|
|
3
|
-
export declare namespace AwardService {
|
|
4
|
-
namespace Request {
|
|
5
|
-
type adminSingleIssueCoupon = AwardServiceTypes.Request.adminSingleIssueCoupon;
|
|
6
|
-
}
|
|
7
|
-
namespace Response {
|
|
8
|
-
type adminSingleIssueCoupon = AwardServiceTypes.Response.distributePrize;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Promotion Controller 接口定义
|
|
12
|
-
*/
|
|
13
|
-
interface AwardController {
|
|
14
|
-
/** 后台单个发券 */
|
|
15
|
-
adminSingleIssueCoupon(request: AwardService.Request.adminSingleIssueCoupon, req: any): Promise<StandardResponse<AwardService.Response.adminSingleIssueCoupon>>;
|
|
16
|
-
}
|
|
17
|
-
}
|