jmash-core-mp 0.1.91 → 0.1.92

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 (242) hide show
  1. package/.editorconfig +9 -9
  2. package/.gitignore +8 -0
  3. package/.npmignore +44 -0
  4. package/README.md +60 -60
  5. package/babel.config.json +34 -34
  6. package/eslint.config.mjs +7 -7
  7. package/lib/api/auth/index.d.ts +22 -22
  8. package/lib/api/auth/index.js +211 -211
  9. package/lib/api/auth/types.d.ts +90 -90
  10. package/lib/api/auth/types.js +9 -9
  11. package/lib/api/cms/index.d.ts +27 -27
  12. package/lib/api/cms/index.js +259 -259
  13. package/lib/api/cms/types.d.ts +374 -354
  14. package/lib/api/cms/types.js +1 -1
  15. package/lib/api/constant.d.ts +6 -6
  16. package/lib/api/constant.js +8 -8
  17. package/lib/api/dict/index.d.ts +24 -24
  18. package/lib/api/dict/index.js +51 -51
  19. package/lib/api/dict/types.d.ts +40 -40
  20. package/lib/api/dict/types.js +1 -1
  21. package/lib/api/dicts.d.ts +32 -32
  22. package/lib/api/dicts.js +118 -118
  23. package/lib/api/files/index.d.ts +25 -25
  24. package/lib/api/files/index.js +134 -134
  25. package/lib/api/files/types.d.ts +38 -38
  26. package/lib/api/files/types.js +1 -1
  27. package/lib/api/index.d.ts +5 -5
  28. package/lib/api/index.js +8 -8
  29. package/lib/api/myorgan/index.d.ts +8 -8
  30. package/lib/api/myorgan/index.js +24 -24
  31. package/lib/api/myorgan/types.d.ts +22 -22
  32. package/lib/api/myorgan/types.js +1 -1
  33. package/lib/api/region/index.d.ts +7 -7
  34. package/lib/api/region/index.js +20 -20
  35. package/lib/api/region/types.d.ts +19 -19
  36. package/lib/api/region/types.js +1 -1
  37. package/lib/api/shop/index.d.ts +11 -11
  38. package/lib/api/shop/index.js +53 -53
  39. package/lib/api/shop/types.d.ts +124 -124
  40. package/lib/api/shop/types.js +1 -1
  41. package/lib/api/storage/index.d.ts +11 -11
  42. package/lib/api/storage/index.js +53 -53
  43. package/lib/api/storage/types.d.ts +39 -39
  44. package/lib/api/storage/types.js +1 -1
  45. package/lib/api/types.d.ts +43 -43
  46. package/lib/api/types.js +1 -1
  47. package/lib/app.mpx.d.ts +1 -1
  48. package/lib/components/auth-user/jmash-update-user.mpx.d.ts +1 -1
  49. package/lib/components/auth-user/jmash-user.mpx.d.ts +1 -1
  50. package/lib/components/cms/jmash-cms-activity-item.mpx.d.ts +1 -1
  51. package/lib/components/cms/jmash-cms-activity-list.mpx.d.ts +1 -1
  52. package/lib/components/cms/jmash-cms-article-item.mpx.d.ts +1 -1
  53. package/lib/components/cms/jmash-cms-article-list.mpx.d.ts +1 -1
  54. package/lib/components/cms/jmash-cms-article-view.mpx.d.ts +1 -1
  55. package/lib/components/cms/jmash-cms-article.mpx.d.ts +1 -1
  56. package/lib/components/cms/jmash-cms-like.mpx.d.ts +1 -1
  57. package/lib/components/cms/jmash-cms-location-list.mpx.d.ts +1 -1
  58. package/lib/components/cms/jmash-cms-location.mpx.d.ts +1 -1
  59. package/lib/components/cms/jmash-cms-product-item.mpx.d.ts +1 -1
  60. package/lib/components/cms/jmash-cms-product-list.mpx.d.ts +1 -1
  61. package/lib/components/common/jmash-none-data.mpx.d.ts +1 -1
  62. package/lib/components/common/jmash-search.mpx.d.ts +1 -1
  63. package/lib/components/common/jmash-top-navigation.mpx.d.ts +1 -1
  64. package/lib/components/core/jmash-login.mpx.d.ts +1 -1
  65. package/lib/components/organ/browser-organ-list.mpx.d.ts +1 -1
  66. package/lib/components/organ/my-organ-list.mpx.d.ts +1 -1
  67. package/lib/components/organ/organ-item.mpx.d.ts +1 -1
  68. package/lib/components/organ/organ-search.mpx.d.ts +1 -1
  69. package/lib/components/organ/organ-selected-item.mpx.d.ts +1 -1
  70. package/lib/components/shop/branch-item.mpx.d.ts +1 -1
  71. package/lib/components/shop/branch-search.mpx.d.ts +1 -1
  72. package/lib/components/shop/shop-item.mpx.d.ts +1 -1
  73. package/lib/components/shop/shop-search.mpx.d.ts +1 -1
  74. package/lib/components/shop/shop-selected-item.mpx.d.ts +1 -1
  75. package/lib/index.d.ts +28 -28
  76. package/lib/index.js +23 -23
  77. package/lib/packages/pages/auth/setting-page.mpx.d.ts +1 -1
  78. package/lib/packages/pages/auth/web-view.mpx.d.ts +1 -1
  79. package/lib/packages/pages/cms/cms-activity-list.mpx.d.ts +1 -1
  80. package/lib/packages/pages/cms/cms-article-list.mpx.d.ts +1 -1
  81. package/lib/packages/pages/cms/cms-location-list.mpx.d.ts +1 -1
  82. package/lib/packages/pages/cms/cms-product-list.mpx.d.ts +1 -1
  83. package/lib/packages/pages/share/scan.mpx.d.ts +1 -1
  84. package/lib/pages/branch-search.mpx.d.ts +1 -1
  85. package/lib/pages/organ-search.mpx.d.ts +1 -1
  86. package/lib/pages/organ.mpx.d.ts +1 -1
  87. package/lib/pages/shop-search.mpx.d.ts +1 -1
  88. package/lib/store/organ.d.ts +19 -19
  89. package/lib/store/organ.js +83 -83
  90. package/lib/store/shop.d.ts +18 -18
  91. package/lib/store/shop.js +104 -104
  92. package/lib/store/user.d.ts +35 -35
  93. package/lib/store/user.js +246 -243
  94. package/lib/utils/common.d.ts +37 -37
  95. package/lib/utils/common.js +189 -189
  96. package/lib/utils/config.d.ts +5 -5
  97. package/lib/utils/config.js +38 -38
  98. package/lib/utils/db.d.ts +52 -52
  99. package/lib/utils/db.js +202 -202
  100. package/lib/utils/grpc.d.ts +5 -5
  101. package/lib/utils/grpc.js +20 -20
  102. package/lib/utils/net.d.ts +7 -7
  103. package/lib/utils/net.js +15 -15
  104. package/lib/utils/request.d.ts +2 -2
  105. package/lib/utils/request.js +118 -118
  106. package/lib/utils/share.d.ts +16 -16
  107. package/lib/utils/share.js +196 -196
  108. package/mpx.config.js +38 -38
  109. package/package.json +29 -38
  110. package/pnpm-workspace.yaml +5 -0
  111. package/postcss.config.js +11 -11
  112. package/project.config.json +24 -24
  113. package/project.private.config.json +13 -13
  114. package/public/index.html +15 -15
  115. package/src/api/auth/index.ts +241 -241
  116. package/src/api/auth/types.ts +173 -173
  117. package/src/api/cms/index.ts +347 -347
  118. package/src/api/cms/types.ts +720 -680
  119. package/src/api/constant.ts +8 -8
  120. package/src/api/dict/index.ts +68 -68
  121. package/src/api/dict/types.ts +73 -73
  122. package/src/api/dicts.ts +132 -132
  123. package/src/api/files/index.ts +162 -162
  124. package/src/api/files/types.ts +67 -67
  125. package/src/api/index.ts +15 -15
  126. package/src/api/myorgan/index.ts +29 -29
  127. package/src/api/myorgan/types.ts +42 -42
  128. package/src/api/region/index.ts +24 -24
  129. package/src/api/region/types.ts +36 -36
  130. package/src/api/shop/index.ts +74 -74
  131. package/src/api/shop/types.ts +246 -246
  132. package/src/api/storage/index.ts +74 -74
  133. package/src/api/storage/types.ts +74 -74
  134. package/src/api/types.ts +74 -74
  135. package/src/app.mpx +92 -78
  136. package/src/components/auth-user/jmash-logout.mpx +75 -93
  137. package/src/components/auth-user/jmash-update-user.mpx +419 -387
  138. package/src/components/auth-user/jmash-update-user.web.mpx +367 -367
  139. package/src/components/auth-user/jmash-user.mpx +293 -310
  140. package/src/components/cms/jmash-cms-activity-item.mpx +207 -207
  141. package/src/components/cms/jmash-cms-activity-list.mpx +357 -357
  142. package/src/components/cms/jmash-cms-article-item.mpx +221 -221
  143. package/src/components/cms/jmash-cms-article-list.mpx +248 -248
  144. package/src/components/cms/jmash-cms-article-view.mpx +131 -131
  145. package/src/components/cms/jmash-cms-article.mpx +240 -240
  146. package/src/components/cms/jmash-cms-like.mpx +151 -151
  147. package/src/components/cms/jmash-cms-location-list.mpx +286 -286
  148. package/src/components/cms/jmash-cms-location.mpx +265 -265
  149. package/src/components/cms/jmash-cms-product-item.mpx +185 -185
  150. package/src/components/cms/jmash-cms-product-list.mpx +230 -230
  151. package/src/components/common/jmash-avatar-edit.mpx +154 -154
  152. package/src/components/common/jmash-cascader-region.mpx +118 -118
  153. package/src/components/common/jmash-cell-group.mpx +221 -221
  154. package/src/components/common/jmash-code-interest-popup.mpx +223 -223
  155. package/src/components/common/jmash-follow-tip.mpx +107 -102
  156. package/src/components/common/jmash-form-cell.mpx +492 -492
  157. package/src/components/common/jmash-menu.mpx +129 -129
  158. package/src/components/common/jmash-none-data.mpx +95 -95
  159. package/src/components/common/jmash-pic-swiper.mpx +72 -72
  160. package/src/components/common/jmash-popup.mpx +138 -138
  161. package/src/components/common/jmash-search.mpx +130 -130
  162. package/src/components/common/jmash-single-btn.mpx +53 -53
  163. package/src/components/common/jmash-status-filter.mpx +1 -0
  164. package/src/components/common/jmash-stepper.mpx +236 -236
  165. package/src/components/common/jmash-swipe-cell.mpx +160 -153
  166. package/src/components/common/jmash-tab-bar.mpx +58 -58
  167. package/src/components/common/jmash-textarea.mpx +88 -88
  168. package/src/components/common/jmash-top-navigation.mpx +203 -203
  169. package/src/components/common/jmash-upload-picture.mpx +199 -199
  170. package/src/components/core/jmash-cms-protocol.mpx +72 -72
  171. package/src/components/core/jmash-login.ali.mpx +284 -284
  172. package/src/components/core/jmash-login.mpx +378 -378
  173. package/src/components/core/jmash-login.web.mpx +420 -420
  174. package/src/components/core/jmash-popup-login.ali.mpx +312 -312
  175. package/src/components/core/jmash-popup-login.mpx +414 -414
  176. package/src/components/core/jmash-popup-login.web.mpx +389 -389
  177. package/src/components/organ/browser-organ-list.mpx +66 -66
  178. package/src/components/organ/my-organ-list.mpx +67 -67
  179. package/src/components/organ/organ-item.mpx +124 -124
  180. package/src/components/organ/organ-search.mpx +148 -148
  181. package/src/components/organ/organ-selected-item.mpx +88 -88
  182. package/src/components/shop/branch-item.mpx +111 -111
  183. package/src/components/shop/branch-search.mpx +142 -142
  184. package/src/components/shop/shop-item.mpx +112 -112
  185. package/src/components/shop/shop-search.mpx +142 -142
  186. package/src/components/shop/shop-selected-item.mpx +89 -89
  187. package/src/custom-tab-bar/index.mpx +10 -10
  188. package/src/global.d.ts +18 -18
  189. package/src/index.ts +130 -130
  190. package/src/packages/index.mpx +17 -17
  191. package/src/packages/pages/auth/cms-protocol.mpx +35 -35
  192. package/src/packages/pages/auth/login.mpx +62 -62
  193. package/src/packages/pages/auth/setting-page.mpx +134 -134
  194. package/src/packages/pages/auth/update-user.mpx +17 -17
  195. package/src/packages/pages/auth/web-view.mpx +23 -23
  196. package/src/packages/pages/cms/cms-activity-list.mpx +86 -86
  197. package/src/packages/pages/cms/cms-article-list.mpx +88 -88
  198. package/src/packages/pages/cms/cms-article.mpx +32 -32
  199. package/src/packages/pages/cms/cms-location-list.mpx +83 -83
  200. package/src/packages/pages/cms/cms-location.mpx +32 -32
  201. package/src/packages/pages/cms/cms-product-list.mpx +88 -88
  202. package/src/packages/pages/share/scan.mpx +103 -104
  203. package/src/pages/basic-component.mpx +30 -30
  204. package/src/pages/branch-search.mpx +59 -60
  205. package/src/pages/cube-theme.mpx +170 -0
  206. package/src/pages/half-home.mpx +58 -58
  207. package/src/pages/home.mpx +54 -54
  208. package/src/pages/home2.mpx +45 -45
  209. package/src/pages/index.mpx +45 -43
  210. package/src/pages/organ-search.mpx +59 -60
  211. package/src/pages/organ.mpx +104 -105
  212. package/src/pages/shop-search.mpx +59 -60
  213. package/src/pages/tabbar/home.mpx +104 -114
  214. package/src/pages/tabbar/mall.mpx +77 -87
  215. package/src/pages/tabbar/my.mpx +77 -79
  216. package/src/pages/tabbar/organ.mpx +76 -86
  217. package/src/store/organ.ts +100 -100
  218. package/src/store/shop.ts +130 -130
  219. package/src/store/user.ts +291 -288
  220. package/src/styles/index.scss +20 -20
  221. package/src/styles/mixin.css +9 -0
  222. package/src/styles/theme-consumer.scss +281 -0
  223. package/src/styles/theme-default.scss +32 -0
  224. package/src/styles/theme-merchant.scss +159 -0
  225. package/src/styles/vars.scss +27 -27
  226. package/src/utils/common.ts +202 -202
  227. package/src/utils/config.ts +45 -45
  228. package/src/utils/db.ts +229 -229
  229. package/src/utils/grpc.ts +21 -21
  230. package/src/utils/net.ts +18 -18
  231. package/src/utils/request.ts +130 -130
  232. package/src/utils/share.ts +194 -194
  233. package/static/ali/mini.project.json +4 -4
  234. package/static/dd/project.config.json +15 -15
  235. package/static/swan/project.swan.json +14 -14
  236. package/static/tt/project.config.json +11 -11
  237. package/static/wx/project.config.json +40 -40
  238. package/lib/components/common/jmash-stepper.mpx.d.ts +0 -1
  239. package/lib/packages/pages/share/share-mall.mpx.d.ts +0 -1
  240. package/lib/packages/pages/share/share-organ.mpx.d.ts +0 -1
  241. package/lib/packages/pages/share/share-user.mpx.d.ts +0 -1
  242. package/uno.config.js +0 -9
package/.editorconfig CHANGED
@@ -1,9 +1,9 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
package/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ .DS_Store
2
+ node_modules/
3
+ npm-debug.log
4
+ .idea/
5
+ deploy/
6
+ output/
7
+ dist/
8
+ .vscode/
package/.npmignore ADDED
@@ -0,0 +1,44 @@
1
+ # Cache directories
2
+ .cache/
3
+ node_modules/
4
+ dist/
5
+
6
+ # Build artifacts
7
+ *.tgz
8
+ *.tar.gz
9
+
10
+ # IDE and editor files
11
+ .vscode/
12
+ .idea/
13
+ *.swp
14
+ *.swo
15
+ *~
16
+
17
+ # OS files
18
+ .DS_Store
19
+ Thumbs.db
20
+
21
+ # Log files
22
+ *.log
23
+ npm-debug.log*
24
+ pnpm-debug.log*
25
+ yarn-debug.log*
26
+ yarn-error.log*
27
+
28
+ # Test files
29
+ __tests__/
30
+ test/
31
+ *.test.js
32
+ *.spec.js
33
+
34
+ # Config files that shouldn't be published
35
+ .eslintrc*
36
+ .prettierrc*
37
+ jest.config.*
38
+ tsconfig.json
39
+ .babelrc*
40
+
41
+ # Environment files
42
+ .env
43
+ .env.local
44
+ .env.*.local
package/README.md CHANGED
@@ -1,60 +1,60 @@
1
- # jmash-core-mp
2
-
3
- 采用 MPX 构建的 Jmash 高性能跨端小程序。
4
- https://mpxjs.cn/
5
-
6
- ## Project setup
7
-
8
- ```javascript
9
- // 开发构建,默认输出微信小程序
10
- npm run serve
11
-
12
- // 开发构建,跨平台输出支付宝小程序
13
- npm run serve:ali
14
-
15
- // 开发构建,跨平台输出 Web
16
- npm run serve:web
17
-
18
- // 开发构建,跨平台输出其他平台小程序target = swan|tt|qq|jd|ks
19
- npm run serve -- --targets={target}
20
-
21
- // 开发构建,同时输出多平台产物
22
- npm run serve -- --targets=wx,ali,web
23
-
24
- // 生产构建,默认输出微信小程序
25
- npm run build
26
-
27
- // 生产构建,跨平台输出
28
- npm run build:ali
29
- npm run build:web
30
- npm run build -- --targets=wx,ali,web
31
- ```
32
-
33
- # ALi 小程序
34
-
35
- 登录
36
- minidev login
37
-
38
- 调试开发
39
- minidev dev
40
-
41
- 本地 IP 调试
42
- minidev dev --host 192.168.1.154
43
-
44
- 真机调试
45
- minidev remote-debug -a 2021006137629651
46
-
47
- Web 端调试
48
- minidev dev
49
- web -a 2021006137629651
50
- 真机预览
51
- minidev preview -a 2021006137629651
52
-
53
- # pnpm publish --no-git-checks
54
-
55
- 官方镜像
56
- npm config set registry https://registry.npmjs.org/
57
- 国内镜像
58
- npm config set registry https://registry.npmmirror.com/
59
- 代理镜像
60
- npm config set registry https://npm.crenjoy.com/
1
+ # jmash-core-mp
2
+
3
+ 采用 MPX 构建的 Jmash 高性能跨端小程序。
4
+ https://mpxjs.cn/
5
+
6
+ ## Project setup
7
+
8
+ ```javascript
9
+ // 开发构建,默认输出微信小程序
10
+ npm run serve
11
+
12
+ // 开发构建,跨平台输出支付宝小程序
13
+ npm run serve:ali
14
+
15
+ // 开发构建,跨平台输出 Web
16
+ npm run serve:web
17
+
18
+ // 开发构建,跨平台输出其他平台小程序target = swan|tt|qq|jd|ks
19
+ npm run serve -- --targets={target}
20
+
21
+ // 开发构建,同时输出多平台产物
22
+ npm run serve -- --targets=wx,ali,web
23
+
24
+ // 生产构建,默认输出微信小程序
25
+ npm run build
26
+
27
+ // 生产构建,跨平台输出
28
+ npm run build:ali
29
+ npm run build:web
30
+ npm run build -- --targets=wx,ali,web
31
+ ```
32
+
33
+ # ALi 小程序
34
+
35
+ 登录
36
+ minidev login
37
+
38
+ 调试开发
39
+ minidev dev
40
+
41
+ 本地 IP 调试
42
+ minidev dev --host 192.168.1.154
43
+
44
+ 真机调试
45
+ minidev remote-debug -a 2021006137629651
46
+
47
+ Web 端调试
48
+ minidev dev
49
+ web -a 2021006137629651
50
+ 真机预览
51
+ minidev preview -a 2021006137629651
52
+
53
+ # pnpm publish --no-git-checks
54
+
55
+ 官方镜像
56
+ npm config set registry https://registry.npmjs.org/
57
+ 国内镜像
58
+ npm config set registry https://registry.npmmirror.com/
59
+ 代理镜像
60
+ npm config set registry https://npm.crenjoy.com/
package/babel.config.json CHANGED
@@ -1,34 +1,34 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "modules": false,
7
- "shippedProposals": true
8
- }
9
- ],
10
- ],
11
- "plugins": [
12
- [
13
- "@babel/transform-runtime",
14
- {
15
- "corejs": 3,
16
- "version": "^7.10.4"
17
- }
18
- ],
19
- "@mpxjs/babel-plugin-inject-page-events",
20
- ],
21
- "sourceType": "unambiguous",
22
- "env": {
23
- "test": {
24
- "presets": [
25
- [
26
- "@babel/env",
27
- {
28
- "shippedProposals": true
29
- }
30
- ]
31
- ]
32
- }
33
- }
34
- }
1
+ {
2
+ "presets": [
3
+ [
4
+ "@babel/preset-env",
5
+ {
6
+ "modules": false,
7
+ "shippedProposals": true
8
+ }
9
+ ],
10
+ ],
11
+ "plugins": [
12
+ [
13
+ "@babel/transform-runtime",
14
+ {
15
+ "corejs": 3,
16
+ "version": "^7.10.4"
17
+ }
18
+ ],
19
+ "@mpxjs/babel-plugin-inject-page-events",
20
+ ],
21
+ "sourceType": "unambiguous",
22
+ "env": {
23
+ "test": {
24
+ "presets": [
25
+ [
26
+ "@babel/env",
27
+ {
28
+ "shippedProposals": true
29
+ }
30
+ ]
31
+ ]
32
+ }
33
+ }
34
+ }
package/eslint.config.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { mpxConfig } from '@mpxjs/eslint-config'
2
- export default mpxConfig(
3
- {
4
- mpx: true,
5
- typescript: true
6
- }
7
- )
1
+ import { mpxConfig } from '@mpxjs/eslint-config'
2
+ export default mpxConfig(
3
+ {
4
+ mpx: true,
5
+ typescript: true
6
+ }
7
+ )
@@ -1,22 +1,22 @@
1
- import { ResponseData } from "../../api/types";
2
- import type { LoginReq, LoginRes, RolesPerms, WebLoginReq, TokenModel, PhoneRegisterReq, PhoneReplaceReq, UpdateUserReq, UserInfoReq, UserInfo, GzhSubscribeCheckReq } from "./types";
3
- declare class AuthApi {
4
- mpLogin(data: LoginReq): Promise<ResponseData<LoginRes>>;
5
- mpPhoneRegister(data: PhoneRegisterReq): Promise<ResponseData<LoginRes>>;
6
- replaceBindphone(data: PhoneReplaceReq): Promise<ResponseData<string>>;
7
- webLogin(data: WebLoginReq): Promise<ResponseData<TokenModel>>;
8
- refreshToken(): Promise<ResponseData<TokenModel>>;
9
- userInfo(): Promise<ResponseData<UserInfo>>;
10
- userRolesPerms(): Promise<ResponseData<RolesPerms>>;
11
- allowRunAsUser(): Promise<ResponseData<any[]>>;
12
- runAsUser(userId: string): Promise<ResponseData<any>>;
13
- updateUser(data: any): Promise<ResponseData<any>>;
14
- updatePwd(encodeOldPwd: string, encodeNewPwd: string): Promise<ResponseData<any>>;
15
- deptTree(deptId?: string, tenant?: string): Promise<ResponseData<any[]>>;
16
- jobTree(jobId?: string, tenant?: string): Promise<ResponseData<any[]>>;
17
- updateUserInfo(data: UpdateUserReq): Promise<ResponseData<UserInfo>>;
18
- findUserInfo(data: UserInfoReq): Promise<ResponseData<UserInfo>>;
19
- findUserIsSubscribe(data: GzhSubscribeCheckReq): Promise<ResponseData<any>>;
20
- }
21
- export declare const authApi: AuthApi;
22
- export {};
1
+ import { ResponseData } from "../../api/types";
2
+ import type { LoginReq, LoginRes, RolesPerms, WebLoginReq, TokenModel, PhoneRegisterReq, PhoneReplaceReq, UpdateUserReq, UserInfoReq, UserInfo, GzhSubscribeCheckReq } from "./types";
3
+ declare class AuthApi {
4
+ mpLogin(data: LoginReq): Promise<ResponseData<LoginRes>>;
5
+ mpPhoneRegister(data: PhoneRegisterReq): Promise<ResponseData<LoginRes>>;
6
+ replaceBindphone(data: PhoneReplaceReq): Promise<ResponseData<string>>;
7
+ webLogin(data: WebLoginReq): Promise<ResponseData<TokenModel>>;
8
+ refreshToken(): Promise<ResponseData<TokenModel>>;
9
+ userInfo(): Promise<ResponseData<UserInfo>>;
10
+ userRolesPerms(): Promise<ResponseData<RolesPerms>>;
11
+ allowRunAsUser(): Promise<ResponseData<any[]>>;
12
+ runAsUser(userId: string): Promise<ResponseData<any>>;
13
+ updateUser(data: any): Promise<ResponseData<any>>;
14
+ updatePwd(encodeOldPwd: string, encodeNewPwd: string): Promise<ResponseData<any>>;
15
+ deptTree(deptId?: string, tenant?: string): Promise<ResponseData<any[]>>;
16
+ jobTree(jobId?: string, tenant?: string): Promise<ResponseData<any[]>>;
17
+ updateUserInfo(data: UpdateUserReq): Promise<ResponseData<UserInfo>>;
18
+ findUserInfo(data: UserInfoReq): Promise<ResponseData<UserInfo>>;
19
+ findUserIsSubscribe(data: GzhSubscribeCheckReq): Promise<ResponseData<any>>;
20
+ }
21
+ export declare const authApi: AuthApi;
22
+ export {};