@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
package/cjs/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/cjs/index.js
CHANGED
|
@@ -14,26 +14,40 @@ 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.
|
|
17
|
+
exports.PandoraStoreUserRelationServiceTypes = 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
|
|
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/award/service");
|
|
49
|
+
const service_26 = require("./bff/modules/pandora/franchisee/service");
|
|
50
|
+
const service_27 = require("./bff/modules/miniprogram/franchisee/service");
|
|
37
51
|
/**
|
|
38
52
|
* Pandora 平台 SDK(管理后台)
|
|
39
53
|
* 包含所有 Pandora 平台相关的服务
|
|
@@ -47,21 +61,35 @@ class PandoraSDK {
|
|
|
47
61
|
// 使用提供的选项初始化 HttpClient
|
|
48
62
|
this.http = new client_1.HttpClient(options);
|
|
49
63
|
// 使用 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.
|
|
64
|
+
this.example = new service_10.PandoraExampleService(this.http);
|
|
65
|
+
this.auth = new service_5.PandoraAuthService(this.http);
|
|
66
|
+
this.bd = new service_6.PandoraBDService(this.http);
|
|
67
|
+
this.bdm = new service_7.PandoraBDMService(this.http);
|
|
68
|
+
this.common = new service_8.PandoraCommonService(this.http);
|
|
69
|
+
this.role = new service_14.PandoraRoleService(this.http);
|
|
70
|
+
this.storeClerk = new service_16.PandoraStoreClerkService(this.http);
|
|
71
|
+
this.storeManager = new service_17.PandoraStoreManagerService(this.http);
|
|
72
|
+
this.user = new service_18.PandoraUserService(this.http);
|
|
73
|
+
this.product = new service_11.PandoraProductService(this.http);
|
|
74
|
+
this.productExp = new service_12.PandoraProductExpService(this.http);
|
|
75
|
+
this.productLive = new service_13.PandoraProductLiveService(this.http);
|
|
76
|
+
this.store = new service_1.PandoraStoreService(this.http);
|
|
77
|
+
this.storeUserRelation = new service_2.PandoraStoreUserRelationService(this.http);
|
|
78
|
+
this.room = new service_15.PandoraRoomService(this.http);
|
|
79
|
+
this.coupon = new service_9.PandoraCouponService(this.http);
|
|
80
|
+
this.userManagement = new user_service_1.PandoraUserManagementService(this.http);
|
|
81
|
+
this.pointManagement = new point_service_1.PandoraPointManagementService(this.http);
|
|
82
|
+
this.couponManagement = new coupon_service_1.PandoraCouponManagementService(this.http);
|
|
83
|
+
this.addressManagement = new address_service_1.PandoraAddressManagementService(this.http);
|
|
84
|
+
this.regionManagement = new region_service_1.PandoraRegionManagementService(this.http);
|
|
85
|
+
this.pointMall = new service_19.PandoraPointsMallService(this.http);
|
|
86
|
+
this.orderQuery = new service_20.PandoraOrderQueryService(this.http);
|
|
87
|
+
this.orderCore = new service_21.PandoraOrderCoreService(this.http);
|
|
88
|
+
this.task = new service_22.PandoraTaskService(this.http);
|
|
89
|
+
this.taskWatch = new service_23.PandoraTaskWatchService(this.http);
|
|
90
|
+
this.pointRule = new service_24.PandoraPointRuleService(this.http);
|
|
91
|
+
this.award = new service_25.PandoraAwardService(this.http);
|
|
92
|
+
this.franchisee = new service_26.PandoraFranchiseeService(this.http);
|
|
65
93
|
}
|
|
66
94
|
}
|
|
67
95
|
exports.PandoraSDK = PandoraSDK;
|
|
@@ -78,17 +106,20 @@ class MiniProgramSDK {
|
|
|
78
106
|
// 使用提供的选项初始化 HttpClient
|
|
79
107
|
this.http = new client_1.HttpClient(options);
|
|
80
108
|
// 使用 HttpClient 实例化所有小程序服务模块
|
|
81
|
-
this.demo = new
|
|
82
|
-
this.auth = new
|
|
83
|
-
this.franchisee = new
|
|
109
|
+
this.demo = new service_3.MiniProgramDemoService(this.http);
|
|
110
|
+
this.auth = new service_4.MiniprogramAuthServiceClass(this.http);
|
|
111
|
+
this.franchisee = new service_27.MiniprogramFranchiseeService(this.http);
|
|
84
112
|
}
|
|
85
113
|
}
|
|
86
114
|
exports.MiniProgramSDK = MiniProgramSDK;
|
|
87
115
|
// ==================== 导出 ====================
|
|
88
116
|
// 错误类
|
|
89
117
|
var errors_1 = require("./errors");
|
|
90
|
-
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_1.SdkError; } });
|
|
91
118
|
Object.defineProperty(exports, "BizError", { enumerable: true, get: function () { return errors_1.BizError; } });
|
|
119
|
+
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_1.SdkError; } });
|
|
92
120
|
Object.defineProperty(exports, "SystemError", { enumerable: true, get: function () { return errors_1.SystemError; } });
|
|
93
121
|
// 枚举和常量
|
|
94
122
|
__exportStar(require("./enums"), exports);
|
|
123
|
+
var types_1 = require("./bff/modules/pandora/storeUserRelation/types");
|
|
124
|
+
Object.defineProperty(exports, "PandoraStoreUserRelationServiceTypes", { enumerable: true, get: function () { return types_1.StoreUserRelationService; } });
|
|
125
|
+
__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,17 @@
|
|
|
1
|
+
import { AwardService as Service } from './types';
|
|
2
|
+
import BaseService from '../../BaseService';
|
|
3
|
+
import type { StandardResponse } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* PandoraAwardService - Pandora Award 服务模块
|
|
6
|
+
* 提供 Pandora Award 相关的 API 方法
|
|
7
|
+
* 平台: pandora
|
|
8
|
+
*/
|
|
9
|
+
export declare class PandoraAwardService extends BaseService implements Service.AwardController {
|
|
10
|
+
protected prefixUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* 后台单个发券
|
|
13
|
+
* @param request - 请求参数
|
|
14
|
+
* @returns Promise,解析为标准响应格式
|
|
15
|
+
*/
|
|
16
|
+
adminSingleIssueCoupon(request: Service.Request.adminSingleIssueCoupon): Promise<StandardResponse<Service.Response.adminSingleIssueCoupon>>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import BaseService from '../../BaseService.mjs';
|
|
2
|
+
/**
|
|
3
|
+
* PandoraAwardService - Pandora Award 服务模块
|
|
4
|
+
* 提供 Pandora Award 相关的 API 方法
|
|
5
|
+
* 平台: pandora
|
|
6
|
+
*/
|
|
7
|
+
export class PandoraAwardService extends BaseService {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.prefixUrl = '/pandora/award';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 后台单个发券
|
|
14
|
+
* @param request - 请求参数
|
|
15
|
+
* @returns Promise,解析为标准响应格式
|
|
16
|
+
*/
|
|
17
|
+
adminSingleIssueCoupon(request) {
|
|
18
|
+
return this.request(this.adminSingleIssueCoupon, request);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../types';
|
|
2
|
+
import type { Service as AwardServiceTypes } from '@be-link/ecommerce-promotion-service-node-sdk/modules/award/types';
|
|
3
|
+
export declare namespace AwardService {
|
|
4
|
+
namespace Request {
|
|
5
|
+
type adminSingleIssueCoupon = AwardServiceTypes.Request.adminSingleIssueCoupon;
|
|
6
|
+
}
|
|
7
|
+
namespace Response {
|
|
8
|
+
type adminSingleIssueCoupon = AwardServiceTypes.Response.distributePrize;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Promotion Controller 接口定义
|
|
12
|
+
*/
|
|
13
|
+
interface AwardController {
|
|
14
|
+
/** 后台单个发券 */
|
|
15
|
+
adminSingleIssueCoupon(request: AwardService.Request.adminSingleIssueCoupon, req: any): Promise<StandardResponse<AwardService.Response.adminSingleIssueCoupon>>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -226,6 +226,8 @@ export declare namespace CouponService {
|
|
|
226
226
|
pageIndex?: number;
|
|
227
227
|
/** 每页数量 */
|
|
228
228
|
pageSize?: number;
|
|
229
|
+
/** 券ID */
|
|
230
|
+
id?: string;
|
|
229
231
|
/** 券名称(模糊查询) */
|
|
230
232
|
name?: string;
|
|
231
233
|
/** 券类型 */
|
|
@@ -294,6 +296,10 @@ export declare namespace CouponService {
|
|
|
294
296
|
createdAt: number;
|
|
295
297
|
/** 更新时间 */
|
|
296
298
|
updatedAt: number;
|
|
299
|
+
/** 创建人ID */
|
|
300
|
+
creatorId: string;
|
|
301
|
+
/** 创建人名称 */
|
|
302
|
+
creatorName: string;
|
|
297
303
|
}
|
|
298
304
|
/** 券模版列表响应 */
|
|
299
305
|
interface getCouponTemplateList {
|
|
@@ -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 {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PandoraOrderQueryService as Service } from './types';
|
|
2
|
+
import BaseService from '../../BaseService';
|
|
3
|
+
import type { StandardResponse } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* PandoraOrderQueryService - Pandora 订单查询服务模块
|
|
6
|
+
* 提供订单查询相关的 API 方法
|
|
7
|
+
* 平台: pandora
|
|
8
|
+
*/
|
|
9
|
+
export declare class PandoraOrderQueryService extends BaseService implements Service.OrderQueryController {
|
|
10
|
+
protected prefixUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* 订单列表(简化数据)
|
|
13
|
+
* @param request - 请求参数
|
|
14
|
+
* @returns Promise,解析为标准响应格式
|
|
15
|
+
*/
|
|
16
|
+
list(request: Service.Request.list): Promise<StandardResponse<Service.Response.list>>;
|
|
17
|
+
/**
|
|
18
|
+
* 订单详情
|
|
19
|
+
* @param request - 请求参数
|
|
20
|
+
* @returns Promise,解析为标准响应格式
|
|
21
|
+
*/
|
|
22
|
+
orderDetail(request: Service.Request.orderDetail): Promise<StandardResponse<Service.Response.orderDetail>>;
|
|
23
|
+
/**
|
|
24
|
+
* 获取订单地址
|
|
25
|
+
* @param request - 请求参数
|
|
26
|
+
* @returns Promise,解析为标准响应格式
|
|
27
|
+
*/
|
|
28
|
+
getOrderAddress(request: Service.Request.getOrderAddress): Promise<StandardResponse<Service.Response.getOrderAddress>>;
|
|
29
|
+
/**
|
|
30
|
+
* 逆向订单列表(退款订单)
|
|
31
|
+
* @param request - 请求参数
|
|
32
|
+
* @returns Promise,解析为标准响应格式
|
|
33
|
+
*/
|
|
34
|
+
reverseOrderList(request: Service.Request.reverseOrderList): Promise<StandardResponse<Service.Response.reverseOrderList>>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import BaseService from '../../BaseService.mjs';
|
|
2
|
+
/**
|
|
3
|
+
* PandoraOrderQueryService - Pandora 订单查询服务模块
|
|
4
|
+
* 提供订单查询相关的 API 方法
|
|
5
|
+
* 平台: pandora
|
|
6
|
+
*/
|
|
7
|
+
export class PandoraOrderQueryService extends BaseService {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.prefixUrl = '/pandora/order-query';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 订单列表(简化数据)
|
|
14
|
+
* @param request - 请求参数
|
|
15
|
+
* @returns Promise,解析为标准响应格式
|
|
16
|
+
*/
|
|
17
|
+
list(request) {
|
|
18
|
+
return this.request(this.list, request);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 订单详情
|
|
22
|
+
* @param request - 请求参数
|
|
23
|
+
* @returns Promise,解析为标准响应格式
|
|
24
|
+
*/
|
|
25
|
+
orderDetail(request) {
|
|
26
|
+
return this.request(this.orderDetail, request);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 获取订单地址
|
|
30
|
+
* @param request - 请求参数
|
|
31
|
+
* @returns Promise,解析为标准响应格式
|
|
32
|
+
*/
|
|
33
|
+
getOrderAddress(request) {
|
|
34
|
+
return this.request(this.getOrderAddress, request);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 逆向订单列表(退款订单)
|
|
38
|
+
* @param request - 请求参数
|
|
39
|
+
* @returns Promise,解析为标准响应格式
|
|
40
|
+
*/
|
|
41
|
+
reverseOrderList(request) {
|
|
42
|
+
return this.request(this.reverseOrderList, request);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { POS, ROS, DTO } from '@be-link/ecommerce-trade-service-node-sdk';
|
|
2
|
+
import { StandardResponse } from '../../../../types';
|
|
3
|
+
export declare namespace PandoraOrderQueryService {
|
|
4
|
+
namespace Request {
|
|
5
|
+
type list = POS.PosOrderQueryTypes.ByWeb.Request.IOrderList;
|
|
6
|
+
type orderDetail = POS.PosOrderQueryTypes.ByWeb.Request.IOrderDetail;
|
|
7
|
+
type getOrderAddress = POS.PosOrderQueryTypes.ByWeb.Request.IGetOrderAddress;
|
|
8
|
+
type reverseOrderList = ROS.RosOrderQueryByWebTypes.RosOrderQueryService.Request.IOrderList;
|
|
9
|
+
}
|
|
10
|
+
namespace Response {
|
|
11
|
+
type list = POS.PosOrderQueryTypes.ByWeb.Response.IList;
|
|
12
|
+
type orderDetail = POS.PosOrderQueryTypes.ByWeb.Response.IOrderDetail;
|
|
13
|
+
type getOrderAddress = POS.PosOrderQueryTypes.ByWeb.Response.IGetOrderAddress;
|
|
14
|
+
type reverseOrderList = DTO.ReverseQueryResult[];
|
|
15
|
+
}
|
|
16
|
+
interface OrderQueryController {
|
|
17
|
+
/** 订单列表(简化数据) */
|
|
18
|
+
list(request: Request.list): Promise<StandardResponse<Response.list>>;
|
|
19
|
+
/** 订单详情 */
|
|
20
|
+
orderDetail(request: Request.orderDetail): Promise<StandardResponse<Response.orderDetail>>;
|
|
21
|
+
/** 获取订单地址 */
|
|
22
|
+
getOrderAddress(request: Request.getOrderAddress): Promise<StandardResponse<Response.getOrderAddress>>;
|
|
23
|
+
/** 逆向订单列表(退款订单) */
|
|
24
|
+
reverseOrderList(request: Request.reverseOrderList): Promise<StandardResponse<Response.reverseOrderList>>;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PandoraPointRuleService as Service } from './types';
|
|
2
|
+
import BaseService from '../../BaseService';
|
|
3
|
+
import type { StandardResponse } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* PandoraPointRuleService - Pandora 积分规则服务模块
|
|
6
|
+
* 提供积分规则管理相关的 API 方法
|
|
7
|
+
* 平台: pandora
|
|
8
|
+
*/
|
|
9
|
+
export declare class PandoraPointRuleService extends BaseService implements Service.PointRuleController {
|
|
10
|
+
protected prefixUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* 创建积分规则
|
|
13
|
+
* @param request - 请求参数
|
|
14
|
+
* @returns Promise,解析为标准响应格式
|
|
15
|
+
*/
|
|
16
|
+
createPointRule(request: Service.Request.createPointRule): Promise<StandardResponse<Service.Response.createPointRule>>;
|
|
17
|
+
/**
|
|
18
|
+
* 修改积分规则
|
|
19
|
+
* @param request - 请求参数
|
|
20
|
+
* @returns Promise,解析为标准响应格式
|
|
21
|
+
*/
|
|
22
|
+
updatePointRule(request: Service.Request.updatePointRule): Promise<StandardResponse<Service.Response.updatePointRule>>;
|
|
23
|
+
/**
|
|
24
|
+
* 删除积分规则
|
|
25
|
+
* @param request - 请求参数
|
|
26
|
+
* @returns Promise,解析为标准响应格式
|
|
27
|
+
*/
|
|
28
|
+
deletePointRule(request: Service.Request.deletePointRule): Promise<StandardResponse<Service.Response.deletePointRule>>;
|
|
29
|
+
/**
|
|
30
|
+
* 查询积分规则
|
|
31
|
+
* @param request - 请求参数
|
|
32
|
+
* @returns Promise,解析为标准响应格式
|
|
33
|
+
*/
|
|
34
|
+
queryPointRule(request: Service.Request.queryPointRule): Promise<StandardResponse<Service.Response.queryPointRule>>;
|
|
35
|
+
/**
|
|
36
|
+
* 查询商品命中的积分规则
|
|
37
|
+
* @param request - 请求参数
|
|
38
|
+
* @returns Promise,解析为标准响应格式
|
|
39
|
+
*/
|
|
40
|
+
queryPointRuleByProduct(request: Service.Request.queryPointRuleByProduct): Promise<StandardResponse<Service.Response.queryPointRuleByProduct>>;
|
|
41
|
+
/**
|
|
42
|
+
* 根据规则ID查询关联的商品列表
|
|
43
|
+
* @param request - 请求参数
|
|
44
|
+
* @returns Promise,解析为标准响应格式
|
|
45
|
+
*/
|
|
46
|
+
queryProductsByRuleId(request: Service.Request.queryProductsByRuleId): Promise<StandardResponse<Service.Response.queryProductsByRuleId>>;
|
|
47
|
+
/**
|
|
48
|
+
* 查询积分规则操作日志
|
|
49
|
+
* @param request - 请求参数
|
|
50
|
+
* @returns Promise,解析为标准响应格式
|
|
51
|
+
*/
|
|
52
|
+
queryPointRuleOperationLog(request: Service.Request.queryPointRuleOperationLog): Promise<StandardResponse<Service.Response.queryPointRuleOperationLog>>;
|
|
53
|
+
}
|