@be-link/ecommerce-backend-bff-service-node-sdk 0.0.114 → 0.0.115
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 +52 -8
- package/cjs/index.js +69 -38
- 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 +52 -8
- package/esm/index.mjs +38 -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,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PandoraStoreService } from './bff/modules/pandora/store/service';
|
|
2
|
+
import { PandoraStoreUserRelationService } from './bff/modules/pandora/storeUserRelation/service';
|
|
2
3
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
|
|
3
4
|
import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service';
|
|
4
5
|
import { PandoraAuthService } from './bff/modules/pandora/auth/service';
|
|
5
6
|
import { PandoraBDService } from './bff/modules/pandora/bd/service';
|
|
6
7
|
import { PandoraBDMService } from './bff/modules/pandora/bdm/service';
|
|
7
8
|
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';
|
|
9
|
+
import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
|
|
10
|
+
import { PandoraExampleService } from './bff/modules/pandora/example/service';
|
|
12
11
|
import { PandoraProductService } from './bff/modules/pandora/product/service';
|
|
13
12
|
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
|
|
14
13
|
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
|
|
15
|
-
import {
|
|
14
|
+
import { PandoraRoleService } from './bff/modules/pandora/role/service';
|
|
16
15
|
import { PandoraRoomService } from './bff/modules/pandora/room/service';
|
|
16
|
+
import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
|
|
17
|
+
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
|
|
18
|
+
import { PandoraUserService } from './bff/modules/pandora/user/service';
|
|
19
|
+
import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service';
|
|
20
|
+
import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service';
|
|
21
|
+
import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service';
|
|
22
|
+
import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service';
|
|
23
|
+
import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service';
|
|
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';
|
|
17
31
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
|
|
18
32
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
|
|
19
33
|
import { SdkOptions } from './types';
|
|
@@ -38,14 +52,34 @@ export declare class PandoraSDK {
|
|
|
38
52
|
storeClerk: PandoraStoreClerkService;
|
|
39
53
|
storeManager: PandoraStoreManagerService;
|
|
40
54
|
user: PandoraUserService;
|
|
55
|
+
userManagement: PandoraUserManagementService;
|
|
56
|
+
pointManagement: PandoraPointManagementService;
|
|
57
|
+
couponManagement: PandoraCouponManagementService;
|
|
58
|
+
addressManagement: PandoraAddressManagementService;
|
|
59
|
+
regionManagement: PandoraRegionManagementService;
|
|
41
60
|
product: PandoraProductService;
|
|
42
61
|
productExp: PandoraProductExpService;
|
|
43
62
|
productLive: PandoraProductLiveService;
|
|
44
63
|
coupon: PandoraCouponService;
|
|
64
|
+
pointMall: PandoraPointsMallService;
|
|
65
|
+
/**
|
|
66
|
+
* Pandora 门店服务模块
|
|
67
|
+
*/
|
|
68
|
+
store: PandoraStoreService;
|
|
69
|
+
/**
|
|
70
|
+
* Pandora 门店用户关系服务模块
|
|
71
|
+
*/
|
|
72
|
+
storeUserRelation: PandoraStoreUserRelationService;
|
|
73
|
+
award: PandoraAwardService;
|
|
45
74
|
/**
|
|
46
75
|
* 直播间模块
|
|
47
76
|
*/
|
|
48
77
|
room: PandoraRoomService;
|
|
78
|
+
orderQuery: PandoraOrderQueryService;
|
|
79
|
+
orderCore: PandoraOrderCoreService;
|
|
80
|
+
task: PandoraTaskService;
|
|
81
|
+
taskWatch: PandoraTaskWatchService;
|
|
82
|
+
pointRule: PandoraPointRuleService;
|
|
49
83
|
/**
|
|
50
84
|
* 加盟商模块
|
|
51
85
|
*/
|
|
@@ -83,12 +117,14 @@ export declare class MiniProgramSDK {
|
|
|
83
117
|
*/
|
|
84
118
|
constructor(options: SdkOptions);
|
|
85
119
|
}
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
120
|
+
export { BizError, SdkError, SystemError } from './errors';
|
|
121
|
+
export { IRequestStrategy, SdkOptions, StandardResponse } from './types';
|
|
88
122
|
export * from './enums';
|
|
89
123
|
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
90
124
|
export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
|
|
91
125
|
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';
|
|
92
128
|
export { PandoraAuthService as PandoraAuthServiceTypes } from './bff/modules/pandora/auth/types';
|
|
93
129
|
export { PandoraBDService as PandoraBDServiceTypes } from './bff/modules/pandora/bd/types';
|
|
94
130
|
export { PandoraBDMService as PandoraBDMServiceTypes } from './bff/modules/pandora/bdm/types';
|
|
@@ -97,10 +133,18 @@ export { PandoraRoleService as PandoraRoleServiceTypes } from './bff/modules/pan
|
|
|
97
133
|
export { PandoraStoreClerkService as PandoraStoreClerkServiceTypes } from './bff/modules/pandora/storeClerk/types';
|
|
98
134
|
export { PandoraStoreManagerService as PandoraStoreManagerServiceTypes } from './bff/modules/pandora/storeManager/types';
|
|
99
135
|
export { PandoraUserService as PandoraUserServiceTypes } from './bff/modules/pandora/user/types';
|
|
136
|
+
export * from './bff/modules/pandora/userManager/types';
|
|
100
137
|
export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
|
|
101
138
|
export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
|
|
102
139
|
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';
|
|
103
145
|
export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
|
|
104
146
|
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';
|
|
105
149
|
export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
|
|
106
150
|
export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
|
package/esm/index.mjs
CHANGED
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PandoraStoreService } from './bff/modules/pandora/store/service.mjs';
|
|
2
|
+
import { PandoraStoreUserRelationService } from './bff/modules/pandora/storeUserRelation/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 {
|
|
10
|
-
import {
|
|
11
|
-
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
|
|
12
|
-
import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
|
|
9
|
+
import { PandoraCouponService } from './bff/modules/pandora/coupon/service.mjs';
|
|
10
|
+
import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
|
|
13
11
|
import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
|
|
14
12
|
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
|
|
15
13
|
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service.mjs';
|
|
16
|
-
import {
|
|
14
|
+
import { PandoraRoleService } from './bff/modules/pandora/role/service.mjs';
|
|
17
15
|
import { PandoraRoomService } from './bff/modules/pandora/room/service.mjs';
|
|
16
|
+
import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service.mjs';
|
|
17
|
+
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
|
|
18
|
+
import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
|
|
19
|
+
import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service.mjs';
|
|
20
|
+
import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service.mjs';
|
|
21
|
+
import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service.mjs';
|
|
22
|
+
import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service.mjs';
|
|
23
|
+
import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service.mjs';
|
|
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';
|
|
18
32
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service.mjs';
|
|
19
33
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service.mjs';
|
|
20
34
|
/**
|
|
@@ -42,8 +56,22 @@ export class PandoraSDK {
|
|
|
42
56
|
this.product = new PandoraProductService(this.http);
|
|
43
57
|
this.productExp = new PandoraProductExpService(this.http);
|
|
44
58
|
this.productLive = new PandoraProductLiveService(this.http);
|
|
59
|
+
this.store = new PandoraStoreService(this.http);
|
|
60
|
+
this.storeUserRelation = new PandoraStoreUserRelationService(this.http);
|
|
45
61
|
this.room = new PandoraRoomService(this.http);
|
|
46
62
|
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);
|
|
47
75
|
this.franchisee = new PandoraFranchiseeService(this.http);
|
|
48
76
|
}
|
|
49
77
|
}
|
|
@@ -67,6 +95,8 @@ export class MiniProgramSDK {
|
|
|
67
95
|
}
|
|
68
96
|
// ==================== 导出 ====================
|
|
69
97
|
// 错误类
|
|
70
|
-
export {
|
|
98
|
+
export { BizError, SdkError, SystemError } from './errors/index.mjs';
|
|
71
99
|
// 枚举和常量
|
|
72
100
|
export * from './enums.mjs';
|
|
101
|
+
export { StoreUserRelationService as PandoraStoreUserRelationServiceTypes } from './bff/modules/pandora/storeUserRelation/types.mjs';
|
|
102
|
+
export * from './bff/modules/pandora/userManager/types/index.mjs';
|