@be-link/ecommerce-backend-bff-service-node-sdk 0.0.114 → 0.0.116
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/award/service.d.ts +17 -0
- package/cjs/bff/modules/pandora/award/service.js +27 -0
- package/cjs/bff/modules/pandora/award/types.d.ts +17 -0
- package/cjs/bff/modules/pandora/award/types.js +2 -0
- package/cjs/bff/modules/pandora/coupon/types.d.ts +6 -0
- package/cjs/bff/modules/pandora/orderCore/service.d.ts +29 -0
- package/cjs/bff/modules/pandora/orderCore/service.js +43 -0
- package/cjs/bff/modules/pandora/orderCore/types.d.ts +18 -0
- package/cjs/bff/modules/pandora/orderCore/types.js +2 -0
- package/cjs/bff/modules/pandora/orderQuery/service.d.ts +35 -0
- package/cjs/bff/modules/pandora/orderQuery/service.js +51 -0
- package/cjs/bff/modules/pandora/orderQuery/types.d.ts +26 -0
- package/cjs/bff/modules/pandora/orderQuery/types.js +2 -0
- package/cjs/bff/modules/pandora/pointRule/service.d.ts +53 -0
- package/cjs/bff/modules/pandora/pointRule/service.js +75 -0
- package/cjs/bff/modules/pandora/pointRule/types.d.ts +38 -0
- package/cjs/bff/modules/pandora/pointRule/types.js +2 -0
- package/cjs/bff/modules/pandora/pointsMall/service.d.ts +47 -0
- package/cjs/bff/modules/pandora/pointsMall/service.js +67 -0
- package/cjs/bff/modules/pandora/pointsMall/types.d.ts +177 -0
- package/cjs/bff/modules/pandora/pointsMall/types.js +2 -0
- package/cjs/bff/modules/pandora/product/service.d.ts +20 -2
- package/cjs/bff/modules/pandora/product/service.js +24 -0
- package/cjs/bff/modules/pandora/product/types.d.ts +253 -15
- package/cjs/bff/modules/pandora/productExp/service.d.ts +14 -2
- package/cjs/bff/modules/pandora/productExp/service.js +18 -2
- package/cjs/bff/modules/pandora/productExp/types.d.ts +54 -1
- package/cjs/bff/modules/pandora/productLive/types.d.ts +10 -0
- package/cjs/bff/modules/pandora/room/service.d.ts +6 -0
- package/cjs/bff/modules/pandora/room/service.js +8 -0
- package/cjs/bff/modules/pandora/room/types.d.ts +21 -2
- package/cjs/bff/modules/pandora/store/service.d.ts +95 -0
- package/cjs/bff/modules/pandora/store/service.js +131 -0
- package/cjs/bff/modules/pandora/store/types.d.ts +879 -0
- package/cjs/bff/modules/pandora/store/types.js +2 -0
- package/cjs/bff/modules/pandora/task/service.d.ts +65 -0
- package/cjs/bff/modules/pandora/task/service.js +91 -0
- package/cjs/bff/modules/pandora/task/types.d.ts +36 -0
- package/cjs/bff/modules/pandora/task/types.js +2 -0
- package/cjs/bff/modules/pandora/taskWatch/service.d.ts +23 -0
- package/cjs/bff/modules/pandora/taskWatch/service.js +35 -0
- package/cjs/bff/modules/pandora/taskWatch/types.d.ts +15 -0
- package/cjs/bff/modules/pandora/taskWatch/types.js +2 -0
- package/cjs/bff/modules/pandora/user/service.d.ts +1 -0
- package/cjs/bff/modules/pandora/user/service.js +3 -0
- package/cjs/bff/modules/pandora/user/types.d.ts +16 -0
- package/cjs/bff/modules/pandora/userManager/service/address.service.d.ts +12 -0
- package/cjs/bff/modules/pandora/userManager/service/address.service.js +32 -0
- package/cjs/bff/modules/pandora/userManager/service/coupon.service.d.ts +11 -0
- package/cjs/bff/modules/pandora/userManager/service/coupon.service.js +29 -0
- package/cjs/bff/modules/pandora/userManager/service/index.d.ts +5 -0
- package/cjs/bff/modules/pandora/userManager/service/index.js +21 -0
- package/cjs/bff/modules/pandora/userManager/service/point.service.d.ts +13 -0
- package/cjs/bff/modules/pandora/userManager/service/point.service.js +35 -0
- package/cjs/bff/modules/pandora/userManager/service/region.service.d.ts +14 -0
- package/cjs/bff/modules/pandora/userManager/service/region.service.js +38 -0
- package/cjs/bff/modules/pandora/userManager/service/user.service.d.ts +12 -0
- package/cjs/bff/modules/pandora/userManager/service/user.service.js +32 -0
- package/cjs/bff/modules/pandora/userManager/types/address.types.d.ts +94 -0
- package/cjs/bff/modules/pandora/userManager/types/address.types.js +2 -0
- package/cjs/bff/modules/pandora/userManager/types/coupon.types.d.ts +99 -0
- package/cjs/bff/modules/pandora/userManager/types/coupon.types.js +2 -0
- package/cjs/bff/modules/pandora/userManager/types/index.d.ts +5 -0
- package/cjs/bff/modules/pandora/userManager/types/index.js +21 -0
- package/cjs/bff/modules/pandora/userManager/types/point.types.d.ts +113 -0
- package/cjs/bff/modules/pandora/userManager/types/point.types.js +2 -0
- package/cjs/bff/modules/pandora/userManager/types/region.types.d.ts +77 -0
- package/cjs/bff/modules/pandora/userManager/types/region.types.js +2 -0
- package/cjs/bff/modules/pandora/userManager/types/user.types.d.ts +124 -0
- package/cjs/bff/modules/pandora/userManager/types/user.types.js +2 -0
- package/cjs/enums.d.ts +6 -0
- package/cjs/enums.js +21 -5
- package/cjs/index.d.ts +46 -8
- package/cjs/index.js +54 -27
- package/cjs/utils/env.js +2 -2
- package/cjs/utils/http.js +1 -1
- package/esm/bff/modules/pandora/award/service.d.ts +17 -0
- package/esm/bff/modules/pandora/award/service.mjs +20 -0
- package/esm/bff/modules/pandora/award/types.d.ts +17 -0
- package/esm/bff/modules/pandora/award/types.mjs +1 -0
- package/esm/bff/modules/pandora/coupon/types.d.ts +6 -0
- package/esm/bff/modules/pandora/orderCore/service.d.ts +29 -0
- package/esm/bff/modules/pandora/orderCore/service.mjs +36 -0
- package/esm/bff/modules/pandora/orderCore/types.d.ts +18 -0
- package/esm/bff/modules/pandora/orderCore/types.mjs +1 -0
- package/esm/bff/modules/pandora/orderQuery/service.d.ts +35 -0
- package/esm/bff/modules/pandora/orderQuery/service.mjs +44 -0
- package/esm/bff/modules/pandora/orderQuery/types.d.ts +26 -0
- package/esm/bff/modules/pandora/orderQuery/types.mjs +1 -0
- package/esm/bff/modules/pandora/pointRule/service.d.ts +53 -0
- package/esm/bff/modules/pandora/pointRule/service.mjs +68 -0
- package/esm/bff/modules/pandora/pointRule/types.d.ts +38 -0
- package/esm/bff/modules/pandora/pointRule/types.mjs +1 -0
- package/esm/bff/modules/pandora/pointsMall/service.d.ts +47 -0
- package/esm/bff/modules/pandora/pointsMall/service.mjs +60 -0
- package/esm/bff/modules/pandora/pointsMall/types.d.ts +177 -0
- package/esm/bff/modules/pandora/pointsMall/types.mjs +1 -0
- package/esm/bff/modules/pandora/product/service.d.ts +20 -2
- package/esm/bff/modules/pandora/product/service.mjs +24 -0
- package/esm/bff/modules/pandora/product/types.d.ts +253 -15
- package/esm/bff/modules/pandora/productExp/service.d.ts +14 -2
- package/esm/bff/modules/pandora/productExp/service.mjs +18 -2
- package/esm/bff/modules/pandora/productExp/types.d.ts +54 -1
- package/esm/bff/modules/pandora/productLive/types.d.ts +10 -0
- package/esm/bff/modules/pandora/room/service.d.ts +6 -0
- package/esm/bff/modules/pandora/room/service.mjs +8 -0
- package/esm/bff/modules/pandora/room/types.d.ts +21 -2
- package/esm/bff/modules/pandora/store/service.d.ts +95 -0
- package/esm/bff/modules/pandora/store/service.mjs +124 -0
- package/esm/bff/modules/pandora/store/types.d.ts +879 -0
- package/esm/bff/modules/pandora/store/types.mjs +1 -0
- package/esm/bff/modules/pandora/task/service.d.ts +65 -0
- package/esm/bff/modules/pandora/task/service.mjs +84 -0
- package/esm/bff/modules/pandora/task/types.d.ts +36 -0
- package/esm/bff/modules/pandora/task/types.mjs +1 -0
- package/esm/bff/modules/pandora/taskWatch/service.d.ts +23 -0
- package/esm/bff/modules/pandora/taskWatch/service.mjs +28 -0
- package/esm/bff/modules/pandora/taskWatch/types.d.ts +15 -0
- package/esm/bff/modules/pandora/taskWatch/types.mjs +1 -0
- package/esm/bff/modules/pandora/user/service.d.ts +1 -0
- package/esm/bff/modules/pandora/user/service.mjs +3 -0
- package/esm/bff/modules/pandora/user/types.d.ts +16 -0
- package/esm/bff/modules/pandora/userManager/service/address.service.d.ts +12 -0
- package/esm/bff/modules/pandora/userManager/service/address.service.mjs +25 -0
- package/esm/bff/modules/pandora/userManager/service/coupon.service.d.ts +11 -0
- package/esm/bff/modules/pandora/userManager/service/coupon.service.mjs +22 -0
- package/esm/bff/modules/pandora/userManager/service/index.d.ts +5 -0
- package/esm/bff/modules/pandora/userManager/service/index.mjs +5 -0
- package/esm/bff/modules/pandora/userManager/service/point.service.d.ts +13 -0
- package/esm/bff/modules/pandora/userManager/service/point.service.mjs +28 -0
- package/esm/bff/modules/pandora/userManager/service/region.service.d.ts +14 -0
- package/esm/bff/modules/pandora/userManager/service/region.service.mjs +31 -0
- package/esm/bff/modules/pandora/userManager/service/user.service.d.ts +12 -0
- package/esm/bff/modules/pandora/userManager/service/user.service.mjs +25 -0
- package/esm/bff/modules/pandora/userManager/types/address.types.d.ts +94 -0
- package/esm/bff/modules/pandora/userManager/types/address.types.mjs +1 -0
- package/esm/bff/modules/pandora/userManager/types/coupon.types.d.ts +99 -0
- package/esm/bff/modules/pandora/userManager/types/coupon.types.mjs +1 -0
- package/esm/bff/modules/pandora/userManager/types/index.d.ts +5 -0
- package/esm/bff/modules/pandora/userManager/types/index.mjs +5 -0
- package/esm/bff/modules/pandora/userManager/types/point.types.d.ts +113 -0
- package/esm/bff/modules/pandora/userManager/types/point.types.mjs +1 -0
- package/esm/bff/modules/pandora/userManager/types/region.types.d.ts +77 -0
- package/esm/bff/modules/pandora/userManager/types/region.types.mjs +1 -0
- package/esm/bff/modules/pandora/userManager/types/user.types.d.ts +124 -0
- package/esm/bff/modules/pandora/userManager/types/user.types.mjs +1 -0
- package/esm/enums.d.ts +6 -0
- package/esm/enums.mjs +10 -0
- package/esm/index.d.ts +46 -8
- package/esm/index.mjs +35 -8
- package/esm/utils/env.mjs +2 -2
- package/esm/utils/http.mjs +1 -1
- package/package.json +12 -9
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../../types';
|
|
2
|
+
export declare namespace PandoraCouponManagementTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface batchGrantCoupons {
|
|
5
|
+
list: Array<{
|
|
6
|
+
userId: string;
|
|
7
|
+
couponId: string;
|
|
8
|
+
couponName: string;
|
|
9
|
+
couponCode?: string;
|
|
10
|
+
couponType: string;
|
|
11
|
+
getChannel: string;
|
|
12
|
+
getBizId?: string;
|
|
13
|
+
startTime: number;
|
|
14
|
+
endTime: number;
|
|
15
|
+
couponInfo: object;
|
|
16
|
+
remark?: string;
|
|
17
|
+
}>;
|
|
18
|
+
operatorId: string;
|
|
19
|
+
}
|
|
20
|
+
interface grantCoupon {
|
|
21
|
+
userId: string;
|
|
22
|
+
couponId: string;
|
|
23
|
+
couponName: string;
|
|
24
|
+
couponCode: string;
|
|
25
|
+
couponType: string;
|
|
26
|
+
getChannel: string;
|
|
27
|
+
getBizId?: string;
|
|
28
|
+
startTime: number;
|
|
29
|
+
endTime: number;
|
|
30
|
+
couponInfo: object;
|
|
31
|
+
remark?: string;
|
|
32
|
+
operatorId: string;
|
|
33
|
+
}
|
|
34
|
+
interface batchInvalidateCoupons {
|
|
35
|
+
couponIds: Array<{
|
|
36
|
+
id: string;
|
|
37
|
+
userId: string;
|
|
38
|
+
}>;
|
|
39
|
+
operatorId: string;
|
|
40
|
+
reason?: string;
|
|
41
|
+
}
|
|
42
|
+
interface getUserCouponList {
|
|
43
|
+
userId: string;
|
|
44
|
+
status?: string;
|
|
45
|
+
couponType?: string;
|
|
46
|
+
limit?: number;
|
|
47
|
+
offset?: number;
|
|
48
|
+
}
|
|
49
|
+
interface getCouponDetail {
|
|
50
|
+
id: string;
|
|
51
|
+
userId: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
namespace Response {
|
|
55
|
+
interface UserCouponDTO {
|
|
56
|
+
id?: string;
|
|
57
|
+
userId?: string;
|
|
58
|
+
couponId?: string;
|
|
59
|
+
couponName?: string;
|
|
60
|
+
couponCode?: string;
|
|
61
|
+
couponType?: string;
|
|
62
|
+
status?: string;
|
|
63
|
+
getChannel?: string;
|
|
64
|
+
startTime?: number;
|
|
65
|
+
endTime?: number;
|
|
66
|
+
couponInfo?: object;
|
|
67
|
+
createdAt?: number;
|
|
68
|
+
updatedAt?: number;
|
|
69
|
+
}
|
|
70
|
+
interface PageResponse<T> {
|
|
71
|
+
list: T[];
|
|
72
|
+
total: number;
|
|
73
|
+
limit: number;
|
|
74
|
+
offset: number;
|
|
75
|
+
}
|
|
76
|
+
type batchGrantCoupons = UserCouponDTO[];
|
|
77
|
+
type grantCoupon = UserCouponDTO;
|
|
78
|
+
interface batchInvalidateCoupons {
|
|
79
|
+
total: number;
|
|
80
|
+
success: number;
|
|
81
|
+
failed: number;
|
|
82
|
+
results: Array<{
|
|
83
|
+
couponId: string;
|
|
84
|
+
success: boolean;
|
|
85
|
+
data?: UserCouponDTO;
|
|
86
|
+
error?: string;
|
|
87
|
+
}>;
|
|
88
|
+
}
|
|
89
|
+
type getUserCouponList = PageResponse<UserCouponDTO>;
|
|
90
|
+
type getCouponDetail = UserCouponDTO;
|
|
91
|
+
}
|
|
92
|
+
interface Controller {
|
|
93
|
+
batchGrantCoupons(request: Request.batchGrantCoupons): Promise<StandardResponse<Response.batchGrantCoupons>>;
|
|
94
|
+
grantCoupon(request: Request.grantCoupon): Promise<StandardResponse<Response.grantCoupon>>;
|
|
95
|
+
batchInvalidateCoupons(request: Request.batchInvalidateCoupons): Promise<StandardResponse<Response.batchInvalidateCoupons>>;
|
|
96
|
+
getUserCouponList(request: Request.getUserCouponList): Promise<StandardResponse<Response.getUserCouponList>>;
|
|
97
|
+
getCouponDetail(request: Request.getCouponDetail): Promise<StandardResponse<Response.getCouponDetail>>;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../../types';
|
|
2
|
+
export declare namespace PandoraPointManagementTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface adjustPoint {
|
|
5
|
+
userId: string;
|
|
6
|
+
point: number;
|
|
7
|
+
flowType: string;
|
|
8
|
+
remark: string;
|
|
9
|
+
expireTime?: number;
|
|
10
|
+
operatorId: string;
|
|
11
|
+
operatorName: string;
|
|
12
|
+
}
|
|
13
|
+
interface batchAdjustPoints {
|
|
14
|
+
adjustments: Array<{
|
|
15
|
+
userId: string;
|
|
16
|
+
point: number;
|
|
17
|
+
type: 'add' | 'deduct';
|
|
18
|
+
remark: string;
|
|
19
|
+
}>;
|
|
20
|
+
operatorId: string;
|
|
21
|
+
operatorName: string;
|
|
22
|
+
}
|
|
23
|
+
interface getUserPointInfo {
|
|
24
|
+
userId: string;
|
|
25
|
+
}
|
|
26
|
+
interface getPointFlowList {
|
|
27
|
+
userId: string;
|
|
28
|
+
flowType?: string;
|
|
29
|
+
limit?: number;
|
|
30
|
+
offset?: number;
|
|
31
|
+
}
|
|
32
|
+
interface getPointDetailList {
|
|
33
|
+
userId: string;
|
|
34
|
+
limit?: number;
|
|
35
|
+
offset?: number;
|
|
36
|
+
}
|
|
37
|
+
interface freezeUserPoint {
|
|
38
|
+
userId: string;
|
|
39
|
+
point: number;
|
|
40
|
+
remark: string;
|
|
41
|
+
operatorId: string;
|
|
42
|
+
}
|
|
43
|
+
interface unfreezeUserPoint {
|
|
44
|
+
userId: string;
|
|
45
|
+
point: number;
|
|
46
|
+
remark: string;
|
|
47
|
+
operatorId: string;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
namespace Response {
|
|
51
|
+
interface UserPointDTO {
|
|
52
|
+
id?: string;
|
|
53
|
+
userId?: string;
|
|
54
|
+
totalPoint?: number;
|
|
55
|
+
availablePoint?: number;
|
|
56
|
+
frozenPoint?: number;
|
|
57
|
+
usedPoint?: number;
|
|
58
|
+
expiredPoint?: number;
|
|
59
|
+
createdAt?: number;
|
|
60
|
+
updatedAt?: number;
|
|
61
|
+
}
|
|
62
|
+
interface UserPointFlowDTO {
|
|
63
|
+
id?: string;
|
|
64
|
+
userId?: string;
|
|
65
|
+
flowType?: string;
|
|
66
|
+
point?: number;
|
|
67
|
+
beforePoint?: number;
|
|
68
|
+
afterPoint?: number;
|
|
69
|
+
remark?: string;
|
|
70
|
+
createdAt?: number;
|
|
71
|
+
}
|
|
72
|
+
interface UserPointDetailDTO {
|
|
73
|
+
id?: string;
|
|
74
|
+
userId?: string;
|
|
75
|
+
point?: number;
|
|
76
|
+
expireTime?: number;
|
|
77
|
+
status?: string;
|
|
78
|
+
createdAt?: number;
|
|
79
|
+
}
|
|
80
|
+
interface PageResponse<T> {
|
|
81
|
+
list: T[];
|
|
82
|
+
total: number;
|
|
83
|
+
limit: number;
|
|
84
|
+
offset: number;
|
|
85
|
+
}
|
|
86
|
+
type adjustPoint = UserPointDTO;
|
|
87
|
+
interface batchAdjustPoints {
|
|
88
|
+
total: number;
|
|
89
|
+
success: number;
|
|
90
|
+
failed: number;
|
|
91
|
+
results: Array<{
|
|
92
|
+
userId: string;
|
|
93
|
+
success: boolean;
|
|
94
|
+
data?: UserPointDTO;
|
|
95
|
+
error?: string;
|
|
96
|
+
}>;
|
|
97
|
+
}
|
|
98
|
+
type getUserPointInfo = UserPointDTO;
|
|
99
|
+
type getPointFlowList = PageResponse<UserPointFlowDTO>;
|
|
100
|
+
type getPointDetailList = PageResponse<UserPointDetailDTO>;
|
|
101
|
+
type freezeUserPoint = UserPointDTO;
|
|
102
|
+
type unfreezeUserPoint = UserPointDTO;
|
|
103
|
+
}
|
|
104
|
+
interface Controller {
|
|
105
|
+
adjustPoint(request: Request.adjustPoint): Promise<StandardResponse<Response.adjustPoint>>;
|
|
106
|
+
batchAdjustPoints(request: Request.batchAdjustPoints): Promise<StandardResponse<Response.batchAdjustPoints>>;
|
|
107
|
+
getUserPointInfo(request: Request.getUserPointInfo): Promise<StandardResponse<Response.getUserPointInfo>>;
|
|
108
|
+
getPointFlowList(request: Request.getPointFlowList): Promise<StandardResponse<Response.getPointFlowList>>;
|
|
109
|
+
getPointDetailList(request: Request.getPointDetailList): Promise<StandardResponse<Response.getPointDetailList>>;
|
|
110
|
+
freezeUserPoint(request: Request.freezeUserPoint): Promise<StandardResponse<Response.freezeUserPoint>>;
|
|
111
|
+
unfreezeUserPoint(request: Request.unfreezeUserPoint): Promise<StandardResponse<Response.unfreezeUserPoint>>;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../../types';
|
|
2
|
+
export declare namespace PandoraRegionManagementTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface batchImportRegions {
|
|
5
|
+
regions: Array<{
|
|
6
|
+
code: string;
|
|
7
|
+
parentCode: string;
|
|
8
|
+
name: string;
|
|
9
|
+
level: number;
|
|
10
|
+
}>;
|
|
11
|
+
operatorId: string;
|
|
12
|
+
}
|
|
13
|
+
interface getAllProvinces {
|
|
14
|
+
}
|
|
15
|
+
interface getCitiesByProvince {
|
|
16
|
+
provinceCode: string;
|
|
17
|
+
}
|
|
18
|
+
interface getDistrictsByCity {
|
|
19
|
+
cityCode: string;
|
|
20
|
+
}
|
|
21
|
+
interface searchRegions {
|
|
22
|
+
name: string;
|
|
23
|
+
limit?: number;
|
|
24
|
+
}
|
|
25
|
+
interface getRegionByCode {
|
|
26
|
+
code: string;
|
|
27
|
+
}
|
|
28
|
+
interface getFullAddress {
|
|
29
|
+
provinceCode?: string;
|
|
30
|
+
cityCode?: string;
|
|
31
|
+
districtCode?: string;
|
|
32
|
+
}
|
|
33
|
+
interface getRegionTree {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
namespace Response {
|
|
37
|
+
interface UserRegionDTO {
|
|
38
|
+
code?: string;
|
|
39
|
+
parentCode?: string;
|
|
40
|
+
name?: string;
|
|
41
|
+
level?: number;
|
|
42
|
+
createdAt?: number;
|
|
43
|
+
updatedAt?: number;
|
|
44
|
+
}
|
|
45
|
+
interface RegionTreeNode {
|
|
46
|
+
code: string;
|
|
47
|
+
parentCode: string;
|
|
48
|
+
name: string;
|
|
49
|
+
level: number;
|
|
50
|
+
children?: RegionTreeNode[];
|
|
51
|
+
}
|
|
52
|
+
interface batchImportRegions {
|
|
53
|
+
successCount: number;
|
|
54
|
+
}
|
|
55
|
+
type getAllProvinces = UserRegionDTO[];
|
|
56
|
+
type getCitiesByProvince = UserRegionDTO[];
|
|
57
|
+
type getDistrictsByCity = UserRegionDTO[];
|
|
58
|
+
type searchRegions = UserRegionDTO[];
|
|
59
|
+
type getRegionByCode = UserRegionDTO;
|
|
60
|
+
interface getFullAddress {
|
|
61
|
+
province?: UserRegionDTO;
|
|
62
|
+
city?: UserRegionDTO;
|
|
63
|
+
district?: UserRegionDTO;
|
|
64
|
+
}
|
|
65
|
+
type getRegionTree = RegionTreeNode[];
|
|
66
|
+
}
|
|
67
|
+
interface Controller {
|
|
68
|
+
batchImportRegions(request: Request.batchImportRegions): Promise<StandardResponse<Response.batchImportRegions>>;
|
|
69
|
+
getAllProvinces(request: Request.getAllProvinces): Promise<StandardResponse<Response.getAllProvinces>>;
|
|
70
|
+
getCitiesByProvince(request: Request.getCitiesByProvince): Promise<StandardResponse<Response.getCitiesByProvince>>;
|
|
71
|
+
getDistrictsByCity(request: Request.getDistrictsByCity): Promise<StandardResponse<Response.getDistrictsByCity>>;
|
|
72
|
+
searchRegions(request: Request.searchRegions): Promise<StandardResponse<Response.searchRegions>>;
|
|
73
|
+
getRegionByCode(request: Request.getRegionByCode): Promise<StandardResponse<Response.getRegionByCode>>;
|
|
74
|
+
getFullAddress(request: Request.getFullAddress): Promise<StandardResponse<Response.getFullAddress>>;
|
|
75
|
+
getRegionTree(request: Request.getRegionTree): Promise<StandardResponse<Response.getRegionTree>>;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../../types';
|
|
2
|
+
export declare namespace PandoraUserManagementTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
/**
|
|
5
|
+
* 获取用户列表
|
|
6
|
+
*/
|
|
7
|
+
interface getUserList {
|
|
8
|
+
registerChannel?: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
memberLevel?: string;
|
|
11
|
+
userId?: string;
|
|
12
|
+
mobile?: string;
|
|
13
|
+
unionId?: string;
|
|
14
|
+
nickname?: string;
|
|
15
|
+
storeId?: string;
|
|
16
|
+
limit?: number;
|
|
17
|
+
offset?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 获取用户详情
|
|
21
|
+
*/
|
|
22
|
+
interface getUserDetail {
|
|
23
|
+
userId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 更新用户状态
|
|
27
|
+
*/
|
|
28
|
+
interface updateUserStatus {
|
|
29
|
+
userId: string;
|
|
30
|
+
status: string;
|
|
31
|
+
operatorId: string;
|
|
32
|
+
reason?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 批量更新用户状态
|
|
36
|
+
*/
|
|
37
|
+
interface batchUpdateUserStatus {
|
|
38
|
+
userIds: string[];
|
|
39
|
+
status: string;
|
|
40
|
+
operatorId: string;
|
|
41
|
+
reason?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 绑定用户到门店
|
|
45
|
+
*/
|
|
46
|
+
interface bindUsersToStore {
|
|
47
|
+
userIds: string[];
|
|
48
|
+
storeId: string;
|
|
49
|
+
operatorId: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 解绑用户与门店
|
|
53
|
+
*/
|
|
54
|
+
interface unbindUsersFromStore {
|
|
55
|
+
userIds: string[];
|
|
56
|
+
storeId: string;
|
|
57
|
+
operatorId: string;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
namespace Response {
|
|
61
|
+
interface UserInfoDTO {
|
|
62
|
+
id: string;
|
|
63
|
+
mobile?: string;
|
|
64
|
+
nickname?: string;
|
|
65
|
+
avatar?: string;
|
|
66
|
+
gender?: number;
|
|
67
|
+
birthday?: string;
|
|
68
|
+
registerChannel?: string;
|
|
69
|
+
status?: string;
|
|
70
|
+
memberLevel?: string;
|
|
71
|
+
unionId?: string;
|
|
72
|
+
openId?: string;
|
|
73
|
+
storeId?: string;
|
|
74
|
+
createdAt?: number;
|
|
75
|
+
updatedAt?: number;
|
|
76
|
+
}
|
|
77
|
+
interface PageResponse<T> {
|
|
78
|
+
list: T[];
|
|
79
|
+
total: number;
|
|
80
|
+
limit: number;
|
|
81
|
+
offset: number;
|
|
82
|
+
}
|
|
83
|
+
type getUserList = PageResponse<UserInfoDTO>;
|
|
84
|
+
type getUserDetail = UserInfoDTO;
|
|
85
|
+
type updateUserStatus = UserInfoDTO;
|
|
86
|
+
interface batchUpdateUserStatus {
|
|
87
|
+
total: number;
|
|
88
|
+
success: number;
|
|
89
|
+
failed: number;
|
|
90
|
+
results: Array<{
|
|
91
|
+
userId: string;
|
|
92
|
+
success: boolean;
|
|
93
|
+
data?: UserInfoDTO;
|
|
94
|
+
error?: string;
|
|
95
|
+
}>;
|
|
96
|
+
}
|
|
97
|
+
interface bindUsersToStore {
|
|
98
|
+
successUsers: string[];
|
|
99
|
+
failedUsers: Array<{
|
|
100
|
+
userId: string;
|
|
101
|
+
reason: string;
|
|
102
|
+
}>;
|
|
103
|
+
successCount: number;
|
|
104
|
+
failedCount: number;
|
|
105
|
+
}
|
|
106
|
+
interface unbindUsersFromStore {
|
|
107
|
+
successUsers: string[];
|
|
108
|
+
failedUsers: Array<{
|
|
109
|
+
userId: string;
|
|
110
|
+
reason: string;
|
|
111
|
+
}>;
|
|
112
|
+
successCount: number;
|
|
113
|
+
failedCount: number;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
interface Controller {
|
|
117
|
+
getUserList(request: Request.getUserList): Promise<StandardResponse<Response.getUserList>>;
|
|
118
|
+
getUserDetail(request: Request.getUserDetail): Promise<StandardResponse<Response.getUserDetail>>;
|
|
119
|
+
updateUserStatus(request: Request.updateUserStatus): Promise<StandardResponse<Response.updateUserStatus>>;
|
|
120
|
+
batchUpdateUserStatus(request: Request.batchUpdateUserStatus): Promise<StandardResponse<Response.batchUpdateUserStatus>>;
|
|
121
|
+
bindUsersToStore(request: Request.bindUsersToStore): Promise<StandardResponse<Response.bindUsersToStore>>;
|
|
122
|
+
unbindUsersFromStore(request: Request.unbindUsersFromStore): Promise<StandardResponse<Response.unbindUsersFromStore>>;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/enums.d.ts
CHANGED
|
@@ -3,5 +3,11 @@
|
|
|
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';
|
|
6
8
|
export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
|
|
7
9
|
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,7 +4,17 @@
|
|
|
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';
|
|
7
9
|
// 直播间枚举
|
|
8
10
|
export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
|
|
9
11
|
// 优惠券服务枚举
|
|
10
12
|
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,19 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PandoraStoreService } from './bff/modules/pandora/store/service';
|
|
2
2
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
|
|
3
3
|
import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service';
|
|
4
4
|
import { PandoraAuthService } from './bff/modules/pandora/auth/service';
|
|
5
5
|
import { PandoraBDService } from './bff/modules/pandora/bd/service';
|
|
6
6
|
import { PandoraBDMService } from './bff/modules/pandora/bdm/service';
|
|
7
7
|
import { PandoraCommonService } from './bff/modules/pandora/common/service';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
|
|
11
|
-
import { PandoraUserService } from './bff/modules/pandora/user/service';
|
|
8
|
+
import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
|
|
9
|
+
import { PandoraExampleService } from './bff/modules/pandora/example/service';
|
|
12
10
|
import { PandoraProductService } from './bff/modules/pandora/product/service';
|
|
13
11
|
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
|
|
14
12
|
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
|
|
15
|
-
import {
|
|
13
|
+
import { PandoraRoleService } from './bff/modules/pandora/role/service';
|
|
16
14
|
import { PandoraRoomService } from './bff/modules/pandora/room/service';
|
|
15
|
+
import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
|
|
16
|
+
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
|
|
17
|
+
import { PandoraUserService } from './bff/modules/pandora/user/service';
|
|
18
|
+
import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service';
|
|
19
|
+
import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service';
|
|
20
|
+
import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service';
|
|
21
|
+
import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service';
|
|
22
|
+
import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service';
|
|
23
|
+
import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service';
|
|
24
|
+
import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service';
|
|
25
|
+
import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
|
|
26
|
+
import { PandoraTaskService } from './bff/modules/pandora/task/service';
|
|
27
|
+
import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service';
|
|
28
|
+
import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service';
|
|
29
|
+
import { PandoraAwardService } from './bff/modules/pandora/award/service';
|
|
17
30
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
|
|
18
31
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
|
|
19
32
|
import { SdkOptions } from './types';
|
|
@@ -38,14 +51,30 @@ export declare class PandoraSDK {
|
|
|
38
51
|
storeClerk: PandoraStoreClerkService;
|
|
39
52
|
storeManager: PandoraStoreManagerService;
|
|
40
53
|
user: PandoraUserService;
|
|
54
|
+
userManagement: PandoraUserManagementService;
|
|
55
|
+
pointManagement: PandoraPointManagementService;
|
|
56
|
+
couponManagement: PandoraCouponManagementService;
|
|
57
|
+
addressManagement: PandoraAddressManagementService;
|
|
58
|
+
regionManagement: PandoraRegionManagementService;
|
|
41
59
|
product: PandoraProductService;
|
|
42
60
|
productExp: PandoraProductExpService;
|
|
43
61
|
productLive: PandoraProductLiveService;
|
|
44
62
|
coupon: PandoraCouponService;
|
|
63
|
+
pointMall: PandoraPointsMallService;
|
|
64
|
+
/**
|
|
65
|
+
* Pandora 门店服务模块
|
|
66
|
+
*/
|
|
67
|
+
store: PandoraStoreService;
|
|
68
|
+
award: PandoraAwardService;
|
|
45
69
|
/**
|
|
46
70
|
* 直播间模块
|
|
47
71
|
*/
|
|
48
72
|
room: PandoraRoomService;
|
|
73
|
+
orderQuery: PandoraOrderQueryService;
|
|
74
|
+
orderCore: PandoraOrderCoreService;
|
|
75
|
+
task: PandoraTaskService;
|
|
76
|
+
taskWatch: PandoraTaskWatchService;
|
|
77
|
+
pointRule: PandoraPointRuleService;
|
|
49
78
|
/**
|
|
50
79
|
* 加盟商模块
|
|
51
80
|
*/
|
|
@@ -83,12 +112,13 @@ export declare class MiniProgramSDK {
|
|
|
83
112
|
*/
|
|
84
113
|
constructor(options: SdkOptions);
|
|
85
114
|
}
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
115
|
+
export { BizError, SdkError, SystemError } from './errors';
|
|
116
|
+
export { IRequestStrategy, SdkOptions, StandardResponse } from './types';
|
|
88
117
|
export * from './enums';
|
|
89
118
|
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
90
119
|
export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
|
|
91
120
|
export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
|
121
|
+
export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
|
|
92
122
|
export { PandoraAuthService as PandoraAuthServiceTypes } from './bff/modules/pandora/auth/types';
|
|
93
123
|
export { PandoraBDService as PandoraBDServiceTypes } from './bff/modules/pandora/bd/types';
|
|
94
124
|
export { PandoraBDMService as PandoraBDMServiceTypes } from './bff/modules/pandora/bdm/types';
|
|
@@ -97,10 +127,18 @@ export { PandoraRoleService as PandoraRoleServiceTypes } from './bff/modules/pan
|
|
|
97
127
|
export { PandoraStoreClerkService as PandoraStoreClerkServiceTypes } from './bff/modules/pandora/storeClerk/types';
|
|
98
128
|
export { PandoraStoreManagerService as PandoraStoreManagerServiceTypes } from './bff/modules/pandora/storeManager/types';
|
|
99
129
|
export { PandoraUserService as PandoraUserServiceTypes } from './bff/modules/pandora/user/types';
|
|
130
|
+
export * from './bff/modules/pandora/userManager/types';
|
|
100
131
|
export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
|
|
101
132
|
export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
|
|
102
133
|
export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
|
|
134
|
+
export { PandoraOrderQueryService as PandoraOrderQueryServiceTypes } from './bff/modules/pandora/orderQuery/types';
|
|
135
|
+
export { PandoraOrderCoreService as PandoraOrderCoreServiceTypes } from './bff/modules/pandora/orderCore/types';
|
|
136
|
+
export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
|
|
137
|
+
export { PandoraTaskWatchService as PandoraTaskWatchServiceTypes } from './bff/modules/pandora/taskWatch/types';
|
|
138
|
+
export { PandoraPointRuleService as PandoraPointRuleServiceTypes } from './bff/modules/pandora/pointRule/types';
|
|
103
139
|
export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
|
|
104
140
|
export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
|
|
141
|
+
export { PointMallService as PointMallServiceTypes } from './bff/modules/pandora/pointsMall/types';
|
|
142
|
+
export { AwardService as PandoraAwardServiceTypes } from './bff/modules/pandora/award/types';
|
|
105
143
|
export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
|
|
106
144
|
export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
|
package/esm/index.mjs
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
|
|
1
|
+
import { PandoraStoreService } from './bff/modules/pandora/store/service.mjs';
|
|
3
2
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service.mjs';
|
|
4
3
|
import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service.mjs';
|
|
5
4
|
import { PandoraAuthService } from './bff/modules/pandora/auth/service.mjs';
|
|
6
5
|
import { PandoraBDService } from './bff/modules/pandora/bd/service.mjs';
|
|
7
6
|
import { PandoraBDMService } from './bff/modules/pandora/bdm/service.mjs';
|
|
8
7
|
import { PandoraCommonService } from './bff/modules/pandora/common/service.mjs';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
|
|
12
|
-
import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
|
|
8
|
+
import { PandoraCouponService } from './bff/modules/pandora/coupon/service.mjs';
|
|
9
|
+
import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
|
|
13
10
|
import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
|
|
14
11
|
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
|
|
15
12
|
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service.mjs';
|
|
16
|
-
import {
|
|
13
|
+
import { PandoraRoleService } from './bff/modules/pandora/role/service.mjs';
|
|
17
14
|
import { PandoraRoomService } from './bff/modules/pandora/room/service.mjs';
|
|
15
|
+
import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service.mjs';
|
|
16
|
+
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
|
|
17
|
+
import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
|
|
18
|
+
import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service.mjs';
|
|
19
|
+
import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service.mjs';
|
|
20
|
+
import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service.mjs';
|
|
21
|
+
import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service.mjs';
|
|
22
|
+
import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service.mjs';
|
|
23
|
+
import { HttpClient } from './bff/request/client.mjs';
|
|
24
|
+
import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service.mjs';
|
|
25
|
+
import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service.mjs';
|
|
26
|
+
import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service.mjs';
|
|
27
|
+
import { PandoraTaskService } from './bff/modules/pandora/task/service.mjs';
|
|
28
|
+
import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service.mjs';
|
|
29
|
+
import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service.mjs';
|
|
30
|
+
import { PandoraAwardService } from './bff/modules/pandora/award/service.mjs';
|
|
18
31
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service.mjs';
|
|
19
32
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service.mjs';
|
|
20
33
|
/**
|
|
@@ -42,8 +55,21 @@ export class PandoraSDK {
|
|
|
42
55
|
this.product = new PandoraProductService(this.http);
|
|
43
56
|
this.productExp = new PandoraProductExpService(this.http);
|
|
44
57
|
this.productLive = new PandoraProductLiveService(this.http);
|
|
58
|
+
this.store = new PandoraStoreService(this.http);
|
|
45
59
|
this.room = new PandoraRoomService(this.http);
|
|
46
60
|
this.coupon = new PandoraCouponService(this.http);
|
|
61
|
+
this.userManagement = new PandoraUserManagementService(this.http);
|
|
62
|
+
this.pointManagement = new PandoraPointManagementService(this.http);
|
|
63
|
+
this.couponManagement = new PandoraCouponManagementService(this.http);
|
|
64
|
+
this.addressManagement = new PandoraAddressManagementService(this.http);
|
|
65
|
+
this.regionManagement = new PandoraRegionManagementService(this.http);
|
|
66
|
+
this.pointMall = new PandoraPointsMallService(this.http);
|
|
67
|
+
this.orderQuery = new PandoraOrderQueryService(this.http);
|
|
68
|
+
this.orderCore = new PandoraOrderCoreService(this.http);
|
|
69
|
+
this.task = new PandoraTaskService(this.http);
|
|
70
|
+
this.taskWatch = new PandoraTaskWatchService(this.http);
|
|
71
|
+
this.pointRule = new PandoraPointRuleService(this.http);
|
|
72
|
+
this.award = new PandoraAwardService(this.http);
|
|
47
73
|
this.franchisee = new PandoraFranchiseeService(this.http);
|
|
48
74
|
}
|
|
49
75
|
}
|
|
@@ -67,6 +93,7 @@ export class MiniProgramSDK {
|
|
|
67
93
|
}
|
|
68
94
|
// ==================== 导出 ====================
|
|
69
95
|
// 错误类
|
|
70
|
-
export {
|
|
96
|
+
export { BizError, SdkError, SystemError } from './errors/index.mjs';
|
|
71
97
|
// 枚举和常量
|
|
72
98
|
export * from './enums.mjs';
|
|
99
|
+
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
|
+
? 'http://bxbvjnca.tfs.cwl9ok0a.mk2u3r3l.com:8090' // 生产环境
|
|
19
|
+
: 'https://backend-bff-service-196345-5-1304510571.sh.run.tcloudbase.com'; // 测试环境
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* 根据环境获取微信云环境标识符
|