@be-link/ecommerce-backend-bff-service-node-sdk 0.0.93 → 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 (51) 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/coupon/types.d.ts +1 -1
  13. package/cjs/bff/modules/pandora/franchisee/service.d.ts +19 -0
  14. package/cjs/bff/modules/pandora/franchisee/service.js +43 -0
  15. package/cjs/bff/modules/pandora/franchisee/types.d.ts +204 -0
  16. package/cjs/bff/modules/pandora/franchisee/types.js +2 -0
  17. package/cjs/bff/modules/pandora/store/service.d.ts +0 -60
  18. package/cjs/bff/modules/pandora/store/service.js +0 -80
  19. package/cjs/bff/modules/pandora/store/types.d.ts +10 -85
  20. package/cjs/bff/modules/pandora/store/types.js +11 -0
  21. package/cjs/bff/modules/pandora/user/service.d.ts +0 -1
  22. package/cjs/bff/modules/pandora/user/service.js +0 -3
  23. package/cjs/bff/modules/pandora/user/types.d.ts +0 -27
  24. package/cjs/index.d.ts +18 -0
  25. package/cjs/index.js +45 -37
  26. package/esm/bff/modules/miniprogram/auth/service.d.ts +46 -0
  27. package/esm/bff/modules/miniprogram/auth/service.mjs +59 -0
  28. package/esm/bff/modules/miniprogram/auth/types.d.ts +133 -0
  29. package/esm/bff/modules/miniprogram/auth/types.mjs +1 -0
  30. package/esm/bff/modules/miniprogram/franchisee/service.d.ts +12 -0
  31. package/esm/bff/modules/miniprogram/franchisee/service.mjs +15 -0
  32. package/esm/bff/modules/miniprogram/franchisee/types.d.ts +25 -0
  33. package/esm/bff/modules/miniprogram/franchisee/types.mjs +1 -0
  34. package/esm/bff/modules/pandora/auth/service.d.ts +6 -0
  35. package/esm/bff/modules/pandora/auth/service.mjs +8 -0
  36. package/esm/bff/modules/pandora/auth/types.d.ts +30 -0
  37. package/esm/bff/modules/pandora/coupon/types.d.ts +1 -1
  38. package/esm/bff/modules/pandora/franchisee/service.d.ts +19 -0
  39. package/esm/bff/modules/pandora/franchisee/service.mjs +36 -0
  40. package/esm/bff/modules/pandora/franchisee/types.d.ts +204 -0
  41. package/esm/bff/modules/pandora/franchisee/types.mjs +1 -0
  42. package/esm/bff/modules/pandora/store/service.d.ts +0 -60
  43. package/esm/bff/modules/pandora/store/service.mjs +0 -80
  44. package/esm/bff/modules/pandora/store/types.d.ts +10 -85
  45. package/esm/bff/modules/pandora/store/types.mjs +10 -1
  46. package/esm/bff/modules/pandora/user/service.d.ts +0 -1
  47. package/esm/bff/modules/pandora/user/service.mjs +0 -3
  48. package/esm/bff/modules/pandora/user/types.d.ts +0 -27
  49. package/esm/index.d.ts +18 -0
  50. package/esm/index.mjs +7 -0
  51. package/package.json +4 -4
@@ -14,54 +14,6 @@ export declare class PandoraStoreService extends BaseService implements Service.
14
14
  * @returns Promise,解析为标准响应格式
15
15
  */
16
16
  createStore(request: Service.Request.CreateStore): Promise<StandardResponse<Service.Response.CreateStore>>;
17
- /**
18
- * 绑定店长
19
- * @param request - 请求参数
20
- * @returns Promise,解析为标准响应格式
21
- */
22
- bindStoreManager(request: Service.Request.BindStoreManager): Promise<StandardResponse<Service.Response.BindStoreManager>>;
23
- /**
24
- * 解绑店长
25
- * @param request - 请求参数
26
- * @returns Promise,解析为标准响应格式
27
- */
28
- unbindStoreManager(request: Service.Request.UnbindStoreManager): Promise<StandardResponse<Service.Response.UnbindStoreManager>>;
29
- /**
30
- * 绑定BD
31
- * @param request - 请求参数
32
- * @returns Promise,解析为标准响应格式
33
- */
34
- bindBD(request: Service.Request.BindBD): Promise<StandardResponse<Service.Response.BindBD>>;
35
- /**
36
- * 批量绑定BD
37
- * @param request - 请求参数
38
- * @returns Promise,解析为标准响应格式
39
- */
40
- batchBindBD(request: Service.Request.BatchBindBD): Promise<StandardResponse<Service.Response.BatchBindBD>>;
41
- /**
42
- * 解绑BD
43
- * @param request - 请求参数
44
- * @returns Promise,解析为标准响应格式
45
- */
46
- unbindBD(request: Service.Request.UnbindBD): Promise<StandardResponse<Service.Response.UnbindBD>>;
47
- /**
48
- * 批量解绑BD
49
- * @param request - 请求参数
50
- * @returns Promise,解析为标准响应格式
51
- */
52
- batchUnbindBD(request: Service.Request.BatchUnbindBD): Promise<StandardResponse<Service.Response.BatchUnbindBD>>;
53
- /**
54
- * 绑定加盟商
55
- * @param request - 请求参数
56
- * @returns Promise,解析为标准响应格式
57
- */
58
- bindFranchisee(request: Service.Request.BindFranchisee): Promise<StandardResponse<Service.Response.BindFranchisee>>;
59
- /**
60
- * 解绑加盟商
61
- * @param request - 请求参数
62
- * @returns Promise,解析为标准响应格式
63
- */
64
- unbindFranchisee(request: Service.Request.UnbindFranchisee): Promise<StandardResponse<Service.Response.UnbindFranchisee>>;
65
17
  /**
66
18
  * 编辑门店信息
67
19
  * @param request - 请求参数
@@ -74,18 +26,6 @@ export declare class PandoraStoreService extends BaseService implements Service.
74
26
  * @returns Promise,解析为标准响应格式
75
27
  */
76
28
  batchUpdateBusinessStatus(request: Service.Request.BatchUpdateBusinessStatus): Promise<StandardResponse<Service.Response.BatchUpdateBusinessStatus>>;
77
- /**
78
- * 更新群直播时间
79
- * @param request - 请求参数
80
- * @returns Promise,解析为标准响应格式
81
- */
82
- updateLiveTime(request: Service.Request.UpdateLiveTime): Promise<StandardResponse<Service.Response.UpdateLiveTime>>;
83
- /**
84
- * 门店继承
85
- * @param request - 请求参数
86
- * @returns Promise,解析为标准响应格式
87
- */
88
- inheritStore(request: Service.Request.InheritStore): Promise<StandardResponse<Service.Response.InheritStore>>;
89
29
  /**
90
30
  * 获取门店详情
91
31
  * @param request - 请求参数
@@ -23,70 +23,6 @@ class PandoraStoreService extends BaseService_1.default {
23
23
  createStore(request) {
24
24
  return this.request(this.createStore, request);
25
25
  }
26
- /**
27
- * 绑定店长
28
- * @param request - 请求参数
29
- * @returns Promise,解析为标准响应格式
30
- */
31
- bindStoreManager(request) {
32
- return this.request(this.bindStoreManager, request);
33
- }
34
- /**
35
- * 解绑店长
36
- * @param request - 请求参数
37
- * @returns Promise,解析为标准响应格式
38
- */
39
- unbindStoreManager(request) {
40
- return this.request(this.unbindStoreManager, request);
41
- }
42
- /**
43
- * 绑定BD
44
- * @param request - 请求参数
45
- * @returns Promise,解析为标准响应格式
46
- */
47
- bindBD(request) {
48
- return this.request(this.bindBD, request);
49
- }
50
- /**
51
- * 批量绑定BD
52
- * @param request - 请求参数
53
- * @returns Promise,解析为标准响应格式
54
- */
55
- batchBindBD(request) {
56
- return this.request(this.batchBindBD, request);
57
- }
58
- /**
59
- * 解绑BD
60
- * @param request - 请求参数
61
- * @returns Promise,解析为标准响应格式
62
- */
63
- unbindBD(request) {
64
- return this.request(this.unbindBD, request);
65
- }
66
- /**
67
- * 批量解绑BD
68
- * @param request - 请求参数
69
- * @returns Promise,解析为标准响应格式
70
- */
71
- batchUnbindBD(request) {
72
- return this.request(this.batchUnbindBD, request);
73
- }
74
- /**
75
- * 绑定加盟商
76
- * @param request - 请求参数
77
- * @returns Promise,解析为标准响应格式
78
- */
79
- bindFranchisee(request) {
80
- return this.request(this.bindFranchisee, request);
81
- }
82
- /**
83
- * 解绑加盟商
84
- * @param request - 请求参数
85
- * @returns Promise,解析为标准响应格式
86
- */
87
- unbindFranchisee(request) {
88
- return this.request(this.unbindFranchisee, request);
89
- }
90
26
  /**
91
27
  * 编辑门店信息
92
28
  * @param request - 请求参数
@@ -103,22 +39,6 @@ class PandoraStoreService extends BaseService_1.default {
103
39
  batchUpdateBusinessStatus(request) {
104
40
  return this.request(this.batchUpdateBusinessStatus, request);
105
41
  }
106
- /**
107
- * 更新群直播时间
108
- * @param request - 请求参数
109
- * @returns Promise,解析为标准响应格式
110
- */
111
- updateLiveTime(request) {
112
- return this.request(this.updateLiveTime, request);
113
- }
114
- /**
115
- * 门店继承
116
- * @param request - 请求参数
117
- * @returns Promise,解析为标准响应格式
118
- */
119
- inheritStore(request) {
120
- return this.request(this.inheritStore, request);
121
- }
122
42
  /**
123
43
  * 获取门店详情
124
44
  * @param request - 请求参数
@@ -103,29 +103,24 @@ export declare namespace StoreService {
103
103
  franchiseeId?: string;
104
104
  /** 加盟商名称 */
105
105
  franchiseeName?: string;
106
- /** BD 负责人 Pandora ID */
107
- bdPandoraId?: string;
106
+ /** BD 负责人 ID */
107
+ bdDisplayId?: string;
108
108
  /** BD 负责人姓名 */
109
109
  bdName?: string;
110
- /** BDM 负责人 Pandora ID */
111
- bdmPandoraId?: string;
110
+ /** BDM 负责人 ID */
111
+ bdmDisplayId?: string;
112
112
  /** BDM 负责人姓名 */
113
113
  bdmName?: string;
114
- /** 店长 Pandora ID */
115
- storeManagerPandoraId?: string;
114
+ /** 店长ID */
115
+ storeManagerDisplayId?: string;
116
116
  /** 店长姓名 */
117
117
  storeManagerName?: string;
118
- /** 店员列表 */
119
- staffList?: Array<{
120
- /** 用户 Pandora ID */
121
- userPandoraId: string;
122
- /** 用户名称 */
123
- userName?: string;
124
- }>;
125
118
  /** 工作机 uid,工作机手机号和授权手机号做系统匹配 */
126
119
  workPhoneUid: string;
127
120
  /** 工作机企微 id,系统匹配 */
128
121
  workPhoneWxCorpId: string;
122
+ /** 店员列表 */
123
+ storeClerkName?: string;
129
124
  }
130
125
  /**
131
126
  * 门店统计数据
@@ -254,6 +249,8 @@ export declare namespace StoreService {
254
249
  latitude: number;
255
250
  /** 经度(地图选点) */
256
251
  longitude: number;
252
+ /** 联系电话 */
253
+ telephone?: string;
257
254
  };
258
255
  /** 门店结算信息 */
259
256
  settlementInfo?: {
@@ -838,78 +835,6 @@ export declare namespace StoreService {
838
835
  * @returns 响应数据
839
836
  */
840
837
  createStore(request: StoreService.Request.CreateStore): Promise<StandardResponse<StoreService.Response.CreateStore>>;
841
- /**
842
- * 绑定店长
843
- * @param request 请求参数
844
- * @returns 响应数据
845
- */
846
- bindStoreManager(request: StoreService.Request.BindStoreManager): Promise<StandardResponse<StoreService.Response.BindStoreManager>>;
847
- /**
848
- * 解绑店长
849
- * @param request 请求参数
850
- * @returns 响应数据
851
- */
852
- unbindStoreManager(request: StoreService.Request.UnbindStoreManager): Promise<StandardResponse<StoreService.Response.UnbindStoreManager>>;
853
- /**
854
- * 绑定BD
855
- * @param request 请求参数
856
- * @returns 响应数据
857
- */
858
- bindBD(request: StoreService.Request.BindBD): Promise<StandardResponse<StoreService.Response.BindBD>>;
859
- /**
860
- * 批量绑定BD
861
- * @param request 请求参数
862
- * @returns 响应数据
863
- */
864
- batchBindBD(request: StoreService.Request.BatchBindBD): Promise<StandardResponse<StoreService.Response.BatchBindBD>>;
865
- /**
866
- * 解绑BD
867
- * @param request 请求参数
868
- * @returns 响应数据
869
- */
870
- unbindBD(request: StoreService.Request.UnbindBD): Promise<StandardResponse<StoreService.Response.UnbindBD>>;
871
- /**
872
- * 批量解绑BD
873
- * @param request 请求参数
874
- * @returns 响应数据
875
- */
876
- batchUnbindBD(request: StoreService.Request.BatchUnbindBD): Promise<StandardResponse<StoreService.Response.BatchUnbindBD>>;
877
- /**
878
- * 绑定加盟商
879
- * @param request 请求参数
880
- * @returns 响应数据
881
- */
882
- bindFranchisee(request: StoreService.Request.BindFranchisee): Promise<StandardResponse<StoreService.Response.BindFranchisee>>;
883
- /**
884
- * 解绑加盟商
885
- * @param request 请求参数
886
- * @returns 响应数据
887
- */
888
- unbindFranchisee(request: StoreService.Request.UnbindFranchisee): Promise<StandardResponse<StoreService.Response.UnbindFranchisee>>;
889
- /**
890
- * 编辑门店信息(手工录入字段)
891
- * @param request 请求参数
892
- * @returns 响应数据
893
- */
894
- updateStoreInfo(request: StoreService.Request.UpdateStoreInfo): Promise<StandardResponse<StoreService.Response.UpdateStoreInfo>>;
895
- /**
896
- * 批量修改门店经营状态
897
- * @param request 请求参数
898
- * @returns 响应数据
899
- */
900
- batchUpdateBusinessStatus(request: StoreService.Request.BatchUpdateBusinessStatus): Promise<StandardResponse<StoreService.Response.BatchUpdateBusinessStatus>>;
901
- /**
902
- * 更新群直播时间(系统同步)
903
- * @param request 请求参数
904
- * @returns 响应数据
905
- */
906
- updateLiveTime(request: StoreService.Request.UpdateLiveTime): Promise<StandardResponse<StoreService.Response.UpdateLiveTime>>;
907
- /**
908
- * 门店继承(系统同步门店承接类型)
909
- * @param request 请求参数
910
- * @returns 响应数据
911
- */
912
- inheritStore(request: StoreService.Request.InheritStore): Promise<StandardResponse<StoreService.Response.InheritStore>>;
913
838
  /**
914
839
  * 获取门店详情
915
840
  * @param request 请求参数
@@ -1,2 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoreService = void 0;
4
+ var StoreService;
5
+ (function (StoreService) {
6
+ /**
7
+ * 实体定义
8
+ */
9
+ let Entity;
10
+ (function (Entity) {
11
+ 1;
12
+ })(Entity = StoreService.Entity || (StoreService.Entity = {}));
13
+ })(StoreService || (exports.StoreService = StoreService = {}));
@@ -13,7 +13,6 @@ export declare class PandoraUserService extends BaseService implements Service.U
13
13
  deleteAccount(request: Service.Request.deleteAccount): Promise<StandardResponse<Service.Response.deleteAccount>>;
14
14
  listAccounts(request: Service.Request.accountList): Promise<StandardResponse<Service.Response.accountList>>;
15
15
  getUserInfo(request: Service.Request.getUserInfo): Promise<StandardResponse<Service.Response.getUserInfo>>;
16
- getUserMenuPermissions(request: Service.Request.getUserMenuPermissions): Promise<StandardResponse<Service.Response.getUserMenuPermissions>>;
17
16
  getUserInfoByRole(): Promise<StandardResponse<Service.Response.getUserInfoByRole>>;
18
17
  getUserRolePermissions(request: Service.Request.getUserRolePermissions): Promise<StandardResponse<Service.Response.getUserRolePermissions>>;
19
18
  getStoreOptions(request: Service.Request.getStoreOptions): Promise<StandardResponse<Service.Response.getStoreOptions>>;
@@ -30,9 +30,6 @@ class PandoraUserService extends BaseService_1.default {
30
30
  getUserInfo(request) {
31
31
  return this.request(this.getUserInfo, request);
32
32
  }
33
- getUserMenuPermissions(request) {
34
- return this.request(this.getUserMenuPermissions, request);
35
- }
36
33
  getUserInfoByRole() {
37
34
  return this.request(this.getUserInfoByRole, {});
38
35
  }
@@ -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
@@ -14,30 +14,33 @@ 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.BizError = exports.SdkError = exports.MiniProgramSDK = exports.PandoraSDK = void 0;
17
+ exports.PandoraStoreServiceTypes = exports.SystemError = exports.BizError = exports.SdkError = exports.MiniProgramSDK = exports.PandoraSDK = void 0;
18
18
  const client_1 = require("./bff/request/client");
19
19
  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;
@@ -100,3 +106,5 @@ Object.defineProperty(exports, "BizError", { enumerable: true, get: function ()
100
106
  Object.defineProperty(exports, "SystemError", { enumerable: true, get: function () { return errors_1.SystemError; } });
101
107
  // 枚举和常量
102
108
  __exportStar(require("./enums"), exports);
109
+ var types_1 = require("./bff/modules/pandora/store/types");
110
+ Object.defineProperty(exports, "PandoraStoreServiceTypes", { enumerable: true, get: function () { return types_1.StoreService; } });
@@ -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
+ }