@be-link/ecommerce-backend-bff-service-node-sdk 0.1.10 → 0.1.12
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/user/service.d.ts +16 -0
- package/cjs/bff/modules/miniprogram/user/service.js +26 -0
- package/cjs/bff/modules/miniprogram/user/types.d.ts +44 -0
- package/cjs/bff/modules/miniprogram/user/types.js +2 -0
- package/cjs/index.d.ts +6 -0
- package/cjs/index.js +55 -53
- package/esm/bff/modules/miniprogram/user/service.d.ts +16 -0
- package/esm/bff/modules/miniprogram/user/service.mjs +19 -0
- package/esm/bff/modules/miniprogram/user/types.d.ts +44 -0
- package/esm/bff/modules/miniprogram/user/types.mjs +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.mjs +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MiniprogramUserService as Service } from './types';
|
|
2
|
+
import BaseService from '../../BaseService';
|
|
3
|
+
import type { StandardResponse } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* MiniprogramUserService - 小程序用户服务模块
|
|
6
|
+
* 提供小程序用户相关的 API 方法
|
|
7
|
+
* 平台: miniprogram
|
|
8
|
+
*/
|
|
9
|
+
export declare class MiniprogramUserServiceClass extends BaseService implements Service.UserController {
|
|
10
|
+
protected prefixUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* 根据角色获取用户信息
|
|
13
|
+
* @returns Promise,解析为标准响应格式
|
|
14
|
+
*/
|
|
15
|
+
getUserInfoByRole(): Promise<StandardResponse<Service.Response.getUserInfoByRole>>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MiniprogramUserServiceClass = void 0;
|
|
7
|
+
const BaseService_1 = __importDefault(require("../../BaseService"));
|
|
8
|
+
/**
|
|
9
|
+
* MiniprogramUserService - 小程序用户服务模块
|
|
10
|
+
* 提供小程序用户相关的 API 方法
|
|
11
|
+
* 平台: miniprogram
|
|
12
|
+
*/
|
|
13
|
+
class MiniprogramUserServiceClass extends BaseService_1.default {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.prefixUrl = '/miniprogram/user';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 根据角色获取用户信息
|
|
20
|
+
* @returns Promise,解析为标准响应格式
|
|
21
|
+
*/
|
|
22
|
+
getUserInfoByRole() {
|
|
23
|
+
return this.request(this.getUserInfoByRole, {});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.MiniprogramUserServiceClass = MiniprogramUserServiceClass;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Miniprogram User Module Type Definitions
|
|
4
|
+
* 小程序用户模块类型定义
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace MiniprogramUserService {
|
|
7
|
+
namespace Request {
|
|
8
|
+
}
|
|
9
|
+
namespace Response {
|
|
10
|
+
/**
|
|
11
|
+
* 根据角色获取用户信息响应(从请求上下文获取 userId 和 roleId)
|
|
12
|
+
*/
|
|
13
|
+
interface getUserInfoByRole {
|
|
14
|
+
id: string;
|
|
15
|
+
username: string;
|
|
16
|
+
phone: string;
|
|
17
|
+
status: string;
|
|
18
|
+
hasAllStore: boolean;
|
|
19
|
+
hasAllWarehouse: boolean;
|
|
20
|
+
stores?: Array<{
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
}>;
|
|
24
|
+
roles?: Array<{
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}>;
|
|
28
|
+
warehouses?: Array<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Miniprogram User Controller 接口定义
|
|
36
|
+
* 由 packages/server/src/api/controller/miniprogram/user.ts 实现
|
|
37
|
+
*/
|
|
38
|
+
interface UserController {
|
|
39
|
+
/**
|
|
40
|
+
* 根据角色获取用户信息
|
|
41
|
+
*/
|
|
42
|
+
getUserInfoByRole(): Promise<StandardResponse<Response.getUserInfoByRole>>;
|
|
43
|
+
}
|
|
44
|
+
}
|
package/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
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
|
+
import { MiniprogramUserServiceClass } from './bff/modules/miniprogram/user/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';
|
|
@@ -105,6 +106,10 @@ export declare class MiniProgramSDK {
|
|
|
105
106
|
* 小程序认证服务模块
|
|
106
107
|
*/
|
|
107
108
|
auth: MiniprogramAuthServiceClass;
|
|
109
|
+
/**
|
|
110
|
+
* 小程序用户服务模块
|
|
111
|
+
*/
|
|
112
|
+
user: MiniprogramUserServiceClass;
|
|
108
113
|
/**
|
|
109
114
|
* 加盟商模块
|
|
110
115
|
*/
|
|
@@ -120,6 +125,7 @@ export { IRequestStrategy, SdkOptions, StandardResponse } from './types';
|
|
|
120
125
|
export * from './enums';
|
|
121
126
|
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
122
127
|
export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
|
|
128
|
+
export { MiniprogramUserService as MiniprogramUserServiceTypes } from './bff/modules/miniprogram/user/types';
|
|
123
129
|
export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
|
124
130
|
export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
|
|
125
131
|
export { PandoraAuthService as PandoraAuthServiceTypes } from './bff/modules/pandora/auth/types';
|
package/cjs/index.js
CHANGED
|
@@ -18,35 +18,36 @@ exports.SystemError = exports.SdkError = exports.BizError = exports.MiniProgramS
|
|
|
18
18
|
const service_1 = require("./bff/modules/pandora/store/service");
|
|
19
19
|
const service_2 = require("./bff/modules/miniprogram/demo/service");
|
|
20
20
|
const service_3 = require("./bff/modules/miniprogram/auth/service");
|
|
21
|
-
const service_4 = require("./bff/modules/
|
|
22
|
-
const service_5 = require("./bff/modules/pandora/
|
|
23
|
-
const service_6 = require("./bff/modules/pandora/
|
|
24
|
-
const service_7 = require("./bff/modules/pandora/
|
|
25
|
-
const service_8 = require("./bff/modules/pandora/
|
|
26
|
-
const service_9 = require("./bff/modules/pandora/
|
|
27
|
-
const service_10 = require("./bff/modules/pandora/
|
|
28
|
-
const service_11 = require("./bff/modules/pandora/
|
|
21
|
+
const service_4 = require("./bff/modules/miniprogram/user/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/productLive/service");
|
|
27
|
+
const service_10 = require("./bff/modules/pandora/role/service");
|
|
28
|
+
const service_11 = require("./bff/modules/pandora/room/service");
|
|
29
|
+
const service_12 = require("./bff/modules/pandora/user/service");
|
|
29
30
|
const user_service_1 = require("./bff/modules/pandora/userManager/service/user.service");
|
|
30
31
|
const point_service_1 = require("./bff/modules/pandora/userManager/service/point.service");
|
|
31
32
|
const coupon_service_1 = require("./bff/modules/pandora/userManager/service/coupon.service");
|
|
32
33
|
const address_service_1 = require("./bff/modules/pandora/userManager/service/address.service");
|
|
33
34
|
const region_service_1 = require("./bff/modules/pandora/userManager/service/region.service");
|
|
34
35
|
const client_1 = require("./bff/request/client");
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
36
|
+
const service_13 = require("./bff/modules/pandora/pointsMall/service");
|
|
37
|
+
const service_14 = require("./bff/modules/pandora/orderQuery/service");
|
|
38
|
+
const service_15 = require("./bff/modules/pandora/orderCore/service");
|
|
39
|
+
const service_16 = require("./bff/modules/pandora/task/service");
|
|
40
|
+
const service_17 = require("./bff/modules/pandora/taskWatch/service");
|
|
41
|
+
const service_18 = require("./bff/modules/pandora/pointRule/service");
|
|
42
|
+
const service_19 = require("./bff/modules/pandora/coupon/service");
|
|
43
|
+
const service_20 = require("./bff/modules/pandora/example/service");
|
|
44
|
+
const service_21 = require("./bff/modules/pandora/product/service");
|
|
45
|
+
const service_22 = require("./bff/modules/pandora/productExp/service");
|
|
46
|
+
const service_23 = require("./bff/modules/pandora/storeClerk/service");
|
|
47
|
+
const service_24 = require("./bff/modules/pandora/storeManager/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");
|
|
50
51
|
/**
|
|
51
52
|
* Pandora 平台 SDK(管理后台)
|
|
52
53
|
* 包含所有 Pandora 平台相关的服务
|
|
@@ -60,46 +61,46 @@ class PandoraSDK {
|
|
|
60
61
|
// 使用提供的选项初始化 HttpClient
|
|
61
62
|
this.http = new client_1.HttpClient(options);
|
|
62
63
|
// 使用 HttpClient 实例化所有 Pandora 服务模块
|
|
63
|
-
this.example = new
|
|
64
|
-
this.auth = new
|
|
65
|
-
this.bd = new
|
|
66
|
-
this.bdm = new
|
|
67
|
-
this.common = new
|
|
68
|
-
this.role = new
|
|
69
|
-
this.storeClerk = new
|
|
70
|
-
this.storeManager = new
|
|
71
|
-
this.user = new
|
|
72
|
-
this.product = new
|
|
73
|
-
this.productExp = new
|
|
74
|
-
this.productLive = new
|
|
64
|
+
this.example = new service_20.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_10.PandoraRoleService(this.http);
|
|
70
|
+
this.storeClerk = new service_23.PandoraStoreClerkService(this.http);
|
|
71
|
+
this.storeManager = new service_24.PandoraStoreManagerService(this.http);
|
|
72
|
+
this.user = new service_12.PandoraUserService(this.http);
|
|
73
|
+
this.product = new service_21.PandoraProductService(this.http);
|
|
74
|
+
this.productExp = new service_22.PandoraProductExpService(this.http);
|
|
75
|
+
this.productLive = new service_9.PandoraProductLiveService(this.http);
|
|
75
76
|
this.store = new service_1.PandoraStoreService(this.http);
|
|
76
|
-
this.room = new
|
|
77
|
-
this.coupon = new
|
|
77
|
+
this.room = new service_11.PandoraRoomService(this.http);
|
|
78
|
+
this.coupon = new service_19.PandoraCouponService(this.http);
|
|
78
79
|
this.userManagement = new user_service_1.PandoraUserManagementService(this.http);
|
|
79
80
|
this.pointManagement = new point_service_1.PandoraPointManagementService(this.http);
|
|
80
81
|
this.couponManagement = new coupon_service_1.PandoraCouponManagementService(this.http);
|
|
81
82
|
this.addressManagement = new address_service_1.PandoraAddressManagementService(this.http);
|
|
82
83
|
this.regionManagement = new region_service_1.PandoraRegionManagementService(this.http);
|
|
83
|
-
this.pointMall = new
|
|
84
|
-
this.orderQuery = new
|
|
85
|
-
this.orderCore = new
|
|
86
|
-
this.task = new
|
|
87
|
-
this.taskWatch = new
|
|
88
|
-
this.pointRule = new
|
|
89
|
-
this.award = new
|
|
90
|
-
this.franchisee = new
|
|
84
|
+
this.pointMall = new service_13.PandoraPointsMallService(this.http);
|
|
85
|
+
this.orderQuery = new service_14.PandoraOrderQueryService(this.http);
|
|
86
|
+
this.orderCore = new service_15.PandoraOrderCoreService(this.http);
|
|
87
|
+
this.task = new service_16.PandoraTaskService(this.http);
|
|
88
|
+
this.taskWatch = new service_17.PandoraTaskWatchService(this.http);
|
|
89
|
+
this.pointRule = new service_18.PandoraPointRuleService(this.http);
|
|
90
|
+
this.award = new service_25.PandoraAwardService(this.http);
|
|
91
|
+
this.franchisee = new service_26.PandoraFranchiseeService(this.http);
|
|
91
92
|
this.userManagement = new user_service_1.PandoraUserManagementService(this.http);
|
|
92
93
|
this.pointManagement = new point_service_1.PandoraPointManagementService(this.http);
|
|
93
94
|
this.couponManagement = new coupon_service_1.PandoraCouponManagementService(this.http);
|
|
94
95
|
this.addressManagement = new address_service_1.PandoraAddressManagementService(this.http);
|
|
95
96
|
this.regionManagement = new region_service_1.PandoraRegionManagementService(this.http);
|
|
96
|
-
this.pointMall = new
|
|
97
|
-
this.orderQuery = new
|
|
98
|
-
this.orderCore = new
|
|
99
|
-
this.task = new
|
|
100
|
-
this.pointRule = new
|
|
101
|
-
this.award = new
|
|
102
|
-
this.franchisee = new
|
|
97
|
+
this.pointMall = new service_13.PandoraPointsMallService(this.http);
|
|
98
|
+
this.orderQuery = new service_14.PandoraOrderQueryService(this.http);
|
|
99
|
+
this.orderCore = new service_15.PandoraOrderCoreService(this.http);
|
|
100
|
+
this.task = new service_16.PandoraTaskService(this.http);
|
|
101
|
+
this.pointRule = new service_18.PandoraPointRuleService(this.http);
|
|
102
|
+
this.award = new service_25.PandoraAwardService(this.http);
|
|
103
|
+
this.franchisee = new service_26.PandoraFranchiseeService(this.http);
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
106
|
exports.PandoraSDK = PandoraSDK;
|
|
@@ -118,7 +119,8 @@ class MiniProgramSDK {
|
|
|
118
119
|
// 使用 HttpClient 实例化所有小程序服务模块
|
|
119
120
|
this.demo = new service_2.MiniProgramDemoService(this.http);
|
|
120
121
|
this.auth = new service_3.MiniprogramAuthServiceClass(this.http);
|
|
121
|
-
this.
|
|
122
|
+
this.user = new service_4.MiniprogramUserServiceClass(this.http);
|
|
123
|
+
this.franchisee = new service_27.MiniprogramFranchiseeService(this.http);
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
126
|
exports.MiniProgramSDK = MiniProgramSDK;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MiniprogramUserService as Service } from './types';
|
|
2
|
+
import BaseService from '../../BaseService';
|
|
3
|
+
import type { StandardResponse } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* MiniprogramUserService - 小程序用户服务模块
|
|
6
|
+
* 提供小程序用户相关的 API 方法
|
|
7
|
+
* 平台: miniprogram
|
|
8
|
+
*/
|
|
9
|
+
export declare class MiniprogramUserServiceClass extends BaseService implements Service.UserController {
|
|
10
|
+
protected prefixUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* 根据角色获取用户信息
|
|
13
|
+
* @returns Promise,解析为标准响应格式
|
|
14
|
+
*/
|
|
15
|
+
getUserInfoByRole(): Promise<StandardResponse<Service.Response.getUserInfoByRole>>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import BaseService from '../../BaseService.mjs';
|
|
2
|
+
/**
|
|
3
|
+
* MiniprogramUserService - 小程序用户服务模块
|
|
4
|
+
* 提供小程序用户相关的 API 方法
|
|
5
|
+
* 平台: miniprogram
|
|
6
|
+
*/
|
|
7
|
+
export class MiniprogramUserServiceClass extends BaseService {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.prefixUrl = '/miniprogram/user';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 根据角色获取用户信息
|
|
14
|
+
* @returns Promise,解析为标准响应格式
|
|
15
|
+
*/
|
|
16
|
+
getUserInfoByRole() {
|
|
17
|
+
return this.request(this.getUserInfoByRole, {});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Miniprogram User Module Type Definitions
|
|
4
|
+
* 小程序用户模块类型定义
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace MiniprogramUserService {
|
|
7
|
+
namespace Request {
|
|
8
|
+
}
|
|
9
|
+
namespace Response {
|
|
10
|
+
/**
|
|
11
|
+
* 根据角色获取用户信息响应(从请求上下文获取 userId 和 roleId)
|
|
12
|
+
*/
|
|
13
|
+
interface getUserInfoByRole {
|
|
14
|
+
id: string;
|
|
15
|
+
username: string;
|
|
16
|
+
phone: string;
|
|
17
|
+
status: string;
|
|
18
|
+
hasAllStore: boolean;
|
|
19
|
+
hasAllWarehouse: boolean;
|
|
20
|
+
stores?: Array<{
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
}>;
|
|
24
|
+
roles?: Array<{
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}>;
|
|
28
|
+
warehouses?: Array<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Miniprogram User Controller 接口定义
|
|
36
|
+
* 由 packages/server/src/api/controller/miniprogram/user.ts 实现
|
|
37
|
+
*/
|
|
38
|
+
interface UserController {
|
|
39
|
+
/**
|
|
40
|
+
* 根据角色获取用户信息
|
|
41
|
+
*/
|
|
42
|
+
getUserInfoByRole(): Promise<StandardResponse<Response.getUserInfoByRole>>;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
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
|
+
import { MiniprogramUserServiceClass } from './bff/modules/miniprogram/user/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';
|
|
@@ -105,6 +106,10 @@ export declare class MiniProgramSDK {
|
|
|
105
106
|
* 小程序认证服务模块
|
|
106
107
|
*/
|
|
107
108
|
auth: MiniprogramAuthServiceClass;
|
|
109
|
+
/**
|
|
110
|
+
* 小程序用户服务模块
|
|
111
|
+
*/
|
|
112
|
+
user: MiniprogramUserServiceClass;
|
|
108
113
|
/**
|
|
109
114
|
* 加盟商模块
|
|
110
115
|
*/
|
|
@@ -120,6 +125,7 @@ export { IRequestStrategy, SdkOptions, StandardResponse } from './types';
|
|
|
120
125
|
export * from './enums';
|
|
121
126
|
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
122
127
|
export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
|
|
128
|
+
export { MiniprogramUserService as MiniprogramUserServiceTypes } from './bff/modules/miniprogram/user/types';
|
|
123
129
|
export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
|
124
130
|
export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
|
|
125
131
|
export { PandoraAuthService as PandoraAuthServiceTypes } from './bff/modules/pandora/auth/types';
|
package/esm/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PandoraStoreService } from './bff/modules/pandora/store/service.mjs';
|
|
2
2
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service.mjs';
|
|
3
3
|
import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service.mjs';
|
|
4
|
+
import { MiniprogramUserServiceClass } from './bff/modules/miniprogram/user/service.mjs';
|
|
4
5
|
import { PandoraAuthService } from './bff/modules/pandora/auth/service.mjs';
|
|
5
6
|
import { PandoraBDService } from './bff/modules/pandora/bd/service.mjs';
|
|
6
7
|
import { PandoraBDMService } from './bff/modules/pandora/bdm/service.mjs';
|
|
@@ -100,6 +101,7 @@ export class MiniProgramSDK {
|
|
|
100
101
|
// 使用 HttpClient 实例化所有小程序服务模块
|
|
101
102
|
this.demo = new MiniProgramDemoService(this.http);
|
|
102
103
|
this.auth = new MiniprogramAuthServiceClass(this.http);
|
|
104
|
+
this.user = new MiniprogramUserServiceClass(this.http);
|
|
103
105
|
this.franchisee = new MiniprogramFranchiseeService(this.http);
|
|
104
106
|
}
|
|
105
107
|
}
|