@be-link/ecommerce-backend-bff-service-node-sdk 0.0.111 → 0.0.112

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 (245) hide show
  1. package/cjs/bff/modules/pandora/orderCore/service.d.ts +1 -7
  2. package/cjs/bff/modules/pandora/orderCore/service.js +1 -9
  3. package/cjs/bff/modules/pandora/orderCore/types.d.ts +2 -5
  4. package/cjs/bff/modules/pandora/orderQuery/types.d.ts +4 -9
  5. package/cjs/bff/modules/pandora/product/service.d.ts +2 -20
  6. package/cjs/bff/modules/pandora/product/service.js +0 -24
  7. package/cjs/bff/modules/pandora/product/types.d.ts +16 -258
  8. package/cjs/bff/modules/pandora/productExp/service.d.ts +6 -18
  9. package/cjs/bff/modules/pandora/productExp/service.js +9 -25
  10. package/cjs/bff/modules/pandora/productExp/types.d.ts +16 -84
  11. package/cjs/bff/modules/pandora/productLive/service.d.ts +1 -1
  12. package/cjs/bff/modules/pandora/productLive/types.d.ts +1 -11
  13. package/cjs/bff/modules/pandora/room/service.d.ts +0 -6
  14. package/cjs/bff/modules/pandora/room/service.js +0 -8
  15. package/cjs/bff/modules/pandora/room/types.d.ts +2 -21
  16. package/cjs/bff/request/strategy.js +0 -1
  17. package/cjs/enums.d.ts +0 -7
  18. package/cjs/enums.js +3 -22
  19. package/cjs/index.d.ts +3 -91
  20. package/cjs/index.js +16 -67
  21. package/cjs/utils/env.js +0 -1
  22. package/cjs/utils/string.js +0 -1
  23. package/esm/bff/modules/pandora/orderCore/service.d.ts +1 -7
  24. package/esm/bff/modules/pandora/orderCore/service.mjs +1 -9
  25. package/esm/bff/modules/pandora/orderCore/types.d.ts +2 -5
  26. package/esm/bff/modules/pandora/orderQuery/types.d.ts +4 -9
  27. package/esm/bff/modules/pandora/product/service.d.ts +2 -20
  28. package/esm/bff/modules/pandora/product/service.mjs +0 -24
  29. package/esm/bff/modules/pandora/product/types.d.ts +16 -258
  30. package/esm/bff/modules/pandora/productExp/service.d.ts +6 -18
  31. package/esm/bff/modules/pandora/productExp/service.mjs +9 -25
  32. package/esm/bff/modules/pandora/productExp/types.d.ts +16 -84
  33. package/esm/bff/modules/pandora/productLive/service.d.ts +1 -1
  34. package/esm/bff/modules/pandora/productLive/types.d.ts +1 -11
  35. package/esm/bff/modules/pandora/room/service.d.ts +0 -6
  36. package/esm/bff/modules/pandora/room/service.mjs +0 -8
  37. package/esm/bff/modules/pandora/room/types.d.ts +2 -21
  38. package/esm/bff/request/strategy.mjs +0 -1
  39. package/esm/enums.d.ts +0 -7
  40. package/esm/enums.mjs +0 -12
  41. package/esm/index.d.ts +3 -91
  42. package/esm/index.mjs +3 -54
  43. package/esm/utils/env.mjs +0 -1
  44. package/esm/utils/string.mjs +0 -1
  45. package/package.json +3 -10
  46. package/cjs/bff/modules/miniprogram/auth/service.d.ts +0 -46
  47. package/cjs/bff/modules/miniprogram/auth/service.js +0 -66
  48. package/cjs/bff/modules/miniprogram/auth/types.d.ts +0 -133
  49. package/cjs/bff/modules/miniprogram/auth/types.js +0 -2
  50. package/cjs/bff/modules/miniprogram/franchisee/service.d.ts +0 -12
  51. package/cjs/bff/modules/miniprogram/franchisee/service.js +0 -22
  52. package/cjs/bff/modules/miniprogram/franchisee/types.d.ts +0 -25
  53. package/cjs/bff/modules/miniprogram/franchisee/types.js +0 -2
  54. package/cjs/bff/modules/pandora/auth/service.d.ts +0 -28
  55. package/cjs/bff/modules/pandora/auth/service.js +0 -42
  56. package/cjs/bff/modules/pandora/auth/types.d.ts +0 -94
  57. package/cjs/bff/modules/pandora/auth/types.js +0 -2
  58. package/cjs/bff/modules/pandora/award/service.d.ts +0 -17
  59. package/cjs/bff/modules/pandora/award/service.js +0 -27
  60. package/cjs/bff/modules/pandora/award/types.d.ts +0 -17
  61. package/cjs/bff/modules/pandora/award/types.js +0 -2
  62. package/cjs/bff/modules/pandora/bd/service.d.ts +0 -47
  63. package/cjs/bff/modules/pandora/bd/service.js +0 -67
  64. package/cjs/bff/modules/pandora/bd/types.d.ts +0 -157
  65. package/cjs/bff/modules/pandora/bd/types.js +0 -2
  66. package/cjs/bff/modules/pandora/bdm/service.d.ts +0 -35
  67. package/cjs/bff/modules/pandora/bdm/service.js +0 -51
  68. package/cjs/bff/modules/pandora/bdm/types.d.ts +0 -104
  69. package/cjs/bff/modules/pandora/bdm/types.js +0 -2
  70. package/cjs/bff/modules/pandora/common/service.d.ts +0 -34
  71. package/cjs/bff/modules/pandora/common/service.js +0 -50
  72. package/cjs/bff/modules/pandora/common/types.d.ts +0 -125
  73. package/cjs/bff/modules/pandora/common/types.js +0 -2
  74. package/cjs/bff/modules/pandora/coupon/service.d.ts +0 -59
  75. package/cjs/bff/modules/pandora/coupon/service.js +0 -83
  76. package/cjs/bff/modules/pandora/coupon/types.d.ts +0 -409
  77. package/cjs/bff/modules/pandora/coupon/types.js +0 -2
  78. package/cjs/bff/modules/pandora/franchisee/service.d.ts +0 -19
  79. package/cjs/bff/modules/pandora/franchisee/service.js +0 -43
  80. package/cjs/bff/modules/pandora/franchisee/types.d.ts +0 -204
  81. package/cjs/bff/modules/pandora/franchisee/types.js +0 -2
  82. package/cjs/bff/modules/pandora/pointRule/service.d.ts +0 -53
  83. package/cjs/bff/modules/pandora/pointRule/service.js +0 -75
  84. package/cjs/bff/modules/pandora/pointRule/types.d.ts +0 -38
  85. package/cjs/bff/modules/pandora/pointRule/types.js +0 -2
  86. package/cjs/bff/modules/pandora/pointsMall/service.d.ts +0 -47
  87. package/cjs/bff/modules/pandora/pointsMall/service.js +0 -67
  88. package/cjs/bff/modules/pandora/pointsMall/types.d.ts +0 -177
  89. package/cjs/bff/modules/pandora/pointsMall/types.js +0 -2
  90. package/cjs/bff/modules/pandora/role/service.d.ts +0 -47
  91. package/cjs/bff/modules/pandora/role/service.js +0 -67
  92. package/cjs/bff/modules/pandora/role/types.d.ts +0 -135
  93. package/cjs/bff/modules/pandora/role/types.js +0 -2
  94. package/cjs/bff/modules/pandora/store/service.d.ts +0 -95
  95. package/cjs/bff/modules/pandora/store/service.js +0 -131
  96. package/cjs/bff/modules/pandora/store/types.d.ts +0 -883
  97. package/cjs/bff/modules/pandora/store/types.js +0 -2
  98. package/cjs/bff/modules/pandora/storeClerk/service.d.ts +0 -41
  99. package/cjs/bff/modules/pandora/storeClerk/service.js +0 -59
  100. package/cjs/bff/modules/pandora/storeClerk/types.d.ts +0 -130
  101. package/cjs/bff/modules/pandora/storeClerk/types.js +0 -2
  102. package/cjs/bff/modules/pandora/storeManager/service.d.ts +0 -47
  103. package/cjs/bff/modules/pandora/storeManager/service.js +0 -67
  104. package/cjs/bff/modules/pandora/storeManager/types.d.ts +0 -148
  105. package/cjs/bff/modules/pandora/storeManager/types.js +0 -2
  106. package/cjs/bff/modules/pandora/storeUserRelation/service.d.ts +0 -41
  107. package/cjs/bff/modules/pandora/storeUserRelation/service.js +0 -59
  108. package/cjs/bff/modules/pandora/storeUserRelation/types.d.ts +0 -223
  109. package/cjs/bff/modules/pandora/storeUserRelation/types.js +0 -2
  110. package/cjs/bff/modules/pandora/task/service.d.ts +0 -65
  111. package/cjs/bff/modules/pandora/task/service.js +0 -91
  112. package/cjs/bff/modules/pandora/task/types.d.ts +0 -36
  113. package/cjs/bff/modules/pandora/task/types.js +0 -2
  114. package/cjs/bff/modules/pandora/taskWatch/service.d.ts +0 -23
  115. package/cjs/bff/modules/pandora/taskWatch/service.js +0 -35
  116. package/cjs/bff/modules/pandora/taskWatch/types.d.ts +0 -15
  117. package/cjs/bff/modules/pandora/taskWatch/types.js +0 -2
  118. package/cjs/bff/modules/pandora/user/service.d.ts +0 -20
  119. package/cjs/bff/modules/pandora/user/service.js +0 -46
  120. package/cjs/bff/modules/pandora/user/types.d.ts +0 -194
  121. package/cjs/bff/modules/pandora/user/types.js +0 -2
  122. package/cjs/bff/modules/pandora/userManager/service/address.service.d.ts +0 -12
  123. package/cjs/bff/modules/pandora/userManager/service/address.service.js +0 -32
  124. package/cjs/bff/modules/pandora/userManager/service/coupon.service.d.ts +0 -11
  125. package/cjs/bff/modules/pandora/userManager/service/coupon.service.js +0 -29
  126. package/cjs/bff/modules/pandora/userManager/service/index.d.ts +0 -5
  127. package/cjs/bff/modules/pandora/userManager/service/index.js +0 -21
  128. package/cjs/bff/modules/pandora/userManager/service/point.service.d.ts +0 -13
  129. package/cjs/bff/modules/pandora/userManager/service/point.service.js +0 -35
  130. package/cjs/bff/modules/pandora/userManager/service/region.service.d.ts +0 -14
  131. package/cjs/bff/modules/pandora/userManager/service/region.service.js +0 -38
  132. package/cjs/bff/modules/pandora/userManager/service/user.service.d.ts +0 -12
  133. package/cjs/bff/modules/pandora/userManager/service/user.service.js +0 -32
  134. package/cjs/bff/modules/pandora/userManager/types/address.types.d.ts +0 -94
  135. package/cjs/bff/modules/pandora/userManager/types/address.types.js +0 -2
  136. package/cjs/bff/modules/pandora/userManager/types/coupon.types.d.ts +0 -99
  137. package/cjs/bff/modules/pandora/userManager/types/coupon.types.js +0 -2
  138. package/cjs/bff/modules/pandora/userManager/types/index.d.ts +0 -5
  139. package/cjs/bff/modules/pandora/userManager/types/index.js +0 -21
  140. package/cjs/bff/modules/pandora/userManager/types/point.types.d.ts +0 -113
  141. package/cjs/bff/modules/pandora/userManager/types/point.types.js +0 -2
  142. package/cjs/bff/modules/pandora/userManager/types/region.types.d.ts +0 -77
  143. package/cjs/bff/modules/pandora/userManager/types/region.types.js +0 -2
  144. package/cjs/bff/modules/pandora/userManager/types/user.types.d.ts +0 -124
  145. package/cjs/bff/modules/pandora/userManager/types/user.types.js +0 -2
  146. package/esm/bff/modules/miniprogram/auth/service.d.ts +0 -46
  147. package/esm/bff/modules/miniprogram/auth/service.mjs +0 -59
  148. package/esm/bff/modules/miniprogram/auth/types.d.ts +0 -133
  149. package/esm/bff/modules/miniprogram/auth/types.mjs +0 -1
  150. package/esm/bff/modules/miniprogram/franchisee/service.d.ts +0 -12
  151. package/esm/bff/modules/miniprogram/franchisee/service.mjs +0 -15
  152. package/esm/bff/modules/miniprogram/franchisee/types.d.ts +0 -25
  153. package/esm/bff/modules/miniprogram/franchisee/types.mjs +0 -1
  154. package/esm/bff/modules/pandora/auth/service.d.ts +0 -28
  155. package/esm/bff/modules/pandora/auth/service.mjs +0 -35
  156. package/esm/bff/modules/pandora/auth/types.d.ts +0 -94
  157. package/esm/bff/modules/pandora/auth/types.mjs +0 -1
  158. package/esm/bff/modules/pandora/award/service.d.ts +0 -17
  159. package/esm/bff/modules/pandora/award/service.mjs +0 -20
  160. package/esm/bff/modules/pandora/award/types.d.ts +0 -17
  161. package/esm/bff/modules/pandora/award/types.mjs +0 -1
  162. package/esm/bff/modules/pandora/bd/service.d.ts +0 -47
  163. package/esm/bff/modules/pandora/bd/service.mjs +0 -60
  164. package/esm/bff/modules/pandora/bd/types.d.ts +0 -157
  165. package/esm/bff/modules/pandora/bd/types.mjs +0 -1
  166. package/esm/bff/modules/pandora/bdm/service.d.ts +0 -35
  167. package/esm/bff/modules/pandora/bdm/service.mjs +0 -44
  168. package/esm/bff/modules/pandora/bdm/types.d.ts +0 -104
  169. package/esm/bff/modules/pandora/bdm/types.mjs +0 -1
  170. package/esm/bff/modules/pandora/common/service.d.ts +0 -34
  171. package/esm/bff/modules/pandora/common/service.mjs +0 -43
  172. package/esm/bff/modules/pandora/common/types.d.ts +0 -125
  173. package/esm/bff/modules/pandora/common/types.mjs +0 -1
  174. package/esm/bff/modules/pandora/coupon/service.d.ts +0 -59
  175. package/esm/bff/modules/pandora/coupon/service.mjs +0 -76
  176. package/esm/bff/modules/pandora/coupon/types.d.ts +0 -409
  177. package/esm/bff/modules/pandora/coupon/types.mjs +0 -1
  178. package/esm/bff/modules/pandora/franchisee/service.d.ts +0 -19
  179. package/esm/bff/modules/pandora/franchisee/service.mjs +0 -36
  180. package/esm/bff/modules/pandora/franchisee/types.d.ts +0 -204
  181. package/esm/bff/modules/pandora/franchisee/types.mjs +0 -1
  182. package/esm/bff/modules/pandora/pointRule/service.d.ts +0 -53
  183. package/esm/bff/modules/pandora/pointRule/service.mjs +0 -68
  184. package/esm/bff/modules/pandora/pointRule/types.d.ts +0 -38
  185. package/esm/bff/modules/pandora/pointRule/types.mjs +0 -1
  186. package/esm/bff/modules/pandora/pointsMall/service.d.ts +0 -47
  187. package/esm/bff/modules/pandora/pointsMall/service.mjs +0 -60
  188. package/esm/bff/modules/pandora/pointsMall/types.d.ts +0 -177
  189. package/esm/bff/modules/pandora/pointsMall/types.mjs +0 -1
  190. package/esm/bff/modules/pandora/role/service.d.ts +0 -47
  191. package/esm/bff/modules/pandora/role/service.mjs +0 -60
  192. package/esm/bff/modules/pandora/role/types.d.ts +0 -135
  193. package/esm/bff/modules/pandora/role/types.mjs +0 -1
  194. package/esm/bff/modules/pandora/store/service.d.ts +0 -95
  195. package/esm/bff/modules/pandora/store/service.mjs +0 -124
  196. package/esm/bff/modules/pandora/store/types.d.ts +0 -883
  197. package/esm/bff/modules/pandora/store/types.mjs +0 -1
  198. package/esm/bff/modules/pandora/storeClerk/service.d.ts +0 -41
  199. package/esm/bff/modules/pandora/storeClerk/service.mjs +0 -52
  200. package/esm/bff/modules/pandora/storeClerk/types.d.ts +0 -130
  201. package/esm/bff/modules/pandora/storeClerk/types.mjs +0 -1
  202. package/esm/bff/modules/pandora/storeManager/service.d.ts +0 -47
  203. package/esm/bff/modules/pandora/storeManager/service.mjs +0 -60
  204. package/esm/bff/modules/pandora/storeManager/types.d.ts +0 -148
  205. package/esm/bff/modules/pandora/storeManager/types.mjs +0 -1
  206. package/esm/bff/modules/pandora/storeUserRelation/service.d.ts +0 -41
  207. package/esm/bff/modules/pandora/storeUserRelation/service.mjs +0 -52
  208. package/esm/bff/modules/pandora/storeUserRelation/types.d.ts +0 -223
  209. package/esm/bff/modules/pandora/storeUserRelation/types.mjs +0 -1
  210. package/esm/bff/modules/pandora/task/service.d.ts +0 -65
  211. package/esm/bff/modules/pandora/task/service.mjs +0 -84
  212. package/esm/bff/modules/pandora/task/types.d.ts +0 -36
  213. package/esm/bff/modules/pandora/task/types.mjs +0 -1
  214. package/esm/bff/modules/pandora/taskWatch/service.d.ts +0 -23
  215. package/esm/bff/modules/pandora/taskWatch/service.mjs +0 -28
  216. package/esm/bff/modules/pandora/taskWatch/types.d.ts +0 -15
  217. package/esm/bff/modules/pandora/taskWatch/types.mjs +0 -1
  218. package/esm/bff/modules/pandora/user/service.d.ts +0 -20
  219. package/esm/bff/modules/pandora/user/service.mjs +0 -39
  220. package/esm/bff/modules/pandora/user/types.d.ts +0 -194
  221. package/esm/bff/modules/pandora/user/types.mjs +0 -1
  222. package/esm/bff/modules/pandora/userManager/service/address.service.d.ts +0 -12
  223. package/esm/bff/modules/pandora/userManager/service/address.service.mjs +0 -25
  224. package/esm/bff/modules/pandora/userManager/service/coupon.service.d.ts +0 -11
  225. package/esm/bff/modules/pandora/userManager/service/coupon.service.mjs +0 -22
  226. package/esm/bff/modules/pandora/userManager/service/index.d.ts +0 -5
  227. package/esm/bff/modules/pandora/userManager/service/index.mjs +0 -5
  228. package/esm/bff/modules/pandora/userManager/service/point.service.d.ts +0 -13
  229. package/esm/bff/modules/pandora/userManager/service/point.service.mjs +0 -28
  230. package/esm/bff/modules/pandora/userManager/service/region.service.d.ts +0 -14
  231. package/esm/bff/modules/pandora/userManager/service/region.service.mjs +0 -31
  232. package/esm/bff/modules/pandora/userManager/service/user.service.d.ts +0 -12
  233. package/esm/bff/modules/pandora/userManager/service/user.service.mjs +0 -25
  234. package/esm/bff/modules/pandora/userManager/types/address.types.d.ts +0 -94
  235. package/esm/bff/modules/pandora/userManager/types/address.types.mjs +0 -1
  236. package/esm/bff/modules/pandora/userManager/types/coupon.types.d.ts +0 -99
  237. package/esm/bff/modules/pandora/userManager/types/coupon.types.mjs +0 -1
  238. package/esm/bff/modules/pandora/userManager/types/index.d.ts +0 -5
  239. package/esm/bff/modules/pandora/userManager/types/index.mjs +0 -5
  240. package/esm/bff/modules/pandora/userManager/types/point.types.d.ts +0 -113
  241. package/esm/bff/modules/pandora/userManager/types/point.types.mjs +0 -1
  242. package/esm/bff/modules/pandora/userManager/types/region.types.d.ts +0 -77
  243. package/esm/bff/modules/pandora/userManager/types/region.types.mjs +0 -1
  244. package/esm/bff/modules/pandora/userManager/types/user.types.d.ts +0 -124
  245. package/esm/bff/modules/pandora/userManager/types/user.types.mjs +0 -1
@@ -1,113 +1,53 @@
1
1
  import { StandardResponse } from '../../../../types';
2
2
  export declare namespace PandoraProductExpService {
3
3
  interface ProductCategory {
4
- /** 分类ID */
5
4
  id: string;
6
- /** 父级ID */
7
5
  parentId: string;
8
- /** 层级 */
9
- level: number;
10
- /** 分类名称 */
6
+ level: string;
11
7
  categoryName: string;
12
8
  }
13
9
  namespace Request {
14
- interface getSupplierList {
15
- /** 页码,0开始 */
16
- pageIndex: number;
17
- /** 每页数量 */
18
- pageSize: number;
19
- /** 供应商名称,模糊匹配 */
20
- supplierName?: string;
21
- }
22
10
  interface addSupplier {
23
- /** 供应商名称 */
24
11
  supplierName: string;
25
- }
26
- interface getLiveGroupList {
27
- /** 页码,0开始 */
28
- pageIndex: number;
29
- /** 每页数量 */
30
- pageSize: number;
31
- /** 直播分组名称,模糊匹配 */
32
- liveGroupName?: string;
12
+ creatorId: string;
33
13
  }
34
14
  interface addLiveGroup {
35
- /** 直播分组名称 */
36
15
  liveGroupName: string;
37
- }
38
- interface productCategoryList {
39
- /** 分类层级 */
40
- level: number;
41
- /** 父分类ID */
42
- parentId?: string;
43
- }
44
- interface setStoreScope {
45
- /** 商品Id */
46
- productId: string;
47
- /** 类型 VISIBLE | INVISIBLE */
48
- type: string;
49
- /** 门店Id列表 */
50
- storeIds: string[];
51
- }
52
- interface queryStoreScope {
53
- /** 商品Id */
54
- productId: string;
16
+ creatorId: string;
55
17
  }
56
18
  }
57
19
  namespace Response {
58
20
  interface addSupplier {
59
- /** 供应商Id */
60
21
  supplierId: string;
61
22
  }
62
23
  interface getSupplierList {
63
- total: number;
64
- list: {
65
- /** 供应商Id */
66
- supplierId: string;
67
- /** 供应商名称 */
68
- supplierName: string;
69
- }[];
24
+ supplierId: string;
25
+ supplierName: string;
70
26
  }
71
27
  interface addLiveGroup {
72
- /** 直播分组Id */
73
28
  liveGroupId: string;
74
29
  }
75
30
  interface getLiveGroupList {
76
- total: number;
77
- list: {
78
- /** 直播分组Id */
79
- liveGroupId: string;
80
- /** 直播分组名称 */
81
- liveGroupName: string;
82
- }[];
31
+ liveGroupId: string;
32
+ liveGroupName: string;
33
+ }
34
+ interface ProductCategoryTree extends ProductCategory {
35
+ children?: ProductCategoryTree[];
83
36
  }
84
37
  interface list {
85
38
  total: number;
86
39
  list: {
87
- /** 商品ID */
88
40
  productId: string;
89
- /** 商品名称 */
90
41
  productName: string;
91
- /** 商品图片 */
92
42
  productImage: string;
93
- /** 价格 */
94
43
  price: number;
95
- /** 库存 */
96
44
  stock: number;
97
45
  }[];
98
46
  }
99
47
  interface getProductManagerList {
100
- /** 产品经理ID */
101
48
  productManagerId: string;
102
- /** 产品经理名称 */
103
49
  productManagerName: string;
104
50
  }
105
- interface queryStoreScope {
106
- /** 类型 VISIBLE | INVISIBLE */
107
- type: string;
108
- /** 门店Id列表 */
109
- storeIds: string[];
110
- }
111
51
  }
112
52
  /**
113
53
  * ProductLive Controller 接口定义
@@ -116,7 +56,7 @@ export declare namespace PandoraProductExpService {
116
56
  /**
117
57
  * 获取供应商列表
118
58
  */
119
- getSupplierList(request: PandoraProductExpService.Request.getSupplierList): Promise<StandardResponse<PandoraProductExpService.Response.getSupplierList>>;
59
+ getSupplierList(): Promise<StandardResponse<PandoraProductExpService.Response.getSupplierList[]>>;
120
60
  /**
121
61
  * 新增供应商
122
62
  */
@@ -124,26 +64,18 @@ export declare namespace PandoraProductExpService {
124
64
  /**
125
65
  * 获取直播分组列表
126
66
  */
127
- getLiveGroupList(request: PandoraProductExpService.Request.getLiveGroupList): Promise<StandardResponse<PandoraProductExpService.Response.getLiveGroupList>>;
67
+ getLiveGroupList(): Promise<StandardResponse<PandoraProductExpService.Response.getLiveGroupList[]>>;
128
68
  /**
129
69
  * 新增直播分组
130
70
  */
131
71
  addLiveGroup(request: PandoraProductExpService.Request.addLiveGroup): Promise<StandardResponse<PandoraProductExpService.Response.addLiveGroup>>;
132
72
  /**
133
- * 获取产品经理列表
134
- */
135
- getProductManagerList(): Promise<StandardResponse<PandoraProductExpService.Response.getProductManagerList[]>>;
136
- /**
137
- * 商品分类列表
73
+ * 商品分类 树结构
138
74
  */
139
- productCategoryList(request: PandoraProductExpService.Request.productCategoryList): Promise<StandardResponse<PandoraProductExpService.ProductCategory[]>>;
75
+ productCategoryTree(): Promise<StandardResponse<PandoraProductExpService.Response.ProductCategoryTree>>;
140
76
  /**
141
- * 设置门店范围
142
- */
143
- setStoreScope(request: PandoraProductExpService.Request.setStoreScope): Promise<StandardResponse<void>>;
144
- /**
145
- * 获取门店范围
77
+ * 获取产品经理列表
146
78
  */
147
- queryStoreScope(request: PandoraProductExpService.Request.queryStoreScope): Promise<StandardResponse<PandoraProductExpService.Response.queryStoreScope>>;
79
+ getProductManagerList(): Promise<StandardResponse<PandoraProductExpService.Response.getProductManagerList>>;
148
80
  }
149
81
  }
@@ -19,7 +19,7 @@ export declare class PandoraProductLiveService extends BaseService implements Se
19
19
  * @param request - 请求参数
20
20
  * @returns Promise,解析为标准响应格式
21
21
  */
22
- add(request: Service.Request.operate[]): Promise<StandardResponse<void>>;
22
+ add(request: Service.Request.operate): Promise<StandardResponse<void>>;
23
23
  /**
24
24
  * 删除商品
25
25
  * @param request - 请求参数
@@ -2,17 +2,12 @@ import { StandardResponse } from '../../../../types';
2
2
  export declare namespace PandoraProductLiveService {
3
3
  namespace Request {
4
4
  interface list {
5
- /** 0 开始 */
6
5
  pageIndex: number;
7
- /** 每页数量 */
8
6
  pageSize: number;
9
- /** 直播间ID */
10
7
  liveRoomId: string;
11
8
  }
12
9
  interface operate {
13
- /** 商品ID */
14
10
  productId: string;
15
- /** 直播间ID */
16
11
  liveRoomId: string;
17
12
  }
18
13
  }
@@ -20,15 +15,10 @@ export declare namespace PandoraProductLiveService {
20
15
  interface list {
21
16
  total: number;
22
17
  list: {
23
- /** 商品ID */
24
18
  productId: string;
25
- /** 商品名称 */
26
19
  productName: string;
27
- /** 商品图片 */
28
20
  productImage: string;
29
- /** 价格 */
30
21
  price: number;
31
- /** 库存 */
32
22
  stock: number;
33
23
  }[];
34
24
  }
@@ -44,7 +34,7 @@ export declare namespace PandoraProductLiveService {
44
34
  /**
45
35
  * 新增商品
46
36
  */
47
- add(request: PandoraProductLiveService.Request.operate[]): Promise<StandardResponse<void>>;
37
+ add(request: PandoraProductLiveService.Request.operate): Promise<StandardResponse<void>>;
48
38
  /**
49
39
  * 删除商品
50
40
  */
@@ -56,10 +56,4 @@ export declare class PandoraRoomService extends BaseService implements Service.B
56
56
  * @returns Promise,解析为标准响应格式
57
57
  */
58
58
  bindStore(request: Service.Request.BindStore): Promise<StandardResponse<void>>;
59
- /**
60
- * 根据门店绑定关系查询直播间列表
61
- * @param request - 请求参数
62
- * @returns Promise,解析为标准响应格式
63
- */
64
- listByStoreBind(request: Service.Request.ListByStoreBind): Promise<StandardResponse<Service.Response.ListByStoreBind>>;
65
59
  }
@@ -73,12 +73,4 @@ export class PandoraRoomService extends BaseService {
73
73
  bindStore(request) {
74
74
  return this.request(this.bindStore, request);
75
75
  }
76
- /**
77
- * 根据门店绑定关系查询直播间列表
78
- * @param request - 请求参数
79
- * @returns Promise,解析为标准响应格式
80
- */
81
- listByStoreBind(request) {
82
- return this.request(this.listByStoreBind, request);
83
- }
84
76
  }
@@ -80,17 +80,6 @@ export declare namespace RoomService {
80
80
  /** 门店ID列表 */
81
81
  bind: string[];
82
82
  }
83
- /**
84
- * 根据门店绑定关系查询直播间列表
85
- */
86
- interface ListByStoreBind {
87
- /** 门店ID */
88
- storeId: string;
89
- /** 页码,从0开始 */
90
- pageIndex: number;
91
- /** 每页数量,默认20,最大100 */
92
- pageSize?: number;
93
- }
94
83
  }
95
84
  namespace Response {
96
85
  /**
@@ -145,13 +134,6 @@ export declare namespace RoomService {
145
134
  /** 门店总数 */
146
135
  total: number;
147
136
  }
148
- /**
149
- * 根据门店绑定关系查询直播间列表响应
150
- */
151
- interface ListByStoreBind {
152
- list: Room[];
153
- total: number;
154
- }
155
137
  }
156
138
  interface BaseController {
157
139
  list(request: Request.List): Promise<StandardResponse<Response.List>>;
@@ -162,7 +144,6 @@ export declare namespace RoomService {
162
144
  roomStatus(request: Request.RoomStatus): Promise<StandardResponse<Response.RoomStatus>>;
163
145
  getBindStore(request: Request.GetBindStore): Promise<StandardResponse<Response.GetBindStore>>;
164
146
  bindStore(request: Request.BindStore): Promise<StandardResponse<void>>;
165
- listByStoreBind(request: Request.ListByStoreBind): Promise<StandardResponse<Response.ListByStoreBind>>;
166
147
  }
167
148
  }
168
149
  /**
@@ -244,8 +225,8 @@ export interface RoomBindStore {
244
225
  address: string;
245
226
  /** 门店电话 */
246
227
  telephone: string;
247
- /** 绑定标签,根据是否是空字符串表示是否有分组 */
248
- tags: string[];
228
+ /** 绑定标签id,根据是否是空字符串表示是否有分组 */
229
+ tagId: string;
249
230
  /** 联系人姓名(店长) */
250
231
  storeManagerName: string;
251
232
  /** 直播间id,根据id是否为空字符串表示是否绑定了本店 */
@@ -109,7 +109,6 @@ export class MiniProgramRequestStrategy extends BaseRequestStrategy {
109
109
  const requestId = headers['x-request-id'] || 'unknown';
110
110
  try {
111
111
  // 类型守卫,确保 wx 可用
112
- // @ts-ignore
113
112
  const wxGlobal = typeof wx !== 'undefined' ? wx : null;
114
113
  if (!wxGlobal || !wxGlobal.request) {
115
114
  if (console?.error) {
package/esm/enums.d.ts CHANGED
@@ -3,11 +3,4 @@
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';
8
6
  export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
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/esm/enums.mjs CHANGED
@@ -4,17 +4,5 @@
4
4
  */
5
5
  // 商品服务枚举
6
6
  export { ENUM as PRODUCT_SERVICE_ENUM } from '@be-link/ecommerce-product-service-node-sdk/enum';
7
- export { ENUM as STORE_SERVICE_ENUM } from '@be-link/ecommerce-store-service-node-sdk/enums';
8
- export { ENUM as PROMOTION_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
9
7
  // 直播间枚举
10
8
  export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
11
- // 优惠券服务枚举
12
- export { ENUM as PROMOTION_SERVICE_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
13
- // 用户服务枚举
14
- export { ENUM as USER_SERVICE_ENUM } from '@be-link/ecommerce-user-service-node-sdk/enum';
15
- // 交易服务枚举
16
- export { ENUM as TRADE_SERVICE_ENUM } from '@be-link/ecommerce-trade-service-node-sdk/enums';
17
- // 任务中心服务枚举
18
- export { ENUM as TASK_CENTER_ENUM } from '@be-link/ecommerce-task-center-service-node-sdk/enum';
19
- // 后台用户枚举
20
- export { ENUM as BACKEND_SERVICE_ENUM } from '@be-link/ecommerce-backend-user-service-node-sdk/enum';
package/esm/index.d.ts CHANGED
@@ -1,35 +1,10 @@
1
- import { PandoraStoreService } from './bff/modules/pandora/store/service';
2
- import { PandoraStoreUserRelationService } from './bff/modules/pandora/storeUserRelation/service';
3
- import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
4
- import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service';
5
- import { PandoraAuthService } from './bff/modules/pandora/auth/service';
6
- import { PandoraBDService } from './bff/modules/pandora/bd/service';
7
- import { PandoraBDMService } from './bff/modules/pandora/bdm/service';
8
- import { PandoraCommonService } from './bff/modules/pandora/common/service';
9
- import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
10
1
  import { PandoraExampleService } from './bff/modules/pandora/example/service';
2
+ import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
11
3
  import { PandoraProductService } from './bff/modules/pandora/product/service';
12
4
  import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
13
5
  import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
14
- import { PandoraRoleService } from './bff/modules/pandora/role/service';
15
- import { PandoraRoomService } from './bff/modules/pandora/room/service';
16
- import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
17
- import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
18
- import { PandoraUserService } from './bff/modules/pandora/user/service';
19
- import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service';
20
- import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service';
21
- import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service';
22
- import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service';
23
- import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service';
24
- import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service';
25
6
  import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service';
26
7
  import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
27
- import { PandoraTaskService } from './bff/modules/pandora/task/service';
28
- import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service';
29
- import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service';
30
- import { PandoraAwardService } from './bff/modules/pandora/award/service';
31
- import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
32
- import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
33
8
  import { SdkOptions } from './types';
34
9
  /**
35
10
  * Pandora 平台 SDK(管理后台)
@@ -44,46 +19,11 @@ export declare class PandoraSDK {
44
19
  * Pandora 示例服务模块
45
20
  */
46
21
  example: PandoraExampleService;
47
- auth: PandoraAuthService;
48
- bd: PandoraBDService;
49
- bdm: PandoraBDMService;
50
- common: PandoraCommonService;
51
- role: PandoraRoleService;
52
- storeClerk: PandoraStoreClerkService;
53
- storeManager: PandoraStoreManagerService;
54
- user: PandoraUserService;
55
- userManagement: PandoraUserManagementService;
56
- pointManagement: PandoraPointManagementService;
57
- couponManagement: PandoraCouponManagementService;
58
- addressManagement: PandoraAddressManagementService;
59
- regionManagement: PandoraRegionManagementService;
60
22
  product: PandoraProductService;
61
23
  productExp: PandoraProductExpService;
62
24
  productLive: PandoraProductLiveService;
63
- coupon: PandoraCouponService;
64
- pointMall: PandoraPointsMallService;
65
- /**
66
- * Pandora 门店服务模块
67
- */
68
- store: PandoraStoreService;
69
- /**
70
- * Pandora 门店用户关系服务模块
71
- */
72
- storeUserRelation: PandoraStoreUserRelationService;
73
- award: PandoraAwardService;
74
- /**
75
- * 直播间模块
76
- */
77
- room: PandoraRoomService;
78
25
  orderQuery: PandoraOrderQueryService;
79
26
  orderCore: PandoraOrderCoreService;
80
- task: PandoraTaskService;
81
- taskWatch: PandoraTaskWatchService;
82
- pointRule: PandoraPointRuleService;
83
- /**
84
- * 加盟商模块
85
- */
86
- franchisee: PandoraFranchiseeService;
87
27
  /**
88
28
  * 使用配置选项初始化 Pandora SDK
89
29
  * @param options - SDK 配置,包含凭证回调函数
@@ -103,48 +43,20 @@ export declare class MiniProgramSDK {
103
43
  * 小程序 Demo 服务模块
104
44
  */
105
45
  demo: MiniProgramDemoService;
106
- /**
107
- * 小程序认证服务模块
108
- */
109
- auth: MiniprogramAuthServiceClass;
110
- /**
111
- * 加盟商模块
112
- */
113
- franchisee: MiniprogramFranchiseeService;
114
46
  /**
115
47
  * 使用配置选项初始化小程序 SDK
116
48
  * @param options - SDK 配置,包含凭证回调函数
117
49
  */
118
50
  constructor(options: SdkOptions);
119
51
  }
120
- export { BizError, SdkError, SystemError } from './errors';
121
- export { IRequestStrategy, SdkOptions, StandardResponse } from './types';
52
+ export { SdkError, BizError, SystemError } from './errors';
53
+ export { SdkOptions, IRequestStrategy, StandardResponse } from './types';
122
54
  export * from './enums';
123
55
  export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
124
- export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
125
56
  export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
126
- export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
127
- export { StoreUserRelationService as PandoraStoreUserRelationServiceTypes } from './bff/modules/pandora/storeUserRelation/types';
128
- export { PandoraAuthService as PandoraAuthServiceTypes } from './bff/modules/pandora/auth/types';
129
- export { PandoraBDService as PandoraBDServiceTypes } from './bff/modules/pandora/bd/types';
130
- export { PandoraBDMService as PandoraBDMServiceTypes } from './bff/modules/pandora/bdm/types';
131
- export { PandoraCommonService as PandoraCommonServiceTypes } from './bff/modules/pandora/common/types';
132
- export { PandoraRoleService as PandoraRoleServiceTypes } from './bff/modules/pandora/role/types';
133
- export { PandoraStoreClerkService as PandoraStoreClerkServiceTypes } from './bff/modules/pandora/storeClerk/types';
134
- export { PandoraStoreManagerService as PandoraStoreManagerServiceTypes } from './bff/modules/pandora/storeManager/types';
135
- export { PandoraUserService as PandoraUserServiceTypes } from './bff/modules/pandora/user/types';
136
- export * from './bff/modules/pandora/userManager/types';
137
57
  export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
138
58
  export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
139
59
  export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
140
60
  export { PandoraOrderQueryService as PandoraOrderQueryServiceTypes } from './bff/modules/pandora/orderQuery/types';
141
61
  export { PandoraOrderCoreService as PandoraOrderCoreServiceTypes } from './bff/modules/pandora/orderCore/types';
142
- export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
143
- export { PandoraTaskWatchService as PandoraTaskWatchServiceTypes } from './bff/modules/pandora/taskWatch/types';
144
- export { PandoraPointRuleService as PandoraPointRuleServiceTypes } from './bff/modules/pandora/pointRule/types';
145
62
  export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
146
- export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
147
- export { PointMallService as PointMallServiceTypes } from './bff/modules/pandora/pointsMall/types';
148
- export { AwardService as PandoraAwardServiceTypes } from './bff/modules/pandora/award/types';
149
- export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
150
- export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
package/esm/index.mjs CHANGED
@@ -1,36 +1,11 @@
1
- import { PandoraStoreService } from './bff/modules/pandora/store/service.mjs';
2
- import { PandoraStoreUserRelationService } from './bff/modules/pandora/storeUserRelation/service.mjs';
3
- import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service.mjs';
4
- import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service.mjs';
5
- import { PandoraAuthService } from './bff/modules/pandora/auth/service.mjs';
6
- import { PandoraBDService } from './bff/modules/pandora/bd/service.mjs';
7
- import { PandoraBDMService } from './bff/modules/pandora/bdm/service.mjs';
8
- import { PandoraCommonService } from './bff/modules/pandora/common/service.mjs';
9
- import { PandoraCouponService } from './bff/modules/pandora/coupon/service.mjs';
1
+ import { HttpClient } from './bff/request/client.mjs';
10
2
  import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
3
+ import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service.mjs';
11
4
  import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
12
5
  import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
13
6
  import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service.mjs';
14
- import { PandoraRoleService } from './bff/modules/pandora/role/service.mjs';
15
- import { PandoraRoomService } from './bff/modules/pandora/room/service.mjs';
16
- import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service.mjs';
17
- import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
18
- import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
19
- import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service.mjs';
20
- import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service.mjs';
21
- import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service.mjs';
22
- import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service.mjs';
23
- import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service.mjs';
24
- import { HttpClient } from './bff/request/client.mjs';
25
- import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service.mjs';
26
7
  import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service.mjs';
27
8
  import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service.mjs';
28
- import { PandoraTaskService } from './bff/modules/pandora/task/service.mjs';
29
- import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service.mjs';
30
- import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service.mjs';
31
- import { PandoraAwardService } from './bff/modules/pandora/award/service.mjs';
32
- import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service.mjs';
33
- import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service.mjs';
34
9
  /**
35
10
  * Pandora 平台 SDK(管理后台)
36
11
  * 包含所有 Pandora 平台相关的服务
@@ -45,34 +20,11 @@ export class PandoraSDK {
45
20
  this.http = new HttpClient(options);
46
21
  // 使用 HttpClient 实例化所有 Pandora 服务模块
47
22
  this.example = new PandoraExampleService(this.http);
48
- this.auth = new PandoraAuthService(this.http);
49
- this.bd = new PandoraBDService(this.http);
50
- this.bdm = new PandoraBDMService(this.http);
51
- this.common = new PandoraCommonService(this.http);
52
- this.role = new PandoraRoleService(this.http);
53
- this.storeClerk = new PandoraStoreClerkService(this.http);
54
- this.storeManager = new PandoraStoreManagerService(this.http);
55
- this.user = new PandoraUserService(this.http);
56
23
  this.product = new PandoraProductService(this.http);
57
24
  this.productExp = new PandoraProductExpService(this.http);
58
25
  this.productLive = new PandoraProductLiveService(this.http);
59
- this.store = new PandoraStoreService(this.http);
60
- this.storeUserRelation = new PandoraStoreUserRelationService(this.http);
61
- this.room = new PandoraRoomService(this.http);
62
- this.coupon = new PandoraCouponService(this.http);
63
- this.userManagement = new PandoraUserManagementService(this.http);
64
- this.pointManagement = new PandoraPointManagementService(this.http);
65
- this.couponManagement = new PandoraCouponManagementService(this.http);
66
- this.addressManagement = new PandoraAddressManagementService(this.http);
67
- this.regionManagement = new PandoraRegionManagementService(this.http);
68
- this.pointMall = new PandoraPointsMallService(this.http);
69
26
  this.orderQuery = new PandoraOrderQueryService(this.http);
70
27
  this.orderCore = new PandoraOrderCoreService(this.http);
71
- this.task = new PandoraTaskService(this.http);
72
- this.taskWatch = new PandoraTaskWatchService(this.http);
73
- this.pointRule = new PandoraPointRuleService(this.http);
74
- this.award = new PandoraAwardService(this.http);
75
- this.franchisee = new PandoraFranchiseeService(this.http);
76
28
  }
77
29
  }
78
30
  /**
@@ -89,13 +41,10 @@ export class MiniProgramSDK {
89
41
  this.http = new HttpClient(options);
90
42
  // 使用 HttpClient 实例化所有小程序服务模块
91
43
  this.demo = new MiniProgramDemoService(this.http);
92
- this.auth = new MiniprogramAuthServiceClass(this.http);
93
- this.franchisee = new MiniprogramFranchiseeService(this.http);
94
44
  }
95
45
  }
96
46
  // ==================== 导出 ====================
97
47
  // 错误类
98
- export { BizError, SdkError, SystemError } from './errors/index.mjs';
48
+ export { SdkError, BizError, SystemError } from './errors/index.mjs';
99
49
  // 枚举和常量
100
50
  export * from './enums.mjs';
101
- export * from './bff/modules/pandora/userManager/types/index.mjs';
package/esm/utils/env.mjs CHANGED
@@ -3,7 +3,6 @@
3
3
  * @returns 如果在微信小程序环境中运行则返回 true
4
4
  */
5
5
  export function isMiniProgram() {
6
- // @ts-ignore
7
6
  return typeof wx !== 'undefined' && !!wx.cloud;
8
7
  }
9
8
  /**
@@ -39,7 +39,6 @@ export function generateUUID() {
39
39
  return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20, 32)}`;
40
40
  }
41
41
  // 降级方案 2:微信小程序环境(尝试使用 wx.getRandomValues)
42
- // @ts-ignore
43
42
  if (typeof wx !== 'undefined' && typeof wx.getRandomValues === 'function') {
44
43
  try {
45
44
  const bytes = new Uint8Array(16);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-backend-bff-service-node-sdk",
3
- "version": "0.0.111",
3
+ "version": "0.0.112",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./cjs/index.js",
@@ -24,16 +24,9 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@be-link/ecommerce-backend-user-service-node-sdk": "^0.0.10",
28
- "@be-link/ecommerce-product-service-node-sdk": "^0.0.32",
27
+ "@be-link/ecommerce-product-service-node-sdk": "^0.0.4",
29
28
  "@be-link/ecommerce-volcengine-open-api-sdk": "^1.0.11",
30
- "@be-link/ecommerce-client-backend-service-node-sdk": "^0.0.19",
31
- "@be-link/ecommerce-tag-service-node-sdk": "^0.0.14",
32
- "@be-link/ecommerce-store-service-node-sdk": "^0.0.25",
33
- "@be-link/ecommerce-user-service-node-sdk": "0.0.26",
34
- "@be-link/ecommerce-trade-service-node-sdk": "0.0.64",
35
- "@be-link/ecommerce-task-center-service-node-sdk": "^0.0.42",
36
- "@be-link/ecommerce-promotion-service-node-sdk": "^0.0.36",
29
+ "@be-link/ecommerce-trade-service-node-sdk": "^0.0.16",
37
30
  "axios": "1.13.2"
38
31
  },
39
32
  "devDependencies": {
@@ -1,46 +0,0 @@
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
- }