@be-link/ecommerce-backend-bff-service-node-sdk 0.0.94 → 0.0.95

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.
Files changed (41) hide show
  1. package/cjs/bff/modules/miniprogram/auth/service.d.ts +46 -0
  2. package/cjs/bff/modules/miniprogram/auth/service.js +66 -0
  3. package/cjs/bff/modules/miniprogram/auth/types.d.ts +133 -0
  4. package/cjs/bff/modules/miniprogram/auth/types.js +2 -0
  5. package/cjs/bff/modules/miniprogram/franchisee/service.d.ts +12 -0
  6. package/cjs/bff/modules/miniprogram/franchisee/service.js +22 -0
  7. package/cjs/bff/modules/miniprogram/franchisee/types.d.ts +25 -0
  8. package/cjs/bff/modules/miniprogram/franchisee/types.js +2 -0
  9. package/cjs/bff/modules/pandora/auth/service.d.ts +6 -0
  10. package/cjs/bff/modules/pandora/auth/service.js +8 -0
  11. package/cjs/bff/modules/pandora/auth/types.d.ts +30 -0
  12. package/cjs/bff/modules/pandora/franchisee/service.d.ts +19 -0
  13. package/cjs/bff/modules/pandora/franchisee/service.js +43 -0
  14. package/cjs/bff/modules/pandora/franchisee/types.d.ts +204 -0
  15. package/cjs/bff/modules/pandora/franchisee/types.js +2 -0
  16. package/cjs/bff/modules/pandora/user/service.d.ts +0 -1
  17. package/cjs/bff/modules/pandora/user/service.js +0 -3
  18. package/cjs/bff/modules/pandora/user/types.d.ts +0 -27
  19. package/cjs/index.d.ts +18 -0
  20. package/cjs/index.js +42 -36
  21. package/esm/bff/modules/miniprogram/auth/service.d.ts +46 -0
  22. package/esm/bff/modules/miniprogram/auth/service.mjs +59 -0
  23. package/esm/bff/modules/miniprogram/auth/types.d.ts +133 -0
  24. package/esm/bff/modules/miniprogram/auth/types.mjs +1 -0
  25. package/esm/bff/modules/miniprogram/franchisee/service.d.ts +12 -0
  26. package/esm/bff/modules/miniprogram/franchisee/service.mjs +15 -0
  27. package/esm/bff/modules/miniprogram/franchisee/types.d.ts +25 -0
  28. package/esm/bff/modules/miniprogram/franchisee/types.mjs +1 -0
  29. package/esm/bff/modules/pandora/auth/service.d.ts +6 -0
  30. package/esm/bff/modules/pandora/auth/service.mjs +8 -0
  31. package/esm/bff/modules/pandora/auth/types.d.ts +30 -0
  32. package/esm/bff/modules/pandora/franchisee/service.d.ts +19 -0
  33. package/esm/bff/modules/pandora/franchisee/service.mjs +36 -0
  34. package/esm/bff/modules/pandora/franchisee/types.d.ts +204 -0
  35. package/esm/bff/modules/pandora/franchisee/types.mjs +1 -0
  36. package/esm/bff/modules/pandora/user/service.d.ts +0 -1
  37. package/esm/bff/modules/pandora/user/service.mjs +0 -3
  38. package/esm/bff/modules/pandora/user/types.d.ts +0 -27
  39. package/esm/index.d.ts +18 -0
  40. package/esm/index.mjs +6 -0
  41. package/package.json +3 -3
@@ -46,13 +46,6 @@ export declare namespace PandoraUserService {
46
46
  interface getUserInfo {
47
47
  id: string;
48
48
  }
49
- /**
50
- * 获取用户菜单权限
51
- */
52
- interface getUserMenuPermissions {
53
- id: string;
54
- roleId: string;
55
- }
56
49
  /**
57
50
  * 获取用户角色权限(用于用户管理页面编辑权限回显)
58
51
  */
@@ -129,25 +122,6 @@ export declare namespace PandoraUserService {
129
122
  createdAt: number;
130
123
  updatedAt: number;
131
124
  }
132
- /**
133
- * 获取用户菜单权限响应
134
- */
135
- interface getUserMenuPermissions {
136
- rules: Array<{
137
- id: string;
138
- name: string;
139
- path: string;
140
- isShow: number;
141
- sort: number;
142
- pid: string;
143
- type: string;
144
- icon: string;
145
- status: string;
146
- platform: string;
147
- background: string;
148
- ruleKey: string;
149
- }>;
150
- }
151
125
  /**
152
126
  * 根据角色获取用户信息响应(从请求上下文获取 userId 和 roleId)
153
127
  */
@@ -197,7 +171,6 @@ export declare namespace PandoraUserService {
197
171
  deleteAccount(request: Request.deleteAccount): Promise<StandardResponse<Response.deleteAccount>>;
198
172
  listAccounts(request: Request.accountList): Promise<StandardResponse<Response.accountList>>;
199
173
  getUserInfo(request: Request.getUserInfo): Promise<StandardResponse<Response.getUserInfo>>;
200
- getUserMenuPermissions(request: Request.getUserMenuPermissions): Promise<StandardResponse<Response.getUserMenuPermissions>>;
201
174
  getUserInfoByRole(): Promise<StandardResponse<Response.getUserInfoByRole>>;
202
175
  getUserRolePermissions(request: Request.getUserRolePermissions): Promise<StandardResponse<Response.getUserRolePermissions>>;
203
176
  getStoreOptions(request: Request.getStoreOptions): Promise<StandardResponse<Response.getStoreOptions>>;
package/cjs/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { PandoraExampleService } from './bff/modules/pandora/example/service';
2
2
  import { PandoraStoreService } from './bff/modules/pandora/store/service';
3
3
  import { PandoraStoreUserRelationService } from './bff/modules/pandora/storeUserRelation/service';
4
4
  import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
5
+ import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service';
5
6
  import { PandoraAuthService } from './bff/modules/pandora/auth/service';
6
7
  import { PandoraBDService } from './bff/modules/pandora/bd/service';
7
8
  import { PandoraBDMService } from './bff/modules/pandora/bdm/service';
@@ -20,6 +21,8 @@ import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/servi
20
21
  import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
21
22
  import { PandoraTaskService } from './bff/modules/pandora/task/service';
22
23
  import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service';
24
+ import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
25
+ import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
23
26
  import { SdkOptions } from './types';
24
27
  /**
25
28
  * Pandora 平台 SDK(管理后台)
@@ -63,6 +66,10 @@ export declare class PandoraSDK {
63
66
  orderCore: PandoraOrderCoreService;
64
67
  task: PandoraTaskService;
65
68
  pointRule: PandoraPointRuleService;
69
+ /**
70
+ * 加盟商模块
71
+ */
72
+ franchisee: PandoraFranchiseeService;
66
73
  /**
67
74
  * 使用配置选项初始化 Pandora SDK
68
75
  * @param options - SDK 配置,包含凭证回调函数
@@ -82,6 +89,14 @@ export declare class MiniProgramSDK {
82
89
  * 小程序 Demo 服务模块
83
90
  */
84
91
  demo: MiniProgramDemoService;
92
+ /**
93
+ * 小程序认证服务模块
94
+ */
95
+ auth: MiniprogramAuthServiceClass;
96
+ /**
97
+ * 加盟商模块
98
+ */
99
+ franchisee: MiniprogramFranchiseeService;
85
100
  /**
86
101
  * 使用配置选项初始化小程序 SDK
87
102
  * @param options - SDK 配置,包含凭证回调函数
@@ -92,6 +107,7 @@ export { SdkError, BizError, SystemError } from './errors';
92
107
  export { SdkOptions, IRequestStrategy, StandardResponse } from './types';
93
108
  export * from './enums';
94
109
  export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
110
+ export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
95
111
  export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
96
112
  export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
97
113
  export { StoreUserRelationService as PandoraStoreUserRelationServiceTypes } from './bff/modules/pandora/storeUserRelation/types';
@@ -113,3 +129,5 @@ export { PandoraPointRuleService as PandoraPointRuleServiceTypes } from './bff/m
113
129
  export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
114
130
  export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
115
131
  export { PointMallService as PointMallServiceTypes } from './bff/modules/pandora/pointsMall/types';
132
+ export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
133
+ export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
package/cjs/index.js CHANGED
@@ -20,24 +20,27 @@ const service_1 = require("./bff/modules/pandora/example/service");
20
20
  const service_2 = require("./bff/modules/pandora/store/service");
21
21
  const service_3 = require("./bff/modules/pandora/storeUserRelation/service");
22
22
  const service_4 = require("./bff/modules/miniprogram/demo/service");
23
- const service_5 = require("./bff/modules/pandora/auth/service");
24
- const service_6 = require("./bff/modules/pandora/bd/service");
25
- const service_7 = require("./bff/modules/pandora/bdm/service");
26
- const service_8 = require("./bff/modules/pandora/common/service");
27
- const service_9 = require("./bff/modules/pandora/role/service");
28
- const service_10 = require("./bff/modules/pandora/storeClerk/service");
29
- const service_11 = require("./bff/modules/pandora/storeManager/service");
30
- const service_12 = require("./bff/modules/pandora/user/service");
31
- const service_13 = require("./bff/modules/pandora/product/service");
32
- const service_14 = require("./bff/modules/pandora/productExp/service");
33
- const service_15 = require("./bff/modules/pandora/productLive/service");
34
- const service_16 = require("./bff/modules/pandora/coupon/service");
35
- const service_17 = require("./bff/modules/pandora/room/service");
36
- const service_18 = require("./bff/modules/pandora/pointsMall/service");
37
- const service_19 = require("./bff/modules/pandora/orderQuery/service");
38
- const service_20 = require("./bff/modules/pandora/orderCore/service");
39
- const service_21 = require("./bff/modules/pandora/task/service");
40
- const service_22 = require("./bff/modules/pandora/pointRule/service");
23
+ const service_5 = require("./bff/modules/miniprogram/auth/service");
24
+ const service_6 = require("./bff/modules/pandora/auth/service");
25
+ const service_7 = require("./bff/modules/pandora/bd/service");
26
+ const service_8 = require("./bff/modules/pandora/bdm/service");
27
+ const service_9 = require("./bff/modules/pandora/common/service");
28
+ const service_10 = require("./bff/modules/pandora/role/service");
29
+ const service_11 = require("./bff/modules/pandora/storeClerk/service");
30
+ const service_12 = require("./bff/modules/pandora/storeManager/service");
31
+ const service_13 = require("./bff/modules/pandora/user/service");
32
+ const service_14 = require("./bff/modules/pandora/product/service");
33
+ const service_15 = require("./bff/modules/pandora/productExp/service");
34
+ const service_16 = require("./bff/modules/pandora/productLive/service");
35
+ const service_17 = require("./bff/modules/pandora/coupon/service");
36
+ const service_18 = require("./bff/modules/pandora/room/service");
37
+ const service_19 = require("./bff/modules/pandora/pointsMall/service");
38
+ const service_20 = require("./bff/modules/pandora/orderQuery/service");
39
+ const service_21 = require("./bff/modules/pandora/orderCore/service");
40
+ const service_22 = require("./bff/modules/pandora/task/service");
41
+ const service_23 = require("./bff/modules/pandora/pointRule/service");
42
+ const service_24 = require("./bff/modules/pandora/franchisee/service");
43
+ const service_25 = require("./bff/modules/miniprogram/franchisee/service");
41
44
  /**
42
45
  * Pandora 平台 SDK(管理后台)
43
46
  * 包含所有 Pandora 平台相关的服务
@@ -52,26 +55,27 @@ class PandoraSDK {
52
55
  this.http = new client_1.HttpClient(options);
53
56
  // 使用 HttpClient 实例化所有 Pandora 服务模块
54
57
  this.example = new service_1.PandoraExampleService(this.http);
55
- this.auth = new service_5.PandoraAuthService(this.http);
56
- this.bd = new service_6.PandoraBDService(this.http);
57
- this.bdm = new service_7.PandoraBDMService(this.http);
58
- this.common = new service_8.PandoraCommonService(this.http);
59
- this.role = new service_9.PandoraRoleService(this.http);
60
- this.storeClerk = new service_10.PandoraStoreClerkService(this.http);
61
- this.storeManager = new service_11.PandoraStoreManagerService(this.http);
62
- this.user = new service_12.PandoraUserService(this.http);
63
- this.product = new service_13.PandoraProductService(this.http);
64
- this.productExp = new service_14.PandoraProductExpService(this.http);
65
- this.productLive = new service_15.PandoraProductLiveService(this.http);
58
+ this.auth = new service_6.PandoraAuthService(this.http);
59
+ this.bd = new service_7.PandoraBDService(this.http);
60
+ this.bdm = new service_8.PandoraBDMService(this.http);
61
+ this.common = new service_9.PandoraCommonService(this.http);
62
+ this.role = new service_10.PandoraRoleService(this.http);
63
+ this.storeClerk = new service_11.PandoraStoreClerkService(this.http);
64
+ this.storeManager = new service_12.PandoraStoreManagerService(this.http);
65
+ this.user = new service_13.PandoraUserService(this.http);
66
+ this.product = new service_14.PandoraProductService(this.http);
67
+ this.productExp = new service_15.PandoraProductExpService(this.http);
68
+ this.productLive = new service_16.PandoraProductLiveService(this.http);
66
69
  this.store = new service_2.PandoraStoreService(this.http);
67
70
  this.storeUserRelation = new service_3.PandoraStoreUserRelationService(this.http);
68
- this.room = new service_17.PandoraRoomService(this.http);
69
- this.coupon = new service_16.PandoraCouponService(this.http);
70
- this.pointMall = new service_18.PandoraPointsMallService(this.http);
71
- this.orderQuery = new service_19.PandoraOrderQueryService(this.http);
72
- this.orderCore = new service_20.PandoraOrderCoreService(this.http);
73
- this.task = new service_21.PandoraTaskService(this.http);
74
- this.pointRule = new service_22.PandoraPointRuleService(this.http);
71
+ this.room = new service_18.PandoraRoomService(this.http);
72
+ this.coupon = new service_17.PandoraCouponService(this.http);
73
+ this.pointMall = new service_19.PandoraPointsMallService(this.http);
74
+ this.orderQuery = new service_20.PandoraOrderQueryService(this.http);
75
+ this.orderCore = new service_21.PandoraOrderCoreService(this.http);
76
+ this.task = new service_22.PandoraTaskService(this.http);
77
+ this.pointRule = new service_23.PandoraPointRuleService(this.http);
78
+ this.franchisee = new service_24.PandoraFranchiseeService(this.http);
75
79
  }
76
80
  }
77
81
  exports.PandoraSDK = PandoraSDK;
@@ -89,6 +93,8 @@ class MiniProgramSDK {
89
93
  this.http = new client_1.HttpClient(options);
90
94
  // 使用 HttpClient 实例化所有小程序服务模块
91
95
  this.demo = new service_4.MiniProgramDemoService(this.http);
96
+ this.auth = new service_5.MiniprogramAuthServiceClass(this.http);
97
+ this.franchisee = new service_25.MiniprogramFranchiseeService(this.http);
92
98
  }
93
99
  }
94
100
  exports.MiniProgramSDK = MiniProgramSDK;
@@ -0,0 +1,46 @@
1
+ import { MiniprogramAuthService as Service } from './types';
2
+ import BaseService from '../../BaseService';
3
+ import type { StandardResponse } from '../../../../types';
4
+ /**
5
+ * MiniprogramAuthService - 小程序认证服务模块
6
+ * 提供小程序认证相关的 API 方法
7
+ * 平台: miniprogram
8
+ */
9
+ export declare class MiniprogramAuthServiceClass extends BaseService implements Service.AuthController {
10
+ protected prefixUrl: string;
11
+ /**
12
+ * 小程序端获取用户菜单权限
13
+ * @returns Promise,解析为标准响应格式
14
+ */
15
+ getUserMenuPermissions(): Promise<StandardResponse<Service.Response.getUserMenuPermissions>>;
16
+ /**
17
+ * 获取微信UnionId
18
+ * @param request - 请求参数
19
+ * @returns Promise,解析为标准响应格式
20
+ */
21
+ getUnionId(request: Service.Request.getUnionId): Promise<StandardResponse<Service.Response.getUnionId>>;
22
+ /**
23
+ * UnionId登录
24
+ * @param request - 请求参数
25
+ * @returns Promise,解析为标准响应格式
26
+ */
27
+ unionIdLogin(request: Service.Request.unionIdLogin): Promise<StandardResponse<Service.Response.unionIdLogin>>;
28
+ /**
29
+ * 获取微信绑定手机号
30
+ * @param request - 请求参数
31
+ * @returns Promise,解析为标准响应格式
32
+ */
33
+ getBindPhone(request: Service.Request.getBindPhone): Promise<StandardResponse<Service.Response.getBindPhone>>;
34
+ /**
35
+ * 绑定手机号到UnionId
36
+ * @param request - 请求参数
37
+ * @returns Promise,解析为标准响应格式
38
+ */
39
+ unionIdBindPhone(request: Service.Request.bindPhoneToUnionId): Promise<StandardResponse<Service.Response.bindPhoneToUnionId>>;
40
+ /**
41
+ * 账号密码登录(新格式)
42
+ * @param request - 请求参数
43
+ * @returns Promise,解析为标准响应格式
44
+ */
45
+ accountLogin(request: Service.Request.accountLogin): Promise<StandardResponse<Service.Response.accountLogin>>;
46
+ }
@@ -0,0 +1,59 @@
1
+ import BaseService from '../../BaseService.mjs';
2
+ /**
3
+ * MiniprogramAuthService - 小程序认证服务模块
4
+ * 提供小程序认证相关的 API 方法
5
+ * 平台: miniprogram
6
+ */
7
+ export class MiniprogramAuthServiceClass extends BaseService {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.prefixUrl = '/miniprogram/auth';
11
+ }
12
+ /**
13
+ * 小程序端获取用户菜单权限
14
+ * @returns Promise,解析为标准响应格式
15
+ */
16
+ getUserMenuPermissions() {
17
+ return this.request(this.getUserMenuPermissions, {});
18
+ }
19
+ /**
20
+ * 获取微信UnionId
21
+ * @param request - 请求参数
22
+ * @returns Promise,解析为标准响应格式
23
+ */
24
+ getUnionId(request) {
25
+ return this.request(this.getUnionId, request);
26
+ }
27
+ /**
28
+ * UnionId登录
29
+ * @param request - 请求参数
30
+ * @returns Promise,解析为标准响应格式
31
+ */
32
+ unionIdLogin(request) {
33
+ return this.request(this.unionIdLogin, request);
34
+ }
35
+ /**
36
+ * 获取微信绑定手机号
37
+ * @param request - 请求参数
38
+ * @returns Promise,解析为标准响应格式
39
+ */
40
+ getBindPhone(request) {
41
+ return this.request(this.getBindPhone, request);
42
+ }
43
+ /**
44
+ * 绑定手机号到UnionId
45
+ * @param request - 请求参数
46
+ * @returns Promise,解析为标准响应格式
47
+ */
48
+ unionIdBindPhone(request) {
49
+ return this.request(this.unionIdBindPhone, request);
50
+ }
51
+ /**
52
+ * 账号密码登录(新格式)
53
+ * @param request - 请求参数
54
+ * @returns Promise,解析为标准响应格式
55
+ */
56
+ accountLogin(request) {
57
+ return this.request(this.accountLogin, request);
58
+ }
59
+ }
@@ -0,0 +1,133 @@
1
+ import { StandardResponse } from '../../../../types';
2
+ /**
3
+ * Miniprogram Auth Module Type Definitions
4
+ * 小程序认证模块类型定义
5
+ */
6
+ export declare namespace MiniprogramAuthService {
7
+ interface RoleItem {
8
+ id: string;
9
+ name: string;
10
+ }
11
+ namespace Request {
12
+ /**
13
+ * 获取微信UnionId请求
14
+ */
15
+ interface getUnionId {
16
+ code: string;
17
+ }
18
+ /**
19
+ * UnionId登录请求
20
+ */
21
+ interface unionIdLogin {
22
+ unionId: string;
23
+ }
24
+ /**
25
+ * 获取微信绑定手机号请求
26
+ */
27
+ interface getBindPhone {
28
+ code: string;
29
+ }
30
+ /**
31
+ * 绑定手机号到UnionId请求
32
+ */
33
+ interface bindPhoneToUnionId {
34
+ openId: string;
35
+ unionId: string;
36
+ phone: string;
37
+ }
38
+ /**
39
+ * 账号密码登录请求(新格式)
40
+ */
41
+ interface accountLogin {
42
+ account: string;
43
+ password: string;
44
+ }
45
+ }
46
+ namespace Response {
47
+ /**
48
+ * 获取用户菜单权限响应
49
+ */
50
+ interface getUserMenuPermissions {
51
+ rules: Array<{
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
+ }>;
65
+ }
66
+ /**
67
+ * 获取微信UnionId响应
68
+ */
69
+ interface getUnionId {
70
+ openId: string;
71
+ unionId: string;
72
+ token: string;
73
+ }
74
+ /**
75
+ * UnionId登录响应
76
+ */
77
+ interface unionIdLogin {
78
+ code: 0 | 1;
79
+ msg: string;
80
+ token: string;
81
+ roles: RoleItem[];
82
+ }
83
+ type getBindPhone = string;
84
+ /**
85
+ * 绑定手机号到UnionId响应
86
+ */
87
+ interface bindPhoneToUnionId {
88
+ code: 0;
89
+ msg: string;
90
+ token: string;
91
+ roles: RoleItem[];
92
+ }
93
+ /**
94
+ * 账号密码登录响应(新格式)
95
+ */
96
+ interface accountLogin {
97
+ code: 0;
98
+ msg: string;
99
+ token: string;
100
+ roles: RoleItem[];
101
+ }
102
+ }
103
+ /**
104
+ * Miniprogram Auth Controller 接口定义
105
+ * 由 packages/server/src/api/controller/miniprogram/auth.ts 实现
106
+ */
107
+ interface AuthController {
108
+ /**
109
+ * 小程序端获取用户菜单权限
110
+ */
111
+ getUserMenuPermissions(): Promise<StandardResponse<Response.getUserMenuPermissions>>;
112
+ /**
113
+ * 获取微信UnionId
114
+ */
115
+ getUnionId(request: Request.getUnionId): Promise<StandardResponse<Response.getUnionId>>;
116
+ /**
117
+ * UnionId登录
118
+ */
119
+ unionIdLogin(request: Request.unionIdLogin): Promise<StandardResponse<Response.unionIdLogin>>;
120
+ /**
121
+ * 获取微信绑定手机号
122
+ */
123
+ getBindPhone(request: Request.getBindPhone): Promise<StandardResponse<Response.getBindPhone>>;
124
+ /**
125
+ * 绑定手机号到UnionId
126
+ */
127
+ unionIdBindPhone(request: Request.bindPhoneToUnionId): Promise<StandardResponse<Response.bindPhoneToUnionId>>;
128
+ /**
129
+ * 账号密码登录(新格式)
130
+ */
131
+ accountLogin(request: Request.accountLogin): Promise<StandardResponse<Response.accountLogin>>;
132
+ }
133
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { MiniprogramFranchiseeService as Service } from './types';
2
+ import BaseService from '../../BaseService';
3
+ import type { StandardResponse } from '../../../../types';
4
+ /**
5
+ * MiniprogramFranchiseeService - Miniprogram Franchisee 服务模块
6
+ * 提供 Miniprogram Franchisee 相关的 API 方法
7
+ * 平台: miniprogram
8
+ */
9
+ export declare class MiniprogramFranchiseeService extends BaseService implements Service.FranchiseeController {
10
+ protected prefixUrl: string;
11
+ getFranchiseeIdByUserId(request: Service.Request.getFranchiseeIdByUserId): Promise<StandardResponse<Service.Response.getFranchiseeIdByUserId>>;
12
+ }
@@ -0,0 +1,15 @@
1
+ import BaseService from '../../BaseService.mjs';
2
+ /**
3
+ * MiniprogramFranchiseeService - Miniprogram Franchisee 服务模块
4
+ * 提供 Miniprogram Franchisee 相关的 API 方法
5
+ * 平台: miniprogram
6
+ */
7
+ export class MiniprogramFranchiseeService extends BaseService {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.prefixUrl = '/miniprogram/franchisee';
11
+ }
12
+ getFranchiseeIdByUserId(request) {
13
+ return this.request(this.getFranchiseeIdByUserId, request);
14
+ }
15
+ }
@@ -0,0 +1,25 @@
1
+ import { StandardResponse } from '../../../../types';
2
+ export declare namespace MiniprogramFranchiseeService {
3
+ namespace Request {
4
+ /**
5
+ * 根据用户ID获取加盟商ID
6
+ */
7
+ interface getFranchiseeIdByUserId {
8
+ userId: string;
9
+ }
10
+ }
11
+ namespace Response {
12
+ /**
13
+ * 根据用户ID获取加盟商ID响应
14
+ */
15
+ interface getFranchiseeIdByUserId {
16
+ id: string;
17
+ }
18
+ }
19
+ /**
20
+ * Franchisee Controller 接口定义
21
+ */
22
+ interface FranchiseeController {
23
+ getFranchiseeIdByUserId(request: Request.getFranchiseeIdByUserId): Promise<StandardResponse<Response.getFranchiseeIdByUserId>>;
24
+ }
25
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -19,4 +19,10 @@ export declare class PandoraAuthService extends BaseService implements Service.A
19
19
  * @returns Promise,解析为标准响应格式
20
20
  */
21
21
  getPermissionTree(): Promise<StandardResponse<Service.Response.permissionTree>>;
22
+ /**
23
+ * 获取用户菜单权限
24
+ * @param request - 请求参数
25
+ * @returns Promise,解析为标准响应格式
26
+ */
27
+ getUserMenuPermissions(request: Service.Request.getUserMenuPermissions): Promise<StandardResponse<Service.Response.getUserMenuPermissions>>;
22
28
  }
@@ -24,4 +24,12 @@ export class PandoraAuthService extends BaseService {
24
24
  getPermissionTree() {
25
25
  return this.request(this.getPermissionTree, {});
26
26
  }
27
+ /**
28
+ * 获取用户菜单权限
29
+ * @param request - 请求参数
30
+ * @returns Promise,解析为标准响应格式
31
+ */
32
+ getUserMenuPermissions(request) {
33
+ return this.request(this.getUserMenuPermissions, request);
34
+ }
27
35
  }
@@ -20,6 +20,13 @@ export declare namespace PandoraAuthService {
20
20
  redirectUrl?: string;
21
21
  organizationType?: 'BeLink' | 'SnowMountain';
22
22
  }
23
+ /**
24
+ * 获取用户菜单权限
25
+ */
26
+ interface getUserMenuPermissions {
27
+ id: string;
28
+ roleId: string;
29
+ }
23
30
  }
24
31
  namespace Response {
25
32
  /**
@@ -47,6 +54,25 @@ export declare namespace PandoraAuthService {
47
54
  children?: any[];
48
55
  }>;
49
56
  }
57
+ /**
58
+ * 获取用户菜单权限响应
59
+ */
60
+ interface getUserMenuPermissions {
61
+ rules: Array<{
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
+ }>;
75
+ }
50
76
  }
51
77
  /**
52
78
  * Auth Controller 接口定义
@@ -60,5 +86,9 @@ export declare namespace PandoraAuthService {
60
86
  * 获取权限树(从请求上下文获取 userId 和 roleId)
61
87
  */
62
88
  getPermissionTree(): Promise<StandardResponse<Response.permissionTree>>;
89
+ /**
90
+ * 获取用户菜单权限
91
+ */
92
+ getUserMenuPermissions(request: Request.getUserMenuPermissions): Promise<StandardResponse<Response.getUserMenuPermissions>>;
63
93
  }
64
94
  }
@@ -0,0 +1,19 @@
1
+ import { PandoraFranchiseeService as Service } from './types';
2
+ import BaseService from '../../BaseService';
3
+ import type { StandardResponse } from '../../../../types';
4
+ /**
5
+ * PandoraFranchiseeService - Pandora Franchisee 服务模块
6
+ * 提供 Pandora Franchisee 相关的 API 方法
7
+ * 平台: pandora
8
+ */
9
+ export declare class PandoraFranchiseeService extends BaseService implements Service.FranchiseeController {
10
+ protected prefixUrl: string;
11
+ createFranchisee(request: Service.Request.createFranchisee): Promise<StandardResponse<Service.Response.createFranchisee>>;
12
+ updateFranchisee(request: Service.Request.updateFranchisee): Promise<StandardResponse<Service.Response.updateFranchisee>>;
13
+ listFranchisees(request: Service.Request.listFranchisees): Promise<StandardResponse<Service.Response.listFranchisees>>;
14
+ getFranchiseeDetail(request: Service.Request.getFranchiseeDetail): Promise<StandardResponse<Service.Response.getFranchiseeDetail>>;
15
+ getFranchiseeEditHistory(request: Service.Request.getFranchiseeEditHistory): Promise<StandardResponse<Service.Response.getFranchiseeEditHistory>>;
16
+ checkAndUpdateAccountInfo(request: Service.Request.checkAndUpdateAccountInfo): Promise<StandardResponse<Service.Response.checkAndUpdateAccountInfo>>;
17
+ getFranchiseeIdByUserId(request: Service.Request.getFranchiseeIdByUserId): Promise<StandardResponse<Service.Response.getFranchiseeIdByUserId>>;
18
+ updateStatus(request: Service.Request.updateStatus): Promise<StandardResponse<Service.Response.updateStatus>>;
19
+ }
@@ -0,0 +1,36 @@
1
+ import BaseService from '../../BaseService.mjs';
2
+ /**
3
+ * PandoraFranchiseeService - Pandora Franchisee 服务模块
4
+ * 提供 Pandora Franchisee 相关的 API 方法
5
+ * 平台: pandora
6
+ */
7
+ export class PandoraFranchiseeService extends BaseService {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.prefixUrl = '/pandora/franchisee';
11
+ }
12
+ createFranchisee(request) {
13
+ return this.request(this.createFranchisee, request);
14
+ }
15
+ updateFranchisee(request) {
16
+ return this.request(this.updateFranchisee, request);
17
+ }
18
+ listFranchisees(request) {
19
+ return this.request(this.listFranchisees, request);
20
+ }
21
+ getFranchiseeDetail(request) {
22
+ return this.request(this.getFranchiseeDetail, request);
23
+ }
24
+ getFranchiseeEditHistory(request) {
25
+ return this.request(this.getFranchiseeEditHistory, request);
26
+ }
27
+ checkAndUpdateAccountInfo(request) {
28
+ return this.request(this.checkAndUpdateAccountInfo, request);
29
+ }
30
+ getFranchiseeIdByUserId(request) {
31
+ return this.request(this.getFranchiseeIdByUserId, request);
32
+ }
33
+ updateStatus(request) {
34
+ return this.request(this.updateStatus, request);
35
+ }
36
+ }