@be-link/ecommerce-backend-bff-service-node-sdk 0.0.119 → 0.0.120
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/miniprogram/auth/types.d.ts +5 -14
- package/cjs/bff/modules/pandora/auth/types.d.ts +3 -16
- package/cjs/bff/modules/pandora/orderCore/service.d.ts +7 -1
- package/cjs/bff/modules/pandora/orderCore/service.js +9 -1
- package/cjs/bff/modules/pandora/orderCore/types.d.ts +7 -2
- package/cjs/bff/modules/pandora/orderQuery/service.d.ts +0 -6
- package/cjs/bff/modules/pandora/orderQuery/service.js +0 -8
- package/cjs/bff/modules/pandora/orderQuery/types.d.ts +10 -5
- 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/role/types.d.ts +0 -6
- 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 +891 -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 -1
- 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 +18 -0
- package/cjs/bff/modules/pandora/userManager/types/address.types.js +6 -0
- package/cjs/bff/modules/pandora/userManager/types/coupon.types.d.ts +17 -0
- package/cjs/bff/modules/pandora/userManager/types/coupon.types.js +6 -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 +19 -0
- package/cjs/bff/modules/pandora/userManager/types/point.types.js +6 -0
- package/cjs/bff/modules/pandora/userManager/types/region.types.d.ts +20 -0
- package/cjs/bff/modules/pandora/userManager/types/region.types.js +6 -0
- package/cjs/bff/modules/pandora/userManager/types/user.types.d.ts +18 -0
- package/cjs/bff/modules/pandora/userManager/types/user.types.js +6 -0
- package/cjs/enums.d.ts +6 -0
- package/cjs/enums.js +21 -5
- package/cjs/index.d.ts +44 -12
- package/cjs/index.js +64 -31
- package/esm/bff/modules/miniprogram/auth/types.d.ts +5 -14
- package/esm/bff/modules/pandora/auth/types.d.ts +3 -16
- package/esm/bff/modules/pandora/orderCore/service.d.ts +7 -1
- package/esm/bff/modules/pandora/orderCore/service.mjs +9 -1
- package/esm/bff/modules/pandora/orderCore/types.d.ts +7 -2
- package/esm/bff/modules/pandora/orderQuery/service.d.ts +0 -6
- package/esm/bff/modules/pandora/orderQuery/service.mjs +0 -8
- package/esm/bff/modules/pandora/orderQuery/types.d.ts +10 -5
- 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/role/types.d.ts +0 -6
- 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 +891 -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 -1
- 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 +18 -0
- package/esm/bff/modules/pandora/userManager/types/address.types.mjs +3 -0
- package/esm/bff/modules/pandora/userManager/types/coupon.types.d.ts +17 -0
- package/esm/bff/modules/pandora/userManager/types/coupon.types.mjs +3 -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 +19 -0
- package/esm/bff/modules/pandora/userManager/types/point.types.mjs +3 -0
- package/esm/bff/modules/pandora/userManager/types/region.types.d.ts +20 -0
- package/esm/bff/modules/pandora/userManager/types/region.types.mjs +3 -0
- package/esm/bff/modules/pandora/userManager/types/user.types.d.ts +18 -0
- package/esm/bff/modules/pandora/userManager/types/user.types.mjs +3 -0
- package/esm/enums.d.ts +6 -0
- package/esm/enums.mjs +10 -0
- package/esm/index.d.ts +44 -12
- package/esm/index.mjs +43 -10
- package/package.json +12 -10
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 优惠券管理类型定义
|
|
3
|
+
* 直接使用 ecommerce-user-service-node-sdk 的类型定义
|
|
4
|
+
*/
|
|
5
|
+
import { StandardResponse } from '../../../../../types';
|
|
6
|
+
import { CouponManagementTypes as UserCouponServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/couponManagement.types';
|
|
7
|
+
export declare namespace PandoraCouponManagementTypes {
|
|
8
|
+
export import Request = UserCouponServiceTypes.Request;
|
|
9
|
+
export import Response = UserCouponServiceTypes.Response;
|
|
10
|
+
interface Controller {
|
|
11
|
+
batchGrantCoupons(request: Request.batchGrantCoupons): Promise<StandardResponse<Response.batchGrantCoupons>>;
|
|
12
|
+
grantCoupon(request: Request.grantCoupon): Promise<StandardResponse<Response.grantCoupon>>;
|
|
13
|
+
batchInvalidateCoupons(request: Request.batchInvalidateCoupons): Promise<StandardResponse<Response.batchInvalidateCoupons>>;
|
|
14
|
+
getUserCouponList(request: Request.getUserCouponList): Promise<StandardResponse<Response.getUserCouponList>>;
|
|
15
|
+
getCouponDetail(request: Request.getCouponDetail): Promise<StandardResponse<Response.getCouponDetail>>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PandoraCouponManagementTypes = void 0;
|
|
4
|
+
var PandoraCouponManagementTypes;
|
|
5
|
+
(function (PandoraCouponManagementTypes) {
|
|
6
|
+
})(PandoraCouponManagementTypes || (exports.PandoraCouponManagementTypes = PandoraCouponManagementTypes = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./user.types"), exports);
|
|
18
|
+
__exportStar(require("./point.types"), exports);
|
|
19
|
+
__exportStar(require("./coupon.types"), exports);
|
|
20
|
+
__exportStar(require("./address.types"), exports);
|
|
21
|
+
__exportStar(require("./region.types"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 积分管理类型定义
|
|
3
|
+
* 直接使用 ecommerce-user-service-node-sdk 的类型定义
|
|
4
|
+
*/
|
|
5
|
+
import { StandardResponse } from '../../../../../types';
|
|
6
|
+
import { PointManagementTypes as UserPointServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/pointManagement.types';
|
|
7
|
+
export declare namespace PandoraPointManagementTypes {
|
|
8
|
+
export import Request = UserPointServiceTypes.Request;
|
|
9
|
+
export import Response = UserPointServiceTypes.Response;
|
|
10
|
+
interface Controller {
|
|
11
|
+
adjustPoint(request: Request.adjustPoint): Promise<StandardResponse<Response.adjustPoint>>;
|
|
12
|
+
batchAdjustPoints(request: Request.batchAdjustPoints): Promise<StandardResponse<Response.batchAdjustPoints>>;
|
|
13
|
+
getUserPointInfo(request: Request.getUserPointInfo): Promise<StandardResponse<Response.getUserPointInfo>>;
|
|
14
|
+
getPointFlowList(request: Request.getPointFlowList): Promise<StandardResponse<Response.getPointFlowList>>;
|
|
15
|
+
getPointDetailList(request: Request.getPointDetailList): Promise<StandardResponse<Response.getPointDetailList>>;
|
|
16
|
+
freezeUserPoint(request: Request.freezeUserPoint): Promise<StandardResponse<Response.freezeUserPoint>>;
|
|
17
|
+
unfreezeUserPoint(request: Request.unfreezeUserPoint): Promise<StandardResponse<Response.unfreezeUserPoint>>;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PandoraPointManagementTypes = void 0;
|
|
4
|
+
var PandoraPointManagementTypes;
|
|
5
|
+
(function (PandoraPointManagementTypes) {
|
|
6
|
+
})(PandoraPointManagementTypes || (exports.PandoraPointManagementTypes = PandoraPointManagementTypes = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 地区管理类型定义
|
|
3
|
+
* 直接使用 ecommerce-user-service-node-sdk 的类型定义
|
|
4
|
+
*/
|
|
5
|
+
import { StandardResponse } from '../../../../../types';
|
|
6
|
+
import { RegionManagementTypes as UserRegionServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/regionManagement.types';
|
|
7
|
+
export declare namespace PandoraRegionManagementTypes {
|
|
8
|
+
export import Request = UserRegionServiceTypes.Request;
|
|
9
|
+
export import Response = UserRegionServiceTypes.Response;
|
|
10
|
+
interface Controller {
|
|
11
|
+
batchImportRegions(request: Request.batchImportRegions): Promise<StandardResponse<Response.batchImportRegions>>;
|
|
12
|
+
getAllProvinces(request: Request.getAllProvinces): Promise<StandardResponse<Response.getAllProvinces>>;
|
|
13
|
+
getCitiesByProvince(request: Request.getCitiesByProvince): Promise<StandardResponse<Response.getCitiesByProvince>>;
|
|
14
|
+
getDistrictsByCity(request: Request.getDistrictsByCity): Promise<StandardResponse<Response.getDistrictsByCity>>;
|
|
15
|
+
searchRegions(request: Request.searchRegions): Promise<StandardResponse<Response.searchRegions>>;
|
|
16
|
+
getRegionByCode(request: Request.getRegionByCode): Promise<StandardResponse<Response.getRegionByCode>>;
|
|
17
|
+
getFullAddress(request: Request.getFullAddress): Promise<StandardResponse<Response.getFullAddress>>;
|
|
18
|
+
getRegionTree(request: Request.getRegionTree): Promise<StandardResponse<Response.getRegionTree>>;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PandoraRegionManagementTypes = void 0;
|
|
4
|
+
var PandoraRegionManagementTypes;
|
|
5
|
+
(function (PandoraRegionManagementTypes) {
|
|
6
|
+
})(PandoraRegionManagementTypes || (exports.PandoraRegionManagementTypes = PandoraRegionManagementTypes = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 用户管理类型定义
|
|
3
|
+
* 直接使用 ecommerce-user-service-node-sdk 的类型定义
|
|
4
|
+
*/
|
|
5
|
+
import { StandardResponse } from '../../../../../types';
|
|
6
|
+
import { UserManagementTypes as UserServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/userManagement.types';
|
|
7
|
+
export declare namespace PandoraUserManagementTypes {
|
|
8
|
+
export import Request = UserServiceTypes.Request;
|
|
9
|
+
export import Response = UserServiceTypes.Response;
|
|
10
|
+
interface Controller {
|
|
11
|
+
getUserList(request: Request.getUserList): Promise<StandardResponse<Response.getUserList>>;
|
|
12
|
+
getUserDetail(request: Request.getUserDetail): Promise<StandardResponse<Response.getUserDetail>>;
|
|
13
|
+
updateUserStatus(request: Request.updateUserStatus): Promise<StandardResponse<Response.updateUserStatus>>;
|
|
14
|
+
batchUpdateUserStatus(request: Request.batchUpdateUserStatus): Promise<StandardResponse<Response.batchUpdateUserStatus>>;
|
|
15
|
+
bindUsersToStore(request: Request.bindUsersToStore): Promise<StandardResponse<Response.bindUsersToStore>>;
|
|
16
|
+
unbindUsersFromStore(request: Request.unbindUsersFromStore): Promise<StandardResponse<Response.unbindUsersFromStore>>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PandoraUserManagementTypes = void 0;
|
|
4
|
+
var PandoraUserManagementTypes;
|
|
5
|
+
(function (PandoraUserManagementTypes) {
|
|
6
|
+
})(PandoraUserManagementTypes || (exports.PandoraUserManagementTypes = PandoraUserManagementTypes = {}));
|
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,24 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PandoraStoreService } from './bff/modules/pandora/store/service';
|
|
2
2
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
|
|
3
3
|
import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service';
|
|
4
4
|
import { PandoraAuthService } from './bff/modules/pandora/auth/service';
|
|
5
5
|
import { PandoraBDService } from './bff/modules/pandora/bd/service';
|
|
6
6
|
import { PandoraBDMService } from './bff/modules/pandora/bdm/service';
|
|
7
7
|
import { PandoraCommonService } from './bff/modules/pandora/common/service';
|
|
8
|
+
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
|
|
8
9
|
import { PandoraRoleService } from './bff/modules/pandora/role/service';
|
|
9
|
-
import {
|
|
10
|
-
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
|
|
10
|
+
import { PandoraRoomService } from './bff/modules/pandora/room/service';
|
|
11
11
|
import { PandoraUserService } from './bff/modules/pandora/user/service';
|
|
12
|
+
import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service';
|
|
13
|
+
import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service';
|
|
14
|
+
import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service';
|
|
15
|
+
import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service';
|
|
16
|
+
import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service';
|
|
17
|
+
import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service';
|
|
18
|
+
import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service';
|
|
19
|
+
import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
|
|
20
|
+
import { PandoraTaskService } from './bff/modules/pandora/task/service';
|
|
21
|
+
import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service';
|
|
22
|
+
import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service';
|
|
23
|
+
import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
|
|
24
|
+
import { PandoraExampleService } from './bff/modules/pandora/example/service';
|
|
12
25
|
import { PandoraProductService } from './bff/modules/pandora/product/service';
|
|
13
26
|
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { PandoraRoomService } from './bff/modules/pandora/room/service';
|
|
27
|
+
import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
|
|
28
|
+
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
|
|
17
29
|
import { PandoraAwardService } from './bff/modules/pandora/award/service';
|
|
18
30
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
|
|
19
31
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
|
|
20
|
-
import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service';
|
|
21
|
-
import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
|
|
22
32
|
import { SdkOptions } from './types';
|
|
23
33
|
/**
|
|
24
34
|
* Pandora 平台 SDK(管理后台)
|
|
@@ -41,21 +51,37 @@ export declare class PandoraSDK {
|
|
|
41
51
|
storeClerk: PandoraStoreClerkService;
|
|
42
52
|
storeManager: PandoraStoreManagerService;
|
|
43
53
|
user: PandoraUserService;
|
|
54
|
+
userManagement: PandoraUserManagementService;
|
|
55
|
+
pointManagement: PandoraPointManagementService;
|
|
56
|
+
couponManagement: PandoraCouponManagementService;
|
|
57
|
+
addressManagement: PandoraAddressManagementService;
|
|
58
|
+
regionManagement: PandoraRegionManagementService;
|
|
44
59
|
product: PandoraProductService;
|
|
45
60
|
productExp: PandoraProductExpService;
|
|
46
61
|
productLive: PandoraProductLiveService;
|
|
47
62
|
coupon: PandoraCouponService;
|
|
63
|
+
/**
|
|
64
|
+
* Pandora 门店服务模块
|
|
65
|
+
*/
|
|
66
|
+
store: PandoraStoreService;
|
|
67
|
+
pointMall: PandoraPointsMallService;
|
|
68
|
+
/**
|
|
69
|
+
* Pandora 门店用户关系服务模块
|
|
70
|
+
*/
|
|
48
71
|
award: PandoraAwardService;
|
|
49
72
|
/**
|
|
50
73
|
* 直播间模块
|
|
51
74
|
*/
|
|
52
75
|
room: PandoraRoomService;
|
|
76
|
+
orderQuery: PandoraOrderQueryService;
|
|
77
|
+
orderCore: PandoraOrderCoreService;
|
|
78
|
+
task: PandoraTaskService;
|
|
79
|
+
taskWatch: PandoraTaskWatchService;
|
|
80
|
+
pointRule: PandoraPointRuleService;
|
|
53
81
|
/**
|
|
54
82
|
* 加盟商模块
|
|
55
83
|
*/
|
|
56
84
|
franchisee: PandoraFranchiseeService;
|
|
57
|
-
orderQuery: PandoraOrderQueryService;
|
|
58
|
-
orderCore: PandoraOrderCoreService;
|
|
59
85
|
/**
|
|
60
86
|
* 使用配置选项初始化 Pandora SDK
|
|
61
87
|
* @param options - SDK 配置,包含凭证回调函数
|
|
@@ -89,12 +115,13 @@ export declare class MiniProgramSDK {
|
|
|
89
115
|
*/
|
|
90
116
|
constructor(options: SdkOptions);
|
|
91
117
|
}
|
|
92
|
-
export {
|
|
93
|
-
export {
|
|
118
|
+
export { BizError, SdkError, SystemError } from './errors';
|
|
119
|
+
export { IRequestStrategy, SdkOptions, StandardResponse } from './types';
|
|
94
120
|
export * from './enums';
|
|
95
121
|
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
96
122
|
export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
|
|
97
123
|
export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
|
124
|
+
export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
|
|
98
125
|
export { PandoraAuthService as PandoraAuthServiceTypes } from './bff/modules/pandora/auth/types';
|
|
99
126
|
export { PandoraBDService as PandoraBDServiceTypes } from './bff/modules/pandora/bd/types';
|
|
100
127
|
export { PandoraBDMService as PandoraBDMServiceTypes } from './bff/modules/pandora/bdm/types';
|
|
@@ -103,13 +130,18 @@ export { PandoraRoleService as PandoraRoleServiceTypes } from './bff/modules/pan
|
|
|
103
130
|
export { PandoraStoreClerkService as PandoraStoreClerkServiceTypes } from './bff/modules/pandora/storeClerk/types';
|
|
104
131
|
export { PandoraStoreManagerService as PandoraStoreManagerServiceTypes } from './bff/modules/pandora/storeManager/types';
|
|
105
132
|
export { PandoraUserService as PandoraUserServiceTypes } from './bff/modules/pandora/user/types';
|
|
133
|
+
export * from './bff/modules/pandora/userManager/types';
|
|
106
134
|
export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
|
|
107
135
|
export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
|
|
108
136
|
export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
|
|
109
137
|
export { PandoraOrderQueryService as PandoraOrderQueryServiceTypes } from './bff/modules/pandora/orderQuery/types';
|
|
110
138
|
export { PandoraOrderCoreService as PandoraOrderCoreServiceTypes } from './bff/modules/pandora/orderCore/types';
|
|
139
|
+
export { PandoraTaskWatchService as PandoraTaskWatchServiceTypes } from './bff/modules/pandora/taskWatch/types';
|
|
140
|
+
export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
|
|
141
|
+
export { PandoraPointRuleService as PandoraPointRuleServiceTypes } from './bff/modules/pandora/pointRule/types';
|
|
111
142
|
export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
|
|
112
143
|
export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
|
|
144
|
+
export { PointMallService as PointMallServiceTypes } from './bff/modules/pandora/pointsMall/types';
|
|
113
145
|
export { AwardService as PandoraAwardServiceTypes } from './bff/modules/pandora/award/types';
|
|
114
146
|
export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
|
|
115
147
|
export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
|
package/cjs/index.js
CHANGED
|
@@ -14,29 +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.
|
|
18
|
-
const
|
|
19
|
-
const service_1 = require("./bff/modules/pandora/example/service");
|
|
17
|
+
exports.SystemError = exports.SdkError = exports.BizError = exports.MiniProgramSDK = exports.PandoraSDK = void 0;
|
|
18
|
+
const service_1 = require("./bff/modules/pandora/store/service");
|
|
20
19
|
const service_2 = require("./bff/modules/miniprogram/demo/service");
|
|
21
20
|
const service_3 = require("./bff/modules/miniprogram/auth/service");
|
|
22
21
|
const service_4 = require("./bff/modules/pandora/auth/service");
|
|
23
22
|
const service_5 = require("./bff/modules/pandora/bd/service");
|
|
24
23
|
const service_6 = require("./bff/modules/pandora/bdm/service");
|
|
25
24
|
const service_7 = require("./bff/modules/pandora/common/service");
|
|
26
|
-
const service_8 = require("./bff/modules/pandora/
|
|
27
|
-
const service_9 = require("./bff/modules/pandora/
|
|
28
|
-
const service_10 = require("./bff/modules/pandora/
|
|
25
|
+
const service_8 = require("./bff/modules/pandora/productLive/service");
|
|
26
|
+
const service_9 = require("./bff/modules/pandora/role/service");
|
|
27
|
+
const service_10 = require("./bff/modules/pandora/room/service");
|
|
29
28
|
const service_11 = require("./bff/modules/pandora/user/service");
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
29
|
+
const user_service_1 = require("./bff/modules/pandora/userManager/service/user.service");
|
|
30
|
+
const point_service_1 = require("./bff/modules/pandora/userManager/service/point.service");
|
|
31
|
+
const coupon_service_1 = require("./bff/modules/pandora/userManager/service/coupon.service");
|
|
32
|
+
const address_service_1 = require("./bff/modules/pandora/userManager/service/address.service");
|
|
33
|
+
const region_service_1 = require("./bff/modules/pandora/userManager/service/region.service");
|
|
34
|
+
const client_1 = require("./bff/request/client");
|
|
35
|
+
const service_12 = require("./bff/modules/pandora/pointsMall/service");
|
|
36
|
+
const service_13 = require("./bff/modules/pandora/orderQuery/service");
|
|
37
|
+
const service_14 = require("./bff/modules/pandora/orderCore/service");
|
|
38
|
+
const service_15 = require("./bff/modules/pandora/task/service");
|
|
39
|
+
const service_16 = require("./bff/modules/pandora/taskWatch/service");
|
|
40
|
+
const service_17 = require("./bff/modules/pandora/pointRule/service");
|
|
41
|
+
const service_18 = require("./bff/modules/pandora/coupon/service");
|
|
42
|
+
const service_19 = require("./bff/modules/pandora/example/service");
|
|
43
|
+
const service_20 = require("./bff/modules/pandora/product/service");
|
|
44
|
+
const service_21 = require("./bff/modules/pandora/productExp/service");
|
|
45
|
+
const service_22 = require("./bff/modules/pandora/storeClerk/service");
|
|
46
|
+
const service_23 = require("./bff/modules/pandora/storeManager/service");
|
|
47
|
+
const service_24 = require("./bff/modules/pandora/award/service");
|
|
48
|
+
const service_25 = require("./bff/modules/pandora/franchisee/service");
|
|
49
|
+
const service_26 = require("./bff/modules/miniprogram/franchisee/service");
|
|
40
50
|
/**
|
|
41
51
|
* Pandora 平台 SDK(管理后台)
|
|
42
52
|
* 包含所有 Pandora 平台相关的服务
|
|
@@ -50,24 +60,46 @@ class PandoraSDK {
|
|
|
50
60
|
// 使用提供的选项初始化 HttpClient
|
|
51
61
|
this.http = new client_1.HttpClient(options);
|
|
52
62
|
// 使用 HttpClient 实例化所有 Pandora 服务模块
|
|
53
|
-
this.example = new
|
|
63
|
+
this.example = new service_19.PandoraExampleService(this.http);
|
|
54
64
|
this.auth = new service_4.PandoraAuthService(this.http);
|
|
55
65
|
this.bd = new service_5.PandoraBDService(this.http);
|
|
56
66
|
this.bdm = new service_6.PandoraBDMService(this.http);
|
|
57
67
|
this.common = new service_7.PandoraCommonService(this.http);
|
|
58
|
-
this.role = new
|
|
59
|
-
this.storeClerk = new
|
|
60
|
-
this.storeManager = new
|
|
68
|
+
this.role = new service_9.PandoraRoleService(this.http);
|
|
69
|
+
this.storeClerk = new service_22.PandoraStoreClerkService(this.http);
|
|
70
|
+
this.storeManager = new service_23.PandoraStoreManagerService(this.http);
|
|
61
71
|
this.user = new service_11.PandoraUserService(this.http);
|
|
62
|
-
this.product = new
|
|
63
|
-
this.productExp = new
|
|
64
|
-
this.productLive = new
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
72
|
+
this.product = new service_20.PandoraProductService(this.http);
|
|
73
|
+
this.productExp = new service_21.PandoraProductExpService(this.http);
|
|
74
|
+
this.productLive = new service_8.PandoraProductLiveService(this.http);
|
|
75
|
+
this.store = new service_1.PandoraStoreService(this.http);
|
|
76
|
+
this.room = new service_10.PandoraRoomService(this.http);
|
|
77
|
+
this.coupon = new service_18.PandoraCouponService(this.http);
|
|
78
|
+
this.userManagement = new user_service_1.PandoraUserManagementService(this.http);
|
|
79
|
+
this.pointManagement = new point_service_1.PandoraPointManagementService(this.http);
|
|
80
|
+
this.couponManagement = new coupon_service_1.PandoraCouponManagementService(this.http);
|
|
81
|
+
this.addressManagement = new address_service_1.PandoraAddressManagementService(this.http);
|
|
82
|
+
this.regionManagement = new region_service_1.PandoraRegionManagementService(this.http);
|
|
83
|
+
this.pointMall = new service_12.PandoraPointsMallService(this.http);
|
|
84
|
+
this.orderQuery = new service_13.PandoraOrderQueryService(this.http);
|
|
85
|
+
this.orderCore = new service_14.PandoraOrderCoreService(this.http);
|
|
86
|
+
this.task = new service_15.PandoraTaskService(this.http);
|
|
87
|
+
this.taskWatch = new service_16.PandoraTaskWatchService(this.http);
|
|
88
|
+
this.pointRule = new service_17.PandoraPointRuleService(this.http);
|
|
89
|
+
this.award = new service_24.PandoraAwardService(this.http);
|
|
90
|
+
this.franchisee = new service_25.PandoraFranchiseeService(this.http);
|
|
91
|
+
this.userManagement = new user_service_1.PandoraUserManagementService(this.http);
|
|
92
|
+
this.pointManagement = new point_service_1.PandoraPointManagementService(this.http);
|
|
93
|
+
this.couponManagement = new coupon_service_1.PandoraCouponManagementService(this.http);
|
|
94
|
+
this.addressManagement = new address_service_1.PandoraAddressManagementService(this.http);
|
|
95
|
+
this.regionManagement = new region_service_1.PandoraRegionManagementService(this.http);
|
|
96
|
+
this.pointMall = new service_12.PandoraPointsMallService(this.http);
|
|
97
|
+
this.orderQuery = new service_13.PandoraOrderQueryService(this.http);
|
|
98
|
+
this.orderCore = new service_14.PandoraOrderCoreService(this.http);
|
|
99
|
+
this.task = new service_15.PandoraTaskService(this.http);
|
|
100
|
+
this.pointRule = new service_17.PandoraPointRuleService(this.http);
|
|
101
|
+
this.award = new service_24.PandoraAwardService(this.http);
|
|
102
|
+
this.franchisee = new service_25.PandoraFranchiseeService(this.http);
|
|
71
103
|
}
|
|
72
104
|
}
|
|
73
105
|
exports.PandoraSDK = PandoraSDK;
|
|
@@ -86,15 +118,16 @@ class MiniProgramSDK {
|
|
|
86
118
|
// 使用 HttpClient 实例化所有小程序服务模块
|
|
87
119
|
this.demo = new service_2.MiniProgramDemoService(this.http);
|
|
88
120
|
this.auth = new service_3.MiniprogramAuthServiceClass(this.http);
|
|
89
|
-
this.franchisee = new
|
|
121
|
+
this.franchisee = new service_26.MiniprogramFranchiseeService(this.http);
|
|
90
122
|
}
|
|
91
123
|
}
|
|
92
124
|
exports.MiniProgramSDK = MiniProgramSDK;
|
|
93
125
|
// ==================== 导出 ====================
|
|
94
126
|
// 错误类
|
|
95
127
|
var errors_1 = require("./errors");
|
|
96
|
-
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_1.SdkError; } });
|
|
97
128
|
Object.defineProperty(exports, "BizError", { enumerable: true, get: function () { return errors_1.BizError; } });
|
|
129
|
+
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_1.SdkError; } });
|
|
98
130
|
Object.defineProperty(exports, "SystemError", { enumerable: true, get: function () { return errors_1.SystemError; } });
|
|
99
131
|
// 枚举和常量
|
|
100
132
|
__exportStar(require("./enums"), exports);
|
|
133
|
+
__exportStar(require("./bff/modules/pandora/userManager/types"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StandardResponse } from '../../../../types';
|
|
2
|
+
import { PandoraCommonService } from '../../pandora/common/types';
|
|
2
3
|
/**
|
|
3
4
|
* Miniprogram Auth Module Type Definitions
|
|
4
5
|
* 小程序认证模块类型定义
|
|
@@ -48,20 +49,7 @@ export declare namespace MiniprogramAuthService {
|
|
|
48
49
|
* 获取用户菜单权限响应
|
|
49
50
|
*/
|
|
50
51
|
interface getUserMenuPermissions {
|
|
51
|
-
rules:
|
|
52
|
-
id: string;
|
|
53
|
-
name: string;
|
|
54
|
-
path: string;
|
|
55
|
-
isShow: number;
|
|
56
|
-
sort: number;
|
|
57
|
-
pid: string;
|
|
58
|
-
type: string;
|
|
59
|
-
icon: string;
|
|
60
|
-
status: string;
|
|
61
|
-
platform: string;
|
|
62
|
-
background: string;
|
|
63
|
-
ruleKey: string;
|
|
64
|
-
}>;
|
|
52
|
+
rules: PandoraCommonService.Response.RuleNode[];
|
|
65
53
|
}
|
|
66
54
|
/**
|
|
67
55
|
* 获取微信UnionId响应
|
|
@@ -78,6 +66,7 @@ export declare namespace MiniprogramAuthService {
|
|
|
78
66
|
code: 0 | 1;
|
|
79
67
|
msg: string;
|
|
80
68
|
token: string;
|
|
69
|
+
userId: string;
|
|
81
70
|
roles: RoleItem[];
|
|
82
71
|
}
|
|
83
72
|
type getBindPhone = string;
|
|
@@ -88,6 +77,7 @@ export declare namespace MiniprogramAuthService {
|
|
|
88
77
|
code: 0;
|
|
89
78
|
msg: string;
|
|
90
79
|
token: string;
|
|
80
|
+
userId: string;
|
|
91
81
|
roles: RoleItem[];
|
|
92
82
|
}
|
|
93
83
|
/**
|
|
@@ -96,6 +86,7 @@ export declare namespace MiniprogramAuthService {
|
|
|
96
86
|
interface accountLogin {
|
|
97
87
|
code: 0;
|
|
98
88
|
msg: string;
|
|
89
|
+
userId: string;
|
|
99
90
|
token: string;
|
|
100
91
|
roles: RoleItem[];
|
|
101
92
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StandardResponse } from '../../../../types';
|
|
2
|
+
import { PandoraCommonService } from '../common/types';
|
|
2
3
|
export declare namespace PandoraAuthService {
|
|
3
4
|
interface RoleItem {
|
|
4
5
|
id: string;
|
|
@@ -24,8 +25,6 @@ export declare namespace PandoraAuthService {
|
|
|
24
25
|
* 获取用户菜单权限
|
|
25
26
|
*/
|
|
26
27
|
interface getUserMenuPermissions {
|
|
27
|
-
id: string;
|
|
28
|
-
roleId: string;
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
namespace Response {
|
|
@@ -33,6 +32,7 @@ export declare namespace PandoraAuthService {
|
|
|
33
32
|
* 登录响应
|
|
34
33
|
*/
|
|
35
34
|
interface login {
|
|
35
|
+
userId: string;
|
|
36
36
|
token: string;
|
|
37
37
|
roles: RoleItem[];
|
|
38
38
|
}
|
|
@@ -58,20 +58,7 @@ export declare namespace PandoraAuthService {
|
|
|
58
58
|
* 获取用户菜单权限响应
|
|
59
59
|
*/
|
|
60
60
|
interface getUserMenuPermissions {
|
|
61
|
-
rules:
|
|
62
|
-
id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
path: string;
|
|
65
|
-
isShow: number;
|
|
66
|
-
sort: number;
|
|
67
|
-
pid: string;
|
|
68
|
-
type: string;
|
|
69
|
-
icon: string;
|
|
70
|
-
status: string;
|
|
71
|
-
platform: string;
|
|
72
|
-
background: string;
|
|
73
|
-
ruleKey: string;
|
|
74
|
-
}>;
|
|
61
|
+
rules: PandoraCommonService.Response.RuleNode[];
|
|
75
62
|
}
|
|
76
63
|
}
|
|
77
64
|
/**
|
|
@@ -9,11 +9,17 @@ import type { StandardResponse } from '../../../../types';
|
|
|
9
9
|
export declare class PandoraOrderCoreService extends BaseService implements Service.OrderCoreController {
|
|
10
10
|
protected prefixUrl: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* 单个订单发货
|
|
13
13
|
* @param request - 请求参数
|
|
14
14
|
* @returns Promise,解析为标准响应格式
|
|
15
15
|
*/
|
|
16
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>>;
|
|
17
23
|
/**
|
|
18
24
|
* 更新订单地址
|
|
19
25
|
* @param request - 请求参数
|
|
@@ -10,13 +10,21 @@ export class PandoraOrderCoreService extends BaseService {
|
|
|
10
10
|
this.prefixUrl = '/pandora/order-core';
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* 单个订单发货
|
|
14
14
|
* @param request - 请求参数
|
|
15
15
|
* @returns Promise,解析为标准响应格式
|
|
16
16
|
*/
|
|
17
17
|
shipOrder(request) {
|
|
18
18
|
return this.request(this.shipOrder, request);
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* 批量订单发货
|
|
22
|
+
* @param request - 请求参数
|
|
23
|
+
* @returns Promise,解析为标准响应格式
|
|
24
|
+
*/
|
|
25
|
+
batchShipOrder(request) {
|
|
26
|
+
return this.request(this.batchShipOrder, request);
|
|
27
|
+
}
|
|
20
28
|
/**
|
|
21
29
|
* 更新订单地址
|
|
22
30
|
* @param request - 请求参数
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import type { POS } from '@be-link/ecommerce-trade-service-node-sdk';
|
|
2
|
+
import { StandardResponse } from '../../../../types';
|
|
2
3
|
export declare namespace PandoraOrderCoreService {
|
|
3
4
|
namespace Request {
|
|
4
5
|
type shipOrder = POS.PosOrderCoreTypes.ByWeb.Request.IShipOrder;
|
|
6
|
+
type batchShipOrder = POS.PosOrderCoreTypes.ByWeb.Request.IBatchShipOrder;
|
|
5
7
|
type updateOrderAddress = POS.PosOrderCoreTypes.ByWeb.Request.IUpdateOrderAddress;
|
|
6
8
|
}
|
|
7
9
|
namespace Response {
|
|
8
10
|
type shipOrder = POS.PosOrderCoreTypes.ByWeb.Response.IShipOrder;
|
|
11
|
+
type batchShipOrder = POS.PosOrderCoreTypes.ByWeb.Response.IBatchShipOrder;
|
|
9
12
|
type updateOrderAddress = POS.PosOrderCoreTypes.ByWeb.Response.IUpdateOrderAddress;
|
|
10
13
|
}
|
|
11
14
|
interface OrderCoreController {
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
/** 单个订单发货 */
|
|
16
|
+
shipOrder(request: Request.shipOrder): Promise<StandardResponse<Response.shipOrder>>;
|
|
17
|
+
/** 更新订单地址 */
|
|
18
|
+
updateOrderAddress(request: Request.updateOrderAddress): Promise<StandardResponse<Response.updateOrderAddress>>;
|
|
14
19
|
}
|
|
15
20
|
}
|
|
@@ -26,10 +26,4 @@ export declare class PandoraOrderQueryService extends BaseService implements Ser
|
|
|
26
26
|
* @returns Promise,解析为标准响应格式
|
|
27
27
|
*/
|
|
28
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
29
|
}
|