@be-link/ecommerce-backend-bff-service-node-sdk 0.0.108 → 0.0.110
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 +2 -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 +883 -0
- package/cjs/bff/modules/pandora/store/types.js +2 -0
- package/cjs/bff/modules/pandora/storeUserRelation/service.d.ts +41 -0
- package/cjs/bff/modules/pandora/storeUserRelation/service.js +59 -0
- package/cjs/bff/modules/pandora/storeUserRelation/types.d.ts +223 -0
- package/cjs/bff/modules/pandora/storeUserRelation/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 +49 -8
- package/cjs/index.js +65 -38
- package/cjs/utils/env.js +2 -2
- package/cjs/utils/http.js +1 -1
- package/esm/bff/modules/pandora/coupon/types.d.ts +2 -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 +883 -0
- package/esm/bff/modules/pandora/store/types.mjs +1 -0
- package/esm/bff/modules/pandora/storeUserRelation/service.d.ts +41 -0
- package/esm/bff/modules/pandora/storeUserRelation/service.mjs +52 -0
- package/esm/bff/modules/pandora/storeUserRelation/types.d.ts +223 -0
- package/esm/bff/modules/pandora/storeUserRelation/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 +49 -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,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,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
|
+
}
|
package/cjs/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/cjs/enums.js
CHANGED
|
@@ -4,13 +4,29 @@
|
|
|
4
4
|
* 集中管理所有第三方服务 SDK 的枚举和常量
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.PROMOTION_SERVICE_ENUM = exports.ROOM_SERVICE_ENUM = exports.PRODUCT_SERVICE_ENUM = void 0;
|
|
7
|
+
exports.BACKEND_SERVICE_ENUM = exports.TASK_CENTER_ENUM = exports.TRADE_SERVICE_ENUM = exports.USER_SERVICE_ENUM = exports.PROMOTION_SERVICE_ENUM = exports.ROOM_SERVICE_ENUM = exports.PROMOTION_ENUM = exports.STORE_SERVICE_ENUM = exports.PRODUCT_SERVICE_ENUM = void 0;
|
|
8
8
|
// 商品服务枚举
|
|
9
9
|
var enum_1 = require("@be-link/ecommerce-product-service-node-sdk/enum");
|
|
10
10
|
Object.defineProperty(exports, "PRODUCT_SERVICE_ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
|
|
11
|
+
var enums_1 = require("@be-link/ecommerce-store-service-node-sdk/enums");
|
|
12
|
+
Object.defineProperty(exports, "STORE_SERVICE_ENUM", { enumerable: true, get: function () { return enums_1.ENUM; } });
|
|
13
|
+
var enum_2 = require("@be-link/ecommerce-promotion-service-node-sdk/enum");
|
|
14
|
+
Object.defineProperty(exports, "PROMOTION_ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
|
|
11
15
|
// 直播间枚举
|
|
12
|
-
var
|
|
13
|
-
Object.defineProperty(exports, "ROOM_SERVICE_ENUM", { enumerable: true, get: function () { return
|
|
16
|
+
var enum_3 = require("@be-link/ecommerce-client-backend-service-node-sdk/enum");
|
|
17
|
+
Object.defineProperty(exports, "ROOM_SERVICE_ENUM", { enumerable: true, get: function () { return enum_3.ENUM; } });
|
|
14
18
|
// 优惠券服务枚举
|
|
15
|
-
var
|
|
16
|
-
Object.defineProperty(exports, "PROMOTION_SERVICE_ENUM", { enumerable: true, get: function () { return
|
|
19
|
+
var enum_4 = require("@be-link/ecommerce-promotion-service-node-sdk/enum");
|
|
20
|
+
Object.defineProperty(exports, "PROMOTION_SERVICE_ENUM", { enumerable: true, get: function () { return enum_4.ENUM; } });
|
|
21
|
+
// 用户服务枚举
|
|
22
|
+
var enum_5 = require("@be-link/ecommerce-user-service-node-sdk/enum");
|
|
23
|
+
Object.defineProperty(exports, "USER_SERVICE_ENUM", { enumerable: true, get: function () { return enum_5.ENUM; } });
|
|
24
|
+
// 交易服务枚举
|
|
25
|
+
var enums_2 = require("@be-link/ecommerce-trade-service-node-sdk/enums");
|
|
26
|
+
Object.defineProperty(exports, "TRADE_SERVICE_ENUM", { enumerable: true, get: function () { return enums_2.ENUM; } });
|
|
27
|
+
// 任务中心服务枚举
|
|
28
|
+
var enum_6 = require("@be-link/ecommerce-task-center-service-node-sdk/enum");
|
|
29
|
+
Object.defineProperty(exports, "TASK_CENTER_ENUM", { enumerable: true, get: function () { return enum_6.ENUM; } });
|
|
30
|
+
// 后台用户枚举
|
|
31
|
+
var enum_7 = require("@be-link/ecommerce-backend-user-service-node-sdk/enum");
|
|
32
|
+
Object.defineProperty(exports, "BACKEND_SERVICE_ENUM", { enumerable: true, get: function () { return enum_7.ENUM; } });
|
package/cjs/index.d.ts
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
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';
|
|
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,33 @@ 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
|
+
/**
|
|
69
|
+
* Pandora 门店用户关系服务模块
|
|
70
|
+
*/
|
|
71
|
+
storeUserRelation: PandoraStoreUserRelationService;
|
|
45
72
|
/**
|
|
46
73
|
* 直播间模块
|
|
47
74
|
*/
|
|
48
75
|
room: PandoraRoomService;
|
|
76
|
+
orderQuery: PandoraOrderQueryService;
|
|
77
|
+
orderCore: PandoraOrderCoreService;
|
|
78
|
+
task: PandoraTaskService;
|
|
79
|
+
taskWatch: PandoraTaskWatchService;
|
|
80
|
+
pointRule: PandoraPointRuleService;
|
|
49
81
|
/**
|
|
50
82
|
* 加盟商模块
|
|
51
83
|
*/
|
|
@@ -83,12 +115,14 @@ export declare class MiniProgramSDK {
|
|
|
83
115
|
*/
|
|
84
116
|
constructor(options: SdkOptions);
|
|
85
117
|
}
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
118
|
+
export { BizError, SdkError, SystemError } from './errors';
|
|
119
|
+
export { IRequestStrategy, SdkOptions, StandardResponse } from './types';
|
|
88
120
|
export * from './enums';
|
|
89
121
|
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
90
122
|
export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
|
|
91
123
|
export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
|
124
|
+
export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
|
|
125
|
+
export { StoreUserRelationService as PandoraStoreUserRelationServiceTypes } from './bff/modules/pandora/storeUserRelation/types';
|
|
92
126
|
export { PandoraAuthService as PandoraAuthServiceTypes } from './bff/modules/pandora/auth/types';
|
|
93
127
|
export { PandoraBDService as PandoraBDServiceTypes } from './bff/modules/pandora/bd/types';
|
|
94
128
|
export { PandoraBDMService as PandoraBDMServiceTypes } from './bff/modules/pandora/bdm/types';
|
|
@@ -97,10 +131,17 @@ export { PandoraRoleService as PandoraRoleServiceTypes } from './bff/modules/pan
|
|
|
97
131
|
export { PandoraStoreClerkService as PandoraStoreClerkServiceTypes } from './bff/modules/pandora/storeClerk/types';
|
|
98
132
|
export { PandoraStoreManagerService as PandoraStoreManagerServiceTypes } from './bff/modules/pandora/storeManager/types';
|
|
99
133
|
export { PandoraUserService as PandoraUserServiceTypes } from './bff/modules/pandora/user/types';
|
|
134
|
+
export * from './bff/modules/pandora/userManager/types';
|
|
100
135
|
export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
|
|
101
136
|
export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
|
|
102
137
|
export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
|
|
138
|
+
export { PandoraOrderQueryService as PandoraOrderQueryServiceTypes } from './bff/modules/pandora/orderQuery/types';
|
|
139
|
+
export { PandoraOrderCoreService as PandoraOrderCoreServiceTypes } from './bff/modules/pandora/orderCore/types';
|
|
140
|
+
export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
|
|
141
|
+
export { PandoraTaskWatchService as PandoraTaskWatchServiceTypes } from './bff/modules/pandora/taskWatch/types';
|
|
142
|
+
export { PandoraPointRuleService as PandoraPointRuleServiceTypes } from './bff/modules/pandora/pointRule/types';
|
|
103
143
|
export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
|
|
104
144
|
export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
|
|
145
|
+
export { PointMallService as PointMallServiceTypes } from './bff/modules/pandora/pointsMall/types';
|
|
105
146
|
export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
|
|
106
147
|
export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
|
package/cjs/index.js
CHANGED
|
@@ -14,26 +14,39 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.SystemError = exports.
|
|
17
|
+
exports.SystemError = exports.SdkError = exports.BizError = exports.MiniProgramSDK = exports.PandoraSDK = void 0;
|
|
18
|
+
const service_1 = require("./bff/modules/pandora/store/service");
|
|
19
|
+
const service_2 = require("./bff/modules/pandora/storeUserRelation/service");
|
|
20
|
+
const service_3 = require("./bff/modules/miniprogram/demo/service");
|
|
21
|
+
const service_4 = require("./bff/modules/miniprogram/auth/service");
|
|
22
|
+
const service_5 = require("./bff/modules/pandora/auth/service");
|
|
23
|
+
const service_6 = require("./bff/modules/pandora/bd/service");
|
|
24
|
+
const service_7 = require("./bff/modules/pandora/bdm/service");
|
|
25
|
+
const service_8 = require("./bff/modules/pandora/common/service");
|
|
26
|
+
const service_9 = require("./bff/modules/pandora/coupon/service");
|
|
27
|
+
const service_10 = require("./bff/modules/pandora/example/service");
|
|
28
|
+
const service_11 = require("./bff/modules/pandora/product/service");
|
|
29
|
+
const service_12 = require("./bff/modules/pandora/productExp/service");
|
|
30
|
+
const service_13 = require("./bff/modules/pandora/productLive/service");
|
|
31
|
+
const service_14 = require("./bff/modules/pandora/role/service");
|
|
32
|
+
const service_15 = require("./bff/modules/pandora/room/service");
|
|
33
|
+
const service_16 = require("./bff/modules/pandora/storeClerk/service");
|
|
34
|
+
const service_17 = require("./bff/modules/pandora/storeManager/service");
|
|
35
|
+
const service_18 = require("./bff/modules/pandora/user/service");
|
|
36
|
+
const user_service_1 = require("./bff/modules/pandora/userManager/service/user.service");
|
|
37
|
+
const point_service_1 = require("./bff/modules/pandora/userManager/service/point.service");
|
|
38
|
+
const coupon_service_1 = require("./bff/modules/pandora/userManager/service/coupon.service");
|
|
39
|
+
const address_service_1 = require("./bff/modules/pandora/userManager/service/address.service");
|
|
40
|
+
const region_service_1 = require("./bff/modules/pandora/userManager/service/region.service");
|
|
18
41
|
const client_1 = require("./bff/request/client");
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const service_9 = require("./bff/modules/pandora/storeClerk/service");
|
|
28
|
-
const service_10 = require("./bff/modules/pandora/storeManager/service");
|
|
29
|
-
const service_11 = require("./bff/modules/pandora/user/service");
|
|
30
|
-
const service_12 = require("./bff/modules/pandora/product/service");
|
|
31
|
-
const service_13 = require("./bff/modules/pandora/productExp/service");
|
|
32
|
-
const service_14 = require("./bff/modules/pandora/productLive/service");
|
|
33
|
-
const service_15 = require("./bff/modules/pandora/coupon/service");
|
|
34
|
-
const service_16 = require("./bff/modules/pandora/room/service");
|
|
35
|
-
const service_17 = require("./bff/modules/pandora/franchisee/service");
|
|
36
|
-
const service_18 = require("./bff/modules/miniprogram/franchisee/service");
|
|
42
|
+
const service_19 = require("./bff/modules/pandora/pointsMall/service");
|
|
43
|
+
const service_20 = require("./bff/modules/pandora/orderQuery/service");
|
|
44
|
+
const service_21 = require("./bff/modules/pandora/orderCore/service");
|
|
45
|
+
const service_22 = require("./bff/modules/pandora/task/service");
|
|
46
|
+
const service_23 = require("./bff/modules/pandora/taskWatch/service");
|
|
47
|
+
const service_24 = require("./bff/modules/pandora/pointRule/service");
|
|
48
|
+
const service_25 = require("./bff/modules/pandora/franchisee/service");
|
|
49
|
+
const service_26 = require("./bff/modules/miniprogram/franchisee/service");
|
|
37
50
|
/**
|
|
38
51
|
* Pandora 平台 SDK(管理后台)
|
|
39
52
|
* 包含所有 Pandora 平台相关的服务
|
|
@@ -47,21 +60,34 @@ class PandoraSDK {
|
|
|
47
60
|
// 使用提供的选项初始化 HttpClient
|
|
48
61
|
this.http = new client_1.HttpClient(options);
|
|
49
62
|
// 使用 HttpClient 实例化所有 Pandora 服务模块
|
|
50
|
-
this.example = new
|
|
51
|
-
this.auth = new
|
|
52
|
-
this.bd = new
|
|
53
|
-
this.bdm = new
|
|
54
|
-
this.common = new
|
|
55
|
-
this.role = new
|
|
56
|
-
this.storeClerk = new
|
|
57
|
-
this.storeManager = new
|
|
58
|
-
this.user = new
|
|
59
|
-
this.product = new
|
|
60
|
-
this.productExp = new
|
|
61
|
-
this.productLive = new
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
63
|
+
this.example = new service_10.PandoraExampleService(this.http);
|
|
64
|
+
this.auth = new service_5.PandoraAuthService(this.http);
|
|
65
|
+
this.bd = new service_6.PandoraBDService(this.http);
|
|
66
|
+
this.bdm = new service_7.PandoraBDMService(this.http);
|
|
67
|
+
this.common = new service_8.PandoraCommonService(this.http);
|
|
68
|
+
this.role = new service_14.PandoraRoleService(this.http);
|
|
69
|
+
this.storeClerk = new service_16.PandoraStoreClerkService(this.http);
|
|
70
|
+
this.storeManager = new service_17.PandoraStoreManagerService(this.http);
|
|
71
|
+
this.user = new service_18.PandoraUserService(this.http);
|
|
72
|
+
this.product = new service_11.PandoraProductService(this.http);
|
|
73
|
+
this.productExp = new service_12.PandoraProductExpService(this.http);
|
|
74
|
+
this.productLive = new service_13.PandoraProductLiveService(this.http);
|
|
75
|
+
this.store = new service_1.PandoraStoreService(this.http);
|
|
76
|
+
this.storeUserRelation = new service_2.PandoraStoreUserRelationService(this.http);
|
|
77
|
+
this.room = new service_15.PandoraRoomService(this.http);
|
|
78
|
+
this.coupon = new service_9.PandoraCouponService(this.http);
|
|
79
|
+
this.userManagement = new user_service_1.PandoraUserManagementService(this.http);
|
|
80
|
+
this.pointManagement = new point_service_1.PandoraPointManagementService(this.http);
|
|
81
|
+
this.couponManagement = new coupon_service_1.PandoraCouponManagementService(this.http);
|
|
82
|
+
this.addressManagement = new address_service_1.PandoraAddressManagementService(this.http);
|
|
83
|
+
this.regionManagement = new region_service_1.PandoraRegionManagementService(this.http);
|
|
84
|
+
this.pointMall = new service_19.PandoraPointsMallService(this.http);
|
|
85
|
+
this.orderQuery = new service_20.PandoraOrderQueryService(this.http);
|
|
86
|
+
this.orderCore = new service_21.PandoraOrderCoreService(this.http);
|
|
87
|
+
this.task = new service_22.PandoraTaskService(this.http);
|
|
88
|
+
this.taskWatch = new service_23.PandoraTaskWatchService(this.http);
|
|
89
|
+
this.pointRule = new service_24.PandoraPointRuleService(this.http);
|
|
90
|
+
this.franchisee = new service_25.PandoraFranchiseeService(this.http);
|
|
65
91
|
}
|
|
66
92
|
}
|
|
67
93
|
exports.PandoraSDK = PandoraSDK;
|
|
@@ -78,17 +104,18 @@ class MiniProgramSDK {
|
|
|
78
104
|
// 使用提供的选项初始化 HttpClient
|
|
79
105
|
this.http = new client_1.HttpClient(options);
|
|
80
106
|
// 使用 HttpClient 实例化所有小程序服务模块
|
|
81
|
-
this.demo = new
|
|
82
|
-
this.auth = new
|
|
83
|
-
this.franchisee = new
|
|
107
|
+
this.demo = new service_3.MiniProgramDemoService(this.http);
|
|
108
|
+
this.auth = new service_4.MiniprogramAuthServiceClass(this.http);
|
|
109
|
+
this.franchisee = new service_26.MiniprogramFranchiseeService(this.http);
|
|
84
110
|
}
|
|
85
111
|
}
|
|
86
112
|
exports.MiniProgramSDK = MiniProgramSDK;
|
|
87
113
|
// ==================== 导出 ====================
|
|
88
114
|
// 错误类
|
|
89
115
|
var errors_1 = require("./errors");
|
|
90
|
-
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_1.SdkError; } });
|
|
91
116
|
Object.defineProperty(exports, "BizError", { enumerable: true, get: function () { return errors_1.BizError; } });
|
|
117
|
+
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_1.SdkError; } });
|
|
92
118
|
Object.defineProperty(exports, "SystemError", { enumerable: true, get: function () { return errors_1.SystemError; } });
|
|
93
119
|
// 枚举和常量
|
|
94
120
|
__exportStar(require("./enums"), exports);
|
|
121
|
+
__exportStar(require("./bff/modules/pandora/userManager/types"), exports);
|
package/cjs/utils/env.js
CHANGED
|
@@ -21,8 +21,8 @@ function getContainerHost(environment) {
|
|
|
21
21
|
// 生产环境和测试环境使用不同的主机地址
|
|
22
22
|
// TODO 生产url
|
|
23
23
|
return environment === 'production'
|
|
24
|
-
? '' // 生产环境
|
|
25
|
-
: 'https://
|
|
24
|
+
? 'http://bxbvjnca.tfs.cwl9ok0a.mk2u3r3l.com:8090' // 生产环境
|
|
25
|
+
: 'https://backend-bff-service-196345-5-1304510571.sh.run.tcloudbase.com'; // 测试环境
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* 根据环境获取微信云环境标识符
|
package/cjs/utils/http.js
CHANGED
|
@@ -31,7 +31,7 @@ async function callApi(url, request) {
|
|
|
31
31
|
console.error(`ecommerce-backend-bff-service 异常: ${axiosError.message},requestId: ${requestId}`);
|
|
32
32
|
console.info('响应信息', data.message);
|
|
33
33
|
console.error('异常堆栈', JSON.stringify(error.stack));
|
|
34
|
-
throw
|
|
34
|
+
throw new Error(data.errorType + ' - ' + data.message);
|
|
35
35
|
}
|
|
36
36
|
console.error(`ecommerce-backend-bff-service 未知异常: ${axiosError.message}`, error.stack);
|
|
37
37
|
throw error;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PandoraOrderCoreService as Service } from './types';
|
|
2
|
+
import BaseService from '../../BaseService';
|
|
3
|
+
import type { StandardResponse } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* PandoraOrderCoreService - Pandora 订单核心服务模块
|
|
6
|
+
* 提供订单核心操作相关的 API 方法
|
|
7
|
+
* 平台: pandora
|
|
8
|
+
*/
|
|
9
|
+
export declare class PandoraOrderCoreService extends BaseService implements Service.OrderCoreController {
|
|
10
|
+
protected prefixUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* 单个订单发货
|
|
13
|
+
* @param request - 请求参数
|
|
14
|
+
* @returns Promise,解析为标准响应格式
|
|
15
|
+
*/
|
|
16
|
+
shipOrder(request: Service.Request.shipOrder): Promise<StandardResponse<Service.Response.shipOrder>>;
|
|
17
|
+
/**
|
|
18
|
+
* 批量订单发货
|
|
19
|
+
* @param request - 请求参数
|
|
20
|
+
* @returns Promise,解析为标准响应格式
|
|
21
|
+
*/
|
|
22
|
+
batchShipOrder(request: Service.Request.batchShipOrder): Promise<StandardResponse<Service.Response.batchShipOrder>>;
|
|
23
|
+
/**
|
|
24
|
+
* 更新订单地址
|
|
25
|
+
* @param request - 请求参数
|
|
26
|
+
* @returns Promise,解析为标准响应格式
|
|
27
|
+
*/
|
|
28
|
+
updateOrderAddress(request: Service.Request.updateOrderAddress): Promise<StandardResponse<Service.Response.updateOrderAddress>>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import BaseService from '../../BaseService.mjs';
|
|
2
|
+
/**
|
|
3
|
+
* PandoraOrderCoreService - Pandora 订单核心服务模块
|
|
4
|
+
* 提供订单核心操作相关的 API 方法
|
|
5
|
+
* 平台: pandora
|
|
6
|
+
*/
|
|
7
|
+
export class PandoraOrderCoreService extends BaseService {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.prefixUrl = '/pandora/order-core';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 单个订单发货
|
|
14
|
+
* @param request - 请求参数
|
|
15
|
+
* @returns Promise,解析为标准响应格式
|
|
16
|
+
*/
|
|
17
|
+
shipOrder(request) {
|
|
18
|
+
return this.request(this.shipOrder, request);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 批量订单发货
|
|
22
|
+
* @param request - 请求参数
|
|
23
|
+
* @returns Promise,解析为标准响应格式
|
|
24
|
+
*/
|
|
25
|
+
batchShipOrder(request) {
|
|
26
|
+
return this.request(this.batchShipOrder, request);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 更新订单地址
|
|
30
|
+
* @param request - 请求参数
|
|
31
|
+
* @returns Promise,解析为标准响应格式
|
|
32
|
+
*/
|
|
33
|
+
updateOrderAddress(request) {
|
|
34
|
+
return this.request(this.updateOrderAddress, request);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { POS } from '@be-link/ecommerce-trade-service-node-sdk';
|
|
2
|
+
import { StandardResponse } from '../../../../types';
|
|
3
|
+
export declare namespace PandoraOrderCoreService {
|
|
4
|
+
namespace Request {
|
|
5
|
+
type shipOrder = POS.PosOrderCoreTypes.ByWeb.Request.IShipOrder;
|
|
6
|
+
type updateOrderAddress = POS.PosOrderCoreTypes.ByWeb.Request.IUpdateOrderAddress;
|
|
7
|
+
}
|
|
8
|
+
namespace Response {
|
|
9
|
+
type shipOrder = POS.PosOrderCoreTypes.ByWeb.Response.IShipOrder;
|
|
10
|
+
type updateOrderAddress = POS.PosOrderCoreTypes.ByWeb.Response.IUpdateOrderAddress;
|
|
11
|
+
}
|
|
12
|
+
interface OrderCoreController {
|
|
13
|
+
/** 单个订单发货 */
|
|
14
|
+
shipOrder(request: Request.shipOrder): Promise<StandardResponse<Response.shipOrder>>;
|
|
15
|
+
/** 更新订单地址 */
|
|
16
|
+
updateOrderAddress(request: Request.updateOrderAddress): Promise<StandardResponse<Response.updateOrderAddress>>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|