@oj-module/cli 0.2.53 → 0.2.56

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 (330) hide show
  1. package/devkit/SKILL.md +4 -4
  2. package/devkit/manual.md +79 -65
  3. package/package.json +2 -2
  4. package/shell-dist/assets/{index-e_Mp2mb5.js → index-CImwskAz.js} +24 -11
  5. package/shell-dist/assets/runtime.js +7 -4
  6. package/shell-dist/index.html +3 -3
  7. package/shell-dist/versions.json +3 -3
  8. package/src/__tests__/layout.test.ts +30 -1
  9. package/src/__tests__/templates-schema-columns.test.ts +99 -0
  10. package/src/__tests__/templates-tenant-scope.test.ts +3 -2
  11. package/src/alias-paths.ts +11 -12
  12. package/src/builtin.ts +10 -3
  13. package/src/config.ts +9 -0
  14. package/src/contract/__tests__/client-path.test.ts +30 -0
  15. package/src/contract/__tests__/emit-client.test.ts +20 -2
  16. package/src/contract/__tests__/handler-scan.test.ts +23 -0
  17. package/src/contract/__tests__/market-client.integration.test.ts +2 -2
  18. package/src/contract/__tests__/run-api.test.ts +2 -2
  19. package/src/contract/check.ts +11 -7
  20. package/src/contract/client-path.ts +30 -0
  21. package/src/contract/emit-client.ts +27 -6
  22. package/src/contract/handler-scan.ts +40 -3
  23. package/src/contract/run.ts +15 -5
  24. package/src/init.ts +29 -3
  25. package/src/layout.ts +72 -16
  26. package/src/lifecycle/__tests__/manifest-contract.test.ts +2 -2
  27. package/src/market/__tests__/bootstrap.test.ts +1 -1
  28. package/src/site.ts +1 -1
  29. package/templates/README.md +49 -43
  30. package/templates/init.include.yaml +31 -19
  31. package/templates/openapi.json +1488 -120
  32. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/domain/users.ts +27 -0
  33. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/infra/oplog.ts +4 -2
  34. package/templates/src/{_platform/api → app/api/_platform}/contacts/api.ts +29 -1
  35. package/templates/src/{_platform/api → app/api/_platform}/contacts/detail/api.ts +25 -1
  36. package/templates/src/app/api/_platform/migrations/0017__users_employee_no.mysql.sql +7 -0
  37. package/templates/src/app/api/_platform/migrations/0017__users_employee_no.pg.sql +4 -0
  38. package/templates/src/app/api/_platform/migrations/0017__users_employee_no.sql +8 -0
  39. package/templates/src/{_platform/api → app/api/_platform}/schema.yaml +5 -0
  40. package/templates/src/{_platform/api → app/api/_platform}/solutions/api.ts +60 -1
  41. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/replay.ts +9 -3
  42. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/tenant-admin.ts +18 -27
  43. package/templates/src/{auth/api → app/api/auth}/api.ts +59 -0
  44. package/templates/src/{auth/api → app/api/auth}/ldap-login/api.ts +37 -1
  45. package/templates/src/{auth/api → app/api/auth}/wecom/api.ts +23 -0
  46. package/templates/src/{notification/api → app/api/notification}/api.ts +17 -0
  47. package/templates/src/{notification/api → app/api/notification}/del/api.ts +2 -0
  48. package/templates/src/{system/api → app/api/system}/oplog/api.ts +5 -3
  49. package/templates/src/{system/api → app/api/system}/roles/api.ts +3 -0
  50. package/templates/src/{system/api → app/api/system}/roles/bindings/api.ts +3 -0
  51. package/templates/src/{system/api → app/api/system}/settings/api.ts +3 -0
  52. package/templates/src/{system/api → app/api/system}/users/forbidden/api.ts +3 -0
  53. package/templates/src/{system/api → app/api/system}/users/password/api.ts +3 -0
  54. package/templates/src/{system/api → app/api/system}/users/roles/api.ts +3 -0
  55. package/templates/src/app/api/web/get-async-routes/api.ts +23 -0
  56. package/templates/src/app/api/web/hello/api.ts +22 -0
  57. package/templates/src/{web/api → app/api/web}/user-info/api.ts +21 -1
  58. package/templates/src/{_platform/web → app/web/_platform}/__client/api.schemas.ts +99 -35
  59. package/templates/src/{_platform/web/__client/api.ts → app/web/_platform/__client/index.ts} +108 -61
  60. package/templates/src/{auth/web → app/web/auth}/__client/api.schemas.ts +133 -13
  61. package/templates/src/{auth/web/__client/api.ts → app/web/auth/__client/index.ts} +134 -33
  62. package/templates/src/app/web/entry.ts +77 -0
  63. package/templates/src/{home/web/__client/api.ts → app/web/home/__client/index.ts} +5 -2
  64. package/templates/src/app/web/home/routes.ts +41 -0
  65. package/templates/src/app/web/login/routes.ts +71 -0
  66. package/templates/src/{notification/web → app/web/notification}/__client/api.schemas.ts +14 -0
  67. package/templates/src/{notification/web/__client/api.ts → app/web/notification/__client/index.ts} +67 -20
  68. package/templates/src/{notification/web → app/web/notification}/pages/center/index.tsx +1 -1
  69. package/templates/src/app/web/notification/routes.ts +70 -0
  70. package/templates/src/{personal-center/web/__client/api.ts → app/web/personal-center/__client/index.ts} +5 -2
  71. package/templates/src/{personal-center/web → app/web/personal-center}/pages/my-profile/index.tsx +1 -1
  72. package/templates/src/app/web/personal-center/routes.ts +49 -0
  73. package/templates/src/{system/web → app/web/system}/__client/api.schemas.ts +29 -22
  74. package/templates/src/{system/web/__client/api.ts → app/web/system/__client/index.ts} +103 -58
  75. package/templates/src/{system/web → app/web/system}/locales/en-US.json +2 -3
  76. package/templates/src/{system/web → app/web/system}/locales/zh-CN.json +2 -3
  77. package/templates/src/{system/web → app/web/system}/pages/departments/index.tsx +2 -2
  78. package/templates/src/{system/web → app/web/system}/pages/login-methods/index.tsx +1 -1
  79. package/templates/src/{system/web → app/web/system}/pages/oplog/index.tsx +44 -19
  80. package/templates/src/{system/web → app/web/system}/pages/roles/index.tsx +5 -3
  81. package/templates/src/app/web/system/pages/roles/visible-roles.ts +14 -0
  82. package/templates/src/{system/web → app/web/system}/pages/settings/index.tsx +2 -2
  83. package/templates/src/app/web/system/pages/users/can-manage.ts +21 -0
  84. package/templates/src/{system/web → app/web/system}/pages/users/index.tsx +23 -15
  85. package/templates/src/{system/web → app/web/system}/pages/users/roles.tsx +1 -1
  86. package/templates/src/{system/web → app/web/system}/pages/wecom/index.tsx +12 -3
  87. package/templates/src/{system/web/entry.ts → app/web/system/routes.ts} +25 -36
  88. package/templates/src/app/web/web/__client/api.schemas.ts +36 -0
  89. package/templates/src/{web/web/__client/api.ts → app/web/web/__client/index.ts} +38 -11
  90. package/templates/src/oj-market/web/api/defaultClient.ts +1 -1
  91. package/templates/tests/auth-ldap.spec.ts +2 -2
  92. package/templates/tests/auth-session.spec.ts +3 -3
  93. package/templates/tests/auth-throttle.spec.ts +1 -1
  94. package/templates/tests/fixture.ts +6 -4
  95. package/templates/tests/guard.spec.ts +1 -1
  96. package/templates/tests/lifecycle/atomic-state.spec.ts +3 -3
  97. package/templates/tests/lifecycle/bootstrap.spec.ts +3 -3
  98. package/templates/tests/lifecycle/deploy-smoke.spec.ts +8 -8
  99. package/templates/tests/lifecycle/installer.spec.ts +10 -10
  100. package/templates/tests/lifecycle/market-api.spec.ts +14 -14
  101. package/templates/tests/lifecycle/migrate.spec.ts +6 -6
  102. package/templates/tests/lifecycle/preflight.spec.ts +3 -3
  103. package/templates/tests/lifecycle/register.spec.ts +1 -1
  104. package/templates/tests/lifecycle/semver.spec.ts +1 -1
  105. package/templates/tests/lifecycle/sha384.spec.ts +1 -1
  106. package/templates/tests/lifecycle/solutions-api.spec.ts +1 -1
  107. package/templates/tests/lifecycle/source-seq.spec.ts +1 -1
  108. package/templates/tests/lifecycle/steps-fs.spec.ts +9 -9
  109. package/templates/tests/lifecycle/text-edit.spec.ts +1 -1
  110. package/templates/tests/lifecycle/tgz-guard.spec.ts +2 -2
  111. package/templates/tests/lifecycle/trust.spec.ts +5 -5
  112. package/templates/tests/lifecycle/uninstall.spec.ts +7 -7
  113. package/templates/tests/lifecycle/verify-checks.spec.ts +5 -5
  114. package/templates/tests/lifecycle/verify-report.spec.ts +4 -4
  115. package/templates/tests/org-departments.spec.ts +10 -6
  116. package/templates/tests/org-read.spec.ts +7 -7
  117. package/templates/tests/query-utils.spec.ts +1 -1
  118. package/templates/tests/rbac-audit.spec.ts +1 -1
  119. package/templates/tests/rbac-contacts.spec.ts +2 -2
  120. package/templates/tests/rbac-guard.spec.ts +1 -1
  121. package/templates/tests/rbac-roles.spec.ts +10 -2
  122. package/templates/tests/rbac-seed.spec.ts +1 -1
  123. package/templates/tests/rbac-settings.spec.ts +77 -7
  124. package/templates/tests/rbac-solution-perms.spec.ts +1 -1
  125. package/templates/tests/rbac-tables.spec.ts +29 -0
  126. package/templates/tests/rbac-users.spec.ts +55 -3
  127. package/templates/tests/roles-page.spec.ts +40 -0
  128. package/templates/tests/seed-role-accounts.spec.ts +1 -1
  129. package/templates/tests/tenant-access-cache.spec.ts +1 -1
  130. package/templates/tests/tenant-forgery.spec.ts +5 -5
  131. package/templates/tests/tenant-isolation.spec.ts +5 -4
  132. package/templates/tests/username-namespace.spec.ts +3 -3
  133. package/templates/tests/users-page.spec.ts +39 -0
  134. package/templates/tests/wecom-admin.spec.ts +6 -6
  135. package/templates/tests/wecom-client-timeout.spec.ts +1 -1
  136. package/templates/tests/wecom-connector.spec.ts +9 -9
  137. package/templates/tests/wecom-corp.spec.ts +9 -9
  138. package/templates/tests/wecom-crypt.spec.ts +1 -1
  139. package/templates/tests/wecom-endpoints.spec.ts +2 -2
  140. package/templates/tests/wecom-landing.spec.ts +1 -1
  141. package/templates/tests/wecom-org-sync.spec.ts +7 -7
  142. package/templates/tests/wecom-sync.spec.ts +3 -3
  143. package/templates/tsconfig.paths.json +11 -11
  144. package/templates/vitest.config.ts +2 -2
  145. package/templates/web.config.ts +24 -15
  146. package/vendor/host-versions.json +3 -3
  147. package/templates/src/home/web/entry.ts +0 -49
  148. package/templates/src/login/web/entry.ts +0 -79
  149. package/templates/src/notification/web/entry.ts +0 -84
  150. package/templates/src/personal-center/web/entry.ts +0 -60
  151. package/templates/src/web/api/get-async-routes/api.ts +0 -8
  152. package/templates/src/web/api/hello/api.ts +0 -10
  153. package/templates/src/web/web/__client/api.schemas.ts +0 -8
  154. package/templates/src/{_platform/api → app/api/_platform}/README.md +0 -0
  155. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/atomic.ts +0 -0
  156. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/history.ts +0 -0
  157. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/installer.ts +0 -0
  158. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/limits.ts +0 -0
  159. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/lock.ts +0 -0
  160. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/semver.ts +0 -0
  161. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/sha384.ts +0 -0
  162. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/source-seq.ts +0 -0
  163. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/state.ts +0 -0
  164. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/steps/deploy-web.ts +0 -0
  165. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/steps/download.ts +0 -0
  166. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/steps/extract.ts +0 -0
  167. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/steps/migrate.ts +0 -0
  168. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/steps/preflight.ts +0 -0
  169. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/steps/register.ts +0 -0
  170. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/steps/reload.ts +0 -0
  171. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/steps/smoke.ts +0 -0
  172. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/steps/verify.ts +0 -0
  173. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/tasks.ts +0 -0
  174. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/text-edit.ts +0 -0
  175. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/tgz-guard.ts +0 -0
  176. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/trust.ts +0 -0
  177. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/types.ts +0 -0
  178. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/uninstall.ts +0 -0
  179. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/verify-checks.ts +0 -0
  180. package/templates/src/{_platform/api → app/api/_platform}/_lifecycle/verify-report.ts +0 -0
  181. package/templates/src/{_platform/api → app/api/_platform}/_shared/respond.ts +0 -0
  182. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/domain/contacts.ts +0 -0
  183. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/domain/org-read.ts +0 -0
  184. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/domain/org.ts +0 -0
  185. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/domain/roles.ts +0 -0
  186. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/domain/settings.ts +0 -0
  187. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/domain/solution-perms.ts +0 -0
  188. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/infra/access.ts +0 -0
  189. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/infra/audit.ts +0 -0
  190. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/infra/guard.ts +0 -0
  191. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/infra/query.ts +0 -0
  192. package/templates/src/{_platform/api → app/api/_platform}/_shared/service/infra/rate.ts +0 -0
  193. package/templates/src/{_platform/api → app/api/_platform}/_shared/site-facade.ts +0 -0
  194. package/templates/src/{_platform/api → app/api/_platform}/fixtures/l1-test-user.sql +0 -0
  195. package/templates/src/{_platform/api → app/api/_platform}/manifest.yaml +0 -0
  196. package/templates/src/{_platform/api → app/api/_platform}/market/api.ts +0 -0
  197. package/templates/src/{_platform/api → app/api/_platform}/market/bootstrap.ts +0 -0
  198. package/templates/src/{_platform/api → app/api/_platform}/market/index-source.ts +0 -0
  199. package/templates/src/{_platform/api → app/api/_platform}/migrations/0001__create_users.mysql.sql +0 -0
  200. package/templates/src/{_platform/api → app/api/_platform}/migrations/0001__create_users.pg.sql +0 -0
  201. package/templates/src/{_platform/api → app/api/_platform}/migrations/0001__create_users.sql +0 -0
  202. package/templates/src/{_platform/api → app/api/_platform}/migrations/0002__add_users_avatar_base64.mysql.sql +0 -0
  203. package/templates/src/{_platform/api → app/api/_platform}/migrations/0002__add_users_avatar_base64.sql +0 -0
  204. package/templates/src/{_platform/api → app/api/_platform}/migrations/0003__users_source_display_name.mysql.sql +0 -0
  205. package/templates/src/{_platform/api → app/api/_platform}/migrations/0003__users_source_display_name.sql +0 -0
  206. package/templates/src/{_platform/api → app/api/_platform}/migrations/0004__sys_rbac.mysql.sql +0 -0
  207. package/templates/src/{_platform/api → app/api/_platform}/migrations/0004__sys_rbac.pg.sql +0 -0
  208. package/templates/src/{_platform/api → app/api/_platform}/migrations/0004__sys_rbac.sql +0 -0
  209. package/templates/src/{_platform/api → app/api/_platform}/migrations/0005__users_must_change.mysql.sql +0 -0
  210. package/templates/src/{_platform/api → app/api/_platform}/migrations/0005__users_must_change.sql +0 -0
  211. package/templates/src/{_platform/api → app/api/_platform}/migrations/0006__users_is_forbidden.mysql.sql +0 -0
  212. package/templates/src/{_platform/api → app/api/_platform}/migrations/0006__users_is_forbidden.sql +0 -0
  213. package/templates/src/{_platform/api → app/api/_platform}/migrations/0007__users_email.sql +0 -0
  214. package/templates/src/{_platform/api → app/api/_platform}/migrations/0008__sys_refresh_token.mysql.sql +0 -0
  215. package/templates/src/{_platform/api → app/api/_platform}/migrations/0008__sys_refresh_token.pg.sql +0 -0
  216. package/templates/src/{_platform/api → app/api/_platform}/migrations/0008__sys_refresh_token.sql +0 -0
  217. package/templates/src/{_platform/api → app/api/_platform}/migrations/0009__sys_throttle.mysql.sql +0 -0
  218. package/templates/src/{_platform/api → app/api/_platform}/migrations/0009__sys_throttle.pg.sql +0 -0
  219. package/templates/src/{_platform/api → app/api/_platform}/migrations/0009__sys_throttle.sql +0 -0
  220. package/templates/src/{_platform/api → app/api/_platform}/migrations/0010__sys_solution_route.mysql.sql +0 -0
  221. package/templates/src/{_platform/api → app/api/_platform}/migrations/0010__sys_solution_route.pg.sql +0 -0
  222. package/templates/src/{_platform/api → app/api/_platform}/migrations/0010__sys_solution_route.sql +0 -0
  223. package/templates/src/{_platform/api → app/api/_platform}/migrations/0011__sys_setting_group_label.mysql.sql +0 -0
  224. package/templates/src/{_platform/api → app/api/_platform}/migrations/0011__sys_setting_group_label.sql +0 -0
  225. package/templates/src/{_platform/api → app/api/_platform}/migrations/0012__market_history.mysql.sql +0 -0
  226. package/templates/src/{_platform/api → app/api/_platform}/migrations/0012__market_history.pg.sql +0 -0
  227. package/templates/src/{_platform/api → app/api/_platform}/migrations/0012__market_history.sql +0 -0
  228. package/templates/src/{_platform/api → app/api/_platform}/migrations/0013__users_profile.sql +0 -0
  229. package/templates/src/{_platform/api → app/api/_platform}/migrations/0014__reg_source_seq.mysql.sql +0 -0
  230. package/templates/src/{_platform/api → app/api/_platform}/migrations/0014__reg_source_seq.pg.sql +0 -0
  231. package/templates/src/{_platform/api → app/api/_platform}/migrations/0014__reg_source_seq.sql +0 -0
  232. package/templates/src/{_platform/api → app/api/_platform}/migrations/0015__tenant.mysql.sql +0 -0
  233. package/templates/src/{_platform/api → app/api/_platform}/migrations/0015__tenant.pg.sql +0 -0
  234. package/templates/src/{_platform/api → app/api/_platform}/migrations/0015__tenant.sql +0 -0
  235. package/templates/src/{_platform/api → app/api/_platform}/migrations/0016__org.mysql.sql +0 -0
  236. package/templates/src/{_platform/api → app/api/_platform}/migrations/0016__org.pg.sql +0 -0
  237. package/templates/src/{_platform/api → app/api/_platform}/migrations/0016__org.sql +0 -0
  238. package/templates/src/{_platform/api → app/api/_platform}/org/departments/api.ts +0 -0
  239. package/templates/src/{_platform/api → app/api/_platform}/org/is-member/api.ts +0 -0
  240. package/templates/src/{_platform/api → app/api/_platform}/org/members/api.ts +0 -0
  241. package/templates/src/{_platform/api → app/api/_platform}/org/picker/api.ts +0 -0
  242. package/templates/src/{_platform/api → app/api/_platform}/org/resolve/api.ts +0 -0
  243. package/templates/src/{_platform/api → app/api/_platform}/org/tree/api.ts +0 -0
  244. package/templates/src/{_platform/api → app/api/_platform}/org/user/api.ts +0 -0
  245. package/templates/src/{_platform/api → app/api/_platform}/seed.mysql.sql +0 -0
  246. package/templates/src/{_platform/api → app/api/_platform}/seed.pg.sql +0 -0
  247. package/templates/src/{_platform/api → app/api/_platform}/seed.sql +0 -0
  248. package/templates/src/{auth/api → app/api/auth}/_shared/ldap-login.ts +0 -0
  249. package/templates/src/{auth/api → app/api/auth}/_shared/ldap.ts +0 -0
  250. package/templates/src/{auth/api → app/api/auth}/_shared/login-throttle.ts +0 -0
  251. package/templates/src/{auth/api → app/api/auth}/_shared/session.ts +0 -0
  252. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/admin.ts +1 -1
  253. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/client.ts +0 -0
  254. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/config.ts +0 -0
  255. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/contacts.ts +0 -0
  256. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/crypt.ts +0 -0
  257. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/events.ts +1 -1
  258. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/login.ts +0 -0
  259. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/payload.ts +0 -0
  260. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/store.ts +0 -0
  261. package/templates/src/{auth/api → app/api/auth}/_shared/wecom/sync.ts +0 -0
  262. package/templates/src/{auth/api → app/api/auth}/manifest.yaml +0 -0
  263. package/templates/src/{auth/api → app/api/auth}/migrations/0001__wecom.mysql.sql +0 -0
  264. package/templates/src/{auth/api → app/api/auth}/migrations/0001__wecom.pg.sql +0 -0
  265. package/templates/src/{auth/api → app/api/auth}/migrations/0001__wecom.sql +0 -0
  266. package/templates/src/{auth/api → app/api/auth}/migrations/0002__org_sync.mysql.sql +0 -0
  267. package/templates/src/{auth/api → app/api/auth}/migrations/0002__org_sync.pg.sql +0 -0
  268. package/templates/src/{auth/api → app/api/auth}/migrations/0002__org_sync.sql +0 -0
  269. package/templates/src/{auth/api → app/api/auth}/migrations/0003__credential_kind.mysql.sql +0 -0
  270. package/templates/src/{auth/api → app/api/auth}/migrations/0003__credential_kind.pg.sql +0 -0
  271. package/templates/src/{auth/api → app/api/auth}/migrations/0003__credential_kind.sql +0 -0
  272. package/templates/src/{auth/api → app/api/auth}/schema.yaml +0 -0
  273. package/templates/src/{auth/api → app/api/auth}/wecom/admin/api.ts +0 -0
  274. package/templates/src/{auth/api → app/api/auth}/wecom/admin/tenant-admin/api.ts +1 -1
  275. package/templates/src/{auth/api → app/api/auth}/wecom/admin/tenant-admin/password/api.ts +1 -1
  276. /package/templates/src/{auth/api → app/api/auth}/wecom/sync/api.ts +0 -0
  277. /package/templates/src/{home/api → app/api/home}/line/api.ts +0 -0
  278. /package/templates/src/{home/api → app/api/home}/manifest.yaml +0 -0
  279. /package/templates/src/{home/api → app/api/home}/migrations/0001__create_home_tables.sql +0 -0
  280. /package/templates/src/{home/api → app/api/home}/migrations/0002__tenant.mysql.sql +0 -0
  281. /package/templates/src/{home/api → app/api/home}/migrations/0002__tenant.sql +0 -0
  282. /package/templates/src/{home/api → app/api/home}/pie/api.ts +0 -0
  283. /package/templates/src/{home/api → app/api/home}/schema.yaml +0 -0
  284. /package/templates/src/{home/api → app/api/home}/seed.sql +0 -0
  285. /package/templates/src/{notification/api → app/api/notification}/_shared/notify.ts +0 -0
  286. /package/templates/src/{notification/api → app/api/notification}/manifest.yaml +0 -0
  287. /package/templates/src/{notification/api → app/api/notification}/migrations/0001__create_notifications.sql +0 -0
  288. /package/templates/src/{notification/api → app/api/notification}/migrations/0002__notifications_user.sql +0 -0
  289. /package/templates/src/{notification/api → app/api/notification}/migrations/0003__notifications_broadcast.sql +0 -0
  290. /package/templates/src/{notification/api → app/api/notification}/migrations/0004__notifications_broadcast_hidden.sql +0 -0
  291. /package/templates/src/{notification/api → app/api/notification}/migrations/0005__tenant.mysql.sql +0 -0
  292. /package/templates/src/{notification/api → app/api/notification}/migrations/0005__tenant.sql +0 -0
  293. /package/templates/src/{notification/api → app/api/notification}/schema.yaml +0 -0
  294. /package/templates/src/{notification/api → app/api/notification}/seed.sql +0 -0
  295. /package/templates/src/{personal-center/api → app/api/personal-center}/manifest.yaml +0 -0
  296. /package/templates/src/{personal-center/api → app/api/personal-center}/profile/api.ts +0 -0
  297. /package/templates/src/{personal-center/api → app/api/personal-center}/upload/api.ts +0 -0
  298. /package/templates/src/{system/api → app/api/system}/departments/api.ts +0 -0
  299. /package/templates/src/{system/api → app/api/system}/departments/detach/api.ts +0 -0
  300. /package/templates/src/{system/api → app/api/system}/departments/members/api.ts +0 -0
  301. /package/templates/src/{system/api → app/api/system}/departments/move/api.ts +0 -0
  302. /package/templates/src/{system/api → app/api/system}/login-methods/api.ts +0 -0
  303. /package/templates/src/{system/api → app/api/system}/manifest.yaml +0 -0
  304. /package/templates/src/{system/api → app/api/system}/permissions/api.ts +0 -0
  305. /package/templates/src/{system/api → app/api/system}/users/api.ts +0 -0
  306. /package/templates/src/{system/api → app/api/system}/users/profile/api.ts +0 -0
  307. /package/templates/src/{web/api → app/api/web}/manifest.yaml +0 -0
  308. /package/templates/src/{home/web → app/web/home}/__client/api.schemas.ts +0 -0
  309. /package/templates/src/{home/web → app/web/home}/locales/en-US.json +0 -0
  310. /package/templates/src/{home/web → app/web/home}/locales/zh-CN.json +0 -0
  311. /package/templates/src/{home/web → app/web/home}/pages/components/bar-chart.tsx +0 -0
  312. /package/templates/src/{home/web → app/web/home}/pages/components/card-list.tsx +0 -0
  313. /package/templates/src/{home/web → app/web/home}/pages/components/line-chart.tsx +0 -0
  314. /package/templates/src/{home/web → app/web/home}/pages/components/pie-chart.tsx +0 -0
  315. /package/templates/src/{home/web → app/web/home}/pages/index.tsx +0 -0
  316. /package/templates/src/{login/web → app/web/login}/auth-provider.ts +0 -0
  317. /package/templates/src/{login/web → app/web/login}/locales/en-US.json +0 -0
  318. /package/templates/src/{login/web → app/web/login}/locales/zh-CN.json +0 -0
  319. /package/templates/src/{login/web → app/web/login}/pages/change-password.tsx +0 -0
  320. /package/templates/src/{login/web → app/web/login}/pages/login.tsx +0 -0
  321. /package/templates/src/{login/web → app/web/login}/wecom.ts +0 -0
  322. /package/templates/src/{notification/web → app/web/notification}/locales/en-US.json +0 -0
  323. /package/templates/src/{notification/web → app/web/notification}/locales/zh-CN.json +0 -0
  324. /package/templates/src/{personal-center/web → app/web/personal-center}/__client/api.schemas.ts +0 -0
  325. /package/templates/src/{personal-center/web → app/web/personal-center}/locales/en-US.json +0 -0
  326. /package/templates/src/{personal-center/web → app/web/personal-center}/locales/zh-CN.json +0 -0
  327. /package/templates/src/{system/web → app/web/system}/pages/departments/sync-bar.tsx +0 -0
  328. /package/templates/src/{system/web → app/web/system}/pages/departments/tree.ts +0 -0
  329. /package/templates/src/{system/web → app/web/system}/pages/errors.ts +0 -0
  330. /package/templates/src/{system/web → app/web/system}/pages/forbidden.tsx +0 -0
@@ -9,13 +9,78 @@
9
9
  "get": {
10
10
  "operationId": "_platform_contacts_get",
11
11
  "summary": "GET api/_platform/contacts",
12
- "x-oj-file": "_platform/api/contacts/api.ts",
12
+ "x-oj-file": "app/api/_platform/contacts/api.ts",
13
13
  "tags": [
14
14
  "_platform"
15
15
  ],
16
+ "parameters": [
17
+ {
18
+ "name": "keyword",
19
+ "in": "query",
20
+ "required": true,
21
+ "schema": {
22
+ "type": "string",
23
+ "minLength": 2
24
+ }
25
+ },
26
+ {
27
+ "name": "limit",
28
+ "in": "query",
29
+ "required": false,
30
+ "schema": {
31
+ "type": "number"
32
+ }
33
+ }
34
+ ],
16
35
  "responses": {
17
36
  "200": {
18
- "description": "OK"
37
+ "description": "OK",
38
+ "x-oj-response-enforced": false,
39
+ "content": {
40
+ "application/json": {
41
+ "schema": {
42
+ "type": "object",
43
+ "required": [
44
+ "code",
45
+ "msg",
46
+ "data"
47
+ ],
48
+ "properties": {
49
+ "code": {
50
+ "type": "integer"
51
+ },
52
+ "msg": {
53
+ "type": "string"
54
+ },
55
+ "data": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "object",
59
+ "required": [
60
+ "id",
61
+ "username",
62
+ "display_name"
63
+ ],
64
+ "properties": {
65
+ "id": {
66
+ "type": "number"
67
+ },
68
+ "username": {
69
+ "type": "string"
70
+ },
71
+ "display_name": {
72
+ "type": [
73
+ "string",
74
+ "null"
75
+ ]
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
19
84
  }
20
85
  }
21
86
  }
@@ -24,13 +89,80 @@
24
89
  "get": {
25
90
  "operationId": "_platform_contacts_detail_get",
26
91
  "summary": "GET api/_platform/contacts/detail",
27
- "x-oj-file": "_platform/api/contacts/detail/api.ts",
92
+ "x-oj-file": "app/api/_platform/contacts/detail/api.ts",
28
93
  "tags": [
29
94
  "_platform"
30
95
  ],
96
+ "parameters": [
97
+ {
98
+ "name": "id",
99
+ "in": "query",
100
+ "required": true,
101
+ "schema": {
102
+ "type": "number"
103
+ }
104
+ }
105
+ ],
31
106
  "responses": {
32
107
  "200": {
33
- "description": "OK"
108
+ "description": "OK",
109
+ "x-oj-response-enforced": false,
110
+ "content": {
111
+ "application/json": {
112
+ "schema": {
113
+ "type": "object",
114
+ "required": [
115
+ "code",
116
+ "msg",
117
+ "data"
118
+ ],
119
+ "properties": {
120
+ "code": {
121
+ "type": "integer"
122
+ },
123
+ "msg": {
124
+ "type": "string"
125
+ },
126
+ "data": {
127
+ "type": "object",
128
+ "required": [
129
+ "id",
130
+ "username",
131
+ "display_name",
132
+ "email",
133
+ "avatar_base64"
134
+ ],
135
+ "properties": {
136
+ "id": {
137
+ "type": "number"
138
+ },
139
+ "username": {
140
+ "type": "string"
141
+ },
142
+ "display_name": {
143
+ "type": [
144
+ "string",
145
+ "null"
146
+ ]
147
+ },
148
+ "email": {
149
+ "type": [
150
+ "string",
151
+ "null"
152
+ ]
153
+ },
154
+ "avatar_base64": {
155
+ "type": [
156
+ "string",
157
+ "null"
158
+ ]
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
34
166
  }
35
167
  }
36
168
  }
@@ -39,7 +171,7 @@
39
171
  "post": {
40
172
  "operationId": "_platform_market_install_post",
41
173
  "summary": "POST api/_platform/market/install",
42
- "x-oj-file": "_platform/api/market/api.ts",
174
+ "x-oj-file": "app/api/_platform/market/api.ts",
43
175
  "tags": [
44
176
  "_platform"
45
177
  ],
@@ -116,7 +248,7 @@
116
248
  "post": {
117
249
  "operationId": "_platform_market_install_cancel_post",
118
250
  "summary": "POST api/_platform/market/install/cancel",
119
- "x-oj-file": "_platform/api/market/api.ts",
251
+ "x-oj-file": "app/api/_platform/market/api.ts",
120
252
  "tags": [
121
253
  "_platform"
122
254
  ],
@@ -185,7 +317,7 @@
185
317
  "get": {
186
318
  "operationId": "_platform_market_task_get",
187
319
  "summary": "GET api/_platform/market/task",
188
- "x-oj-file": "_platform/api/market/api.ts",
320
+ "x-oj-file": "app/api/_platform/market/api.ts",
189
321
  "tags": [
190
322
  "_platform"
191
323
  ],
@@ -235,7 +367,7 @@
235
367
  "post": {
236
368
  "operationId": "_platform_market_enable_post",
237
369
  "summary": "POST api/_platform/market/enable",
238
- "x-oj-file": "_platform/api/market/api.ts",
370
+ "x-oj-file": "app/api/_platform/market/api.ts",
239
371
  "tags": [
240
372
  "_platform"
241
373
  ],
@@ -297,7 +429,7 @@
297
429
  "get": {
298
430
  "operationId": "_platform_market_meta_get",
299
431
  "summary": "GET api/_platform/market/meta",
300
- "x-oj-file": "_platform/api/market/api.ts",
432
+ "x-oj-file": "app/api/_platform/market/api.ts",
301
433
  "tags": [
302
434
  "_platform"
303
435
  ],
@@ -342,7 +474,7 @@
342
474
  "get": {
343
475
  "operationId": "_platform_market_trust_get",
344
476
  "summary": "GET api/_platform/market/trust",
345
- "x-oj-file": "_platform/api/market/api.ts",
477
+ "x-oj-file": "app/api/_platform/market/api.ts",
346
478
  "tags": [
347
479
  "_platform"
348
480
  ],
@@ -380,7 +512,7 @@
380
512
  "post": {
381
513
  "operationId": "_platform_market_trust_post",
382
514
  "summary": "POST api/_platform/market/trust",
383
- "x-oj-file": "_platform/api/market/api.ts",
515
+ "x-oj-file": "app/api/_platform/market/api.ts",
384
516
  "tags": [
385
517
  "_platform"
386
518
  ],
@@ -438,7 +570,7 @@
438
570
  "post": {
439
571
  "operationId": "_platform_market_trust_key_post",
440
572
  "summary": "POST api/_platform/market/trust/key",
441
- "x-oj-file": "_platform/api/market/api.ts",
573
+ "x-oj-file": "app/api/_platform/market/api.ts",
442
574
  "tags": [
443
575
  "_platform"
444
576
  ],
@@ -498,7 +630,7 @@
498
630
  "delete": {
499
631
  "operationId": "_platform_market_trust_key_delete",
500
632
  "summary": "DELETE api/_platform/market/trust/key",
501
- "x-oj-file": "_platform/api/market/api.ts",
633
+ "x-oj-file": "app/api/_platform/market/api.ts",
502
634
  "tags": [
503
635
  "_platform"
504
636
  ],
@@ -548,7 +680,7 @@
548
680
  "get": {
549
681
  "operationId": "_platform_market_index_get",
550
682
  "summary": "GET api/_platform/market/index",
551
- "x-oj-file": "_platform/api/market/api.ts",
683
+ "x-oj-file": "app/api/_platform/market/api.ts",
552
684
  "tags": [
553
685
  "_platform"
554
686
  ],
@@ -591,7 +723,7 @@
591
723
  "get": {
592
724
  "operationId": "_platform_market_uninstall_impact_get",
593
725
  "summary": "GET api/_platform/market/uninstall-impact",
594
- "x-oj-file": "_platform/api/market/api.ts",
726
+ "x-oj-file": "app/api/_platform/market/api.ts",
595
727
  "tags": [
596
728
  "_platform"
597
729
  ],
@@ -641,7 +773,7 @@
641
773
  "post": {
642
774
  "operationId": "_platform_market_uninstall_post",
643
775
  "summary": "POST api/_platform/market/uninstall",
644
- "x-oj-file": "_platform/api/market/api.ts",
776
+ "x-oj-file": "app/api/_platform/market/api.ts",
645
777
  "tags": [
646
778
  "_platform"
647
779
  ],
@@ -699,7 +831,7 @@
699
831
  "get": {
700
832
  "operationId": "_platform_market_history_get",
701
833
  "summary": "GET api/_platform/market/history",
702
- "x-oj-file": "_platform/api/market/api.ts",
834
+ "x-oj-file": "app/api/_platform/market/api.ts",
703
835
  "tags": [
704
836
  "_platform"
705
837
  ],
@@ -742,7 +874,7 @@
742
874
  "get": {
743
875
  "operationId": "_platform_org_departments_get",
744
876
  "summary": "GET api/_platform/org/departments",
745
- "x-oj-file": "_platform/api/org/departments/api.ts",
877
+ "x-oj-file": "app/api/_platform/org/departments/api.ts",
746
878
  "tags": [
747
879
  "_platform"
748
880
  ],
@@ -893,7 +1025,7 @@
893
1025
  "get": {
894
1026
  "operationId": "_platform_org_is_member_get",
895
1027
  "summary": "GET api/_platform/org/is-member",
896
- "x-oj-file": "_platform/api/org/is-member/api.ts",
1028
+ "x-oj-file": "app/api/_platform/org/is-member/api.ts",
897
1029
  "tags": [
898
1030
  "_platform"
899
1031
  ],
@@ -970,7 +1102,7 @@
970
1102
  "get": {
971
1103
  "operationId": "_platform_org_members_get",
972
1104
  "summary": "GET api/_platform/org/members",
973
- "x-oj-file": "_platform/api/org/members/api.ts",
1105
+ "x-oj-file": "app/api/_platform/org/members/api.ts",
974
1106
  "tags": [
975
1107
  "_platform"
976
1108
  ],
@@ -1126,7 +1258,7 @@
1126
1258
  "get": {
1127
1259
  "operationId": "_platform_org_picker_get",
1128
1260
  "summary": "GET api/_platform/org/picker",
1129
- "x-oj-file": "_platform/api/org/picker/api.ts",
1261
+ "x-oj-file": "app/api/_platform/org/picker/api.ts",
1130
1262
  "tags": [
1131
1263
  "_platform"
1132
1264
  ],
@@ -1285,7 +1417,7 @@
1285
1417
  "post": {
1286
1418
  "operationId": "_platform_org_resolve_post",
1287
1419
  "summary": "POST api/_platform/org/resolve",
1288
- "x-oj-file": "_platform/api/org/resolve/api.ts",
1420
+ "x-oj-file": "app/api/_platform/org/resolve/api.ts",
1289
1421
  "tags": [
1290
1422
  "_platform"
1291
1423
  ],
@@ -1376,7 +1508,7 @@
1376
1508
  "get": {
1377
1509
  "operationId": "_platform_org_tree_get",
1378
1510
  "summary": "GET api/_platform/org/tree",
1379
- "x-oj-file": "_platform/api/org/tree/api.ts",
1511
+ "x-oj-file": "app/api/_platform/org/tree/api.ts",
1380
1512
  "tags": [
1381
1513
  "_platform"
1382
1514
  ],
@@ -1468,7 +1600,7 @@
1468
1600
  "get": {
1469
1601
  "operationId": "_platform_org_user_get",
1470
1602
  "summary": "GET api/_platform/org/user",
1471
- "x-oj-file": "_platform/api/org/user/api.ts",
1603
+ "x-oj-file": "app/api/_platform/org/user/api.ts",
1472
1604
  "tags": [
1473
1605
  "_platform"
1474
1606
  ],
@@ -1590,13 +1722,83 @@
1590
1722
  "get": {
1591
1723
  "operationId": "_platform_solutions_routes_get",
1592
1724
  "summary": "GET api/_platform/solutions/routes",
1593
- "x-oj-file": "_platform/api/solutions/api.ts",
1725
+ "x-oj-file": "app/api/_platform/solutions/api.ts",
1594
1726
  "tags": [
1595
1727
  "_platform"
1596
1728
  ],
1597
1729
  "responses": {
1598
1730
  "200": {
1599
- "description": "OK"
1731
+ "description": "OK",
1732
+ "x-oj-response-enforced": false,
1733
+ "content": {
1734
+ "application/json": {
1735
+ "schema": {
1736
+ "type": "object",
1737
+ "required": [
1738
+ "code",
1739
+ "msg",
1740
+ "data"
1741
+ ],
1742
+ "properties": {
1743
+ "code": {
1744
+ "type": "integer"
1745
+ },
1746
+ "msg": {
1747
+ "type": "string"
1748
+ },
1749
+ "data": {
1750
+ "type": "array",
1751
+ "items": {
1752
+ "type": "object",
1753
+ "required": [
1754
+ "path",
1755
+ "module",
1756
+ "category",
1757
+ "order",
1758
+ "title_key",
1759
+ "required_permission",
1760
+ "enabled"
1761
+ ],
1762
+ "properties": {
1763
+ "path": {
1764
+ "type": "string"
1765
+ },
1766
+ "module": {
1767
+ "type": "string"
1768
+ },
1769
+ "category": {
1770
+ "type": "string",
1771
+ "enum": [
1772
+ "main",
1773
+ "admin",
1774
+ "hidden"
1775
+ ]
1776
+ },
1777
+ "order": {
1778
+ "type": "number"
1779
+ },
1780
+ "title_key": {
1781
+ "type": [
1782
+ "string",
1783
+ "null"
1784
+ ]
1785
+ },
1786
+ "required_permission": {
1787
+ "type": [
1788
+ "string",
1789
+ "null"
1790
+ ]
1791
+ },
1792
+ "enabled": {
1793
+ "type": "boolean"
1794
+ }
1795
+ }
1796
+ }
1797
+ }
1798
+ }
1799
+ }
1800
+ }
1801
+ }
1600
1802
  }
1601
1803
  }
1602
1804
  }
@@ -1605,13 +1807,95 @@
1605
1807
  "post": {
1606
1808
  "operationId": "_platform_solutions_verify_post",
1607
1809
  "summary": "POST api/_platform/solutions/verify",
1608
- "x-oj-file": "_platform/api/solutions/api.ts",
1810
+ "x-oj-file": "app/api/_platform/solutions/api.ts",
1609
1811
  "tags": [
1610
1812
  "_platform"
1611
1813
  ],
1814
+ "parameters": [
1815
+ {
1816
+ "name": "name",
1817
+ "in": "query",
1818
+ "required": true,
1819
+ "schema": {
1820
+ "type": "string",
1821
+ "minLength": 1
1822
+ }
1823
+ }
1824
+ ],
1612
1825
  "responses": {
1613
1826
  "200": {
1614
- "description": "OK"
1827
+ "description": "OK",
1828
+ "x-oj-response-enforced": false,
1829
+ "content": {
1830
+ "application/json": {
1831
+ "schema": {
1832
+ "type": "object",
1833
+ "required": [
1834
+ "code",
1835
+ "msg",
1836
+ "data"
1837
+ ],
1838
+ "properties": {
1839
+ "code": {
1840
+ "type": "integer"
1841
+ },
1842
+ "msg": {
1843
+ "type": "string"
1844
+ },
1845
+ "data": {
1846
+ "type": "object",
1847
+ "required": [
1848
+ "ok",
1849
+ "checks",
1850
+ "advise"
1851
+ ],
1852
+ "properties": {
1853
+ "ok": {
1854
+ "type": "boolean"
1855
+ },
1856
+ "checks": {
1857
+ "type": "array",
1858
+ "items": {
1859
+ "type": "object",
1860
+ "required": [
1861
+ "id",
1862
+ "severity",
1863
+ "subject",
1864
+ "advise_key"
1865
+ ],
1866
+ "properties": {
1867
+ "id": {
1868
+ "type": "string"
1869
+ },
1870
+ "severity": {
1871
+ "type": "string",
1872
+ "enum": [
1873
+ "error",
1874
+ "warn",
1875
+ "info"
1876
+ ]
1877
+ },
1878
+ "subject": {
1879
+ "type": "string"
1880
+ },
1881
+ "advise_key": {
1882
+ "type": "string"
1883
+ }
1884
+ }
1885
+ }
1886
+ },
1887
+ "advise": {
1888
+ "type": "array",
1889
+ "items": {
1890
+ "type": "string"
1891
+ }
1892
+ }
1893
+ }
1894
+ }
1895
+ }
1896
+ }
1897
+ }
1898
+ }
1615
1899
  }
1616
1900
  }
1617
1901
  }
@@ -1620,13 +1904,95 @@
1620
1904
  "get": {
1621
1905
  "operationId": "_platform_solutions_verify_last_get",
1622
1906
  "summary": "GET api/_platform/solutions/verify/last",
1623
- "x-oj-file": "_platform/api/solutions/api.ts",
1907
+ "x-oj-file": "app/api/_platform/solutions/api.ts",
1624
1908
  "tags": [
1625
1909
  "_platform"
1626
1910
  ],
1911
+ "parameters": [
1912
+ {
1913
+ "name": "name",
1914
+ "in": "query",
1915
+ "required": true,
1916
+ "schema": {
1917
+ "type": "string",
1918
+ "minLength": 1
1919
+ }
1920
+ }
1921
+ ],
1627
1922
  "responses": {
1628
1923
  "200": {
1629
- "description": "OK"
1924
+ "description": "OK",
1925
+ "x-oj-response-enforced": false,
1926
+ "content": {
1927
+ "application/json": {
1928
+ "schema": {
1929
+ "type": "object",
1930
+ "required": [
1931
+ "code",
1932
+ "msg",
1933
+ "data"
1934
+ ],
1935
+ "properties": {
1936
+ "code": {
1937
+ "type": "integer"
1938
+ },
1939
+ "msg": {
1940
+ "type": "string"
1941
+ },
1942
+ "data": {
1943
+ "type": "object",
1944
+ "required": [
1945
+ "ok",
1946
+ "checks",
1947
+ "advise"
1948
+ ],
1949
+ "properties": {
1950
+ "ok": {
1951
+ "type": "boolean"
1952
+ },
1953
+ "checks": {
1954
+ "type": "array",
1955
+ "items": {
1956
+ "type": "object",
1957
+ "required": [
1958
+ "id",
1959
+ "severity",
1960
+ "subject",
1961
+ "advise_key"
1962
+ ],
1963
+ "properties": {
1964
+ "id": {
1965
+ "type": "string"
1966
+ },
1967
+ "severity": {
1968
+ "type": "string",
1969
+ "enum": [
1970
+ "error",
1971
+ "warn",
1972
+ "info"
1973
+ ]
1974
+ },
1975
+ "subject": {
1976
+ "type": "string"
1977
+ },
1978
+ "advise_key": {
1979
+ "type": "string"
1980
+ }
1981
+ }
1982
+ }
1983
+ },
1984
+ "advise": {
1985
+ "type": "array",
1986
+ "items": {
1987
+ "type": "string"
1988
+ }
1989
+ }
1990
+ }
1991
+ }
1992
+ }
1993
+ }
1994
+ }
1995
+ }
1630
1996
  }
1631
1997
  }
1632
1998
  }
@@ -1635,13 +2001,122 @@
1635
2001
  "post": {
1636
2002
  "operationId": "auth_login_post",
1637
2003
  "summary": "POST api/auth/login",
1638
- "x-oj-file": "auth/api/api.ts",
2004
+ "x-oj-file": "app/api/auth/api.ts",
1639
2005
  "tags": [
1640
2006
  "auth"
1641
2007
  ],
2008
+ "requestBody": {
2009
+ "required": true,
2010
+ "content": {
2011
+ "application/json": {
2012
+ "schema": {
2013
+ "type": "object",
2014
+ "required": [
2015
+ "username",
2016
+ "password"
2017
+ ],
2018
+ "properties": {
2019
+ "username": {
2020
+ "type": "string",
2021
+ "minLength": 1
2022
+ },
2023
+ "password": {
2024
+ "type": "string",
2025
+ "minLength": 1
2026
+ }
2027
+ }
2028
+ }
2029
+ }
2030
+ }
2031
+ },
1642
2032
  "responses": {
1643
2033
  "200": {
1644
- "description": "OK"
2034
+ "description": "OK",
2035
+ "x-oj-response-enforced": false,
2036
+ "content": {
2037
+ "application/json": {
2038
+ "schema": {
2039
+ "type": "object",
2040
+ "required": [
2041
+ "code",
2042
+ "msg",
2043
+ "data"
2044
+ ],
2045
+ "properties": {
2046
+ "code": {
2047
+ "type": "integer"
2048
+ },
2049
+ "msg": {
2050
+ "type": "string"
2051
+ },
2052
+ "data": {
2053
+ "type": "object",
2054
+ "required": [
2055
+ "access_token",
2056
+ "refresh_token",
2057
+ "expires_in",
2058
+ "restricted",
2059
+ "user"
2060
+ ],
2061
+ "properties": {
2062
+ "access_token": {
2063
+ "type": "string"
2064
+ },
2065
+ "refresh_token": {
2066
+ "type": "string"
2067
+ },
2068
+ "expires_in": {
2069
+ "type": "number"
2070
+ },
2071
+ "restricted": {
2072
+ "type": "boolean"
2073
+ },
2074
+ "user": {
2075
+ "type": "object",
2076
+ "required": [
2077
+ "id",
2078
+ "username",
2079
+ "display_name",
2080
+ "avatar_base64",
2081
+ "must_change",
2082
+ "roles"
2083
+ ],
2084
+ "properties": {
2085
+ "id": {
2086
+ "type": "number"
2087
+ },
2088
+ "username": {
2089
+ "type": "string"
2090
+ },
2091
+ "display_name": {
2092
+ "type": [
2093
+ "string",
2094
+ "null"
2095
+ ]
2096
+ },
2097
+ "avatar_base64": {
2098
+ "type": [
2099
+ "string",
2100
+ "null"
2101
+ ]
2102
+ },
2103
+ "must_change": {
2104
+ "type": "boolean"
2105
+ },
2106
+ "roles": {
2107
+ "type": "array",
2108
+ "items": {
2109
+ "type": "string"
2110
+ }
2111
+ }
2112
+ }
2113
+ }
2114
+ }
2115
+ }
2116
+ }
2117
+ }
2118
+ }
2119
+ }
1645
2120
  }
1646
2121
  }
1647
2122
  }
@@ -1650,13 +2125,56 @@
1650
2125
  "post": {
1651
2126
  "operationId": "auth_logout_post",
1652
2127
  "summary": "POST api/auth/logout",
1653
- "x-oj-file": "auth/api/api.ts",
2128
+ "x-oj-file": "app/api/auth/api.ts",
1654
2129
  "tags": [
1655
2130
  "auth"
1656
2131
  ],
2132
+ "requestBody": {
2133
+ "required": true,
2134
+ "content": {
2135
+ "application/json": {
2136
+ "schema": {
2137
+ "type": "object",
2138
+ "required": [
2139
+ "refresh_token"
2140
+ ],
2141
+ "properties": {
2142
+ "refresh_token": {
2143
+ "type": "string",
2144
+ "minLength": 1
2145
+ }
2146
+ }
2147
+ }
2148
+ }
2149
+ }
2150
+ },
1657
2151
  "responses": {
1658
2152
  "200": {
1659
- "description": "OK"
2153
+ "description": "OK",
2154
+ "x-oj-response-enforced": false,
2155
+ "content": {
2156
+ "application/json": {
2157
+ "schema": {
2158
+ "type": "object",
2159
+ "required": [
2160
+ "code",
2161
+ "msg",
2162
+ "data"
2163
+ ],
2164
+ "properties": {
2165
+ "code": {
2166
+ "type": "integer"
2167
+ },
2168
+ "msg": {
2169
+ "type": "string"
2170
+ },
2171
+ "data": {
2172
+ "type": "null"
2173
+ }
2174
+ }
2175
+ }
2176
+ }
2177
+ }
1660
2178
  }
1661
2179
  }
1662
2180
  }
@@ -1665,13 +2183,117 @@
1665
2183
  "post": {
1666
2184
  "operationId": "auth_refresh_post",
1667
2185
  "summary": "POST api/auth/refresh",
1668
- "x-oj-file": "auth/api/api.ts",
2186
+ "x-oj-file": "app/api/auth/api.ts",
1669
2187
  "tags": [
1670
2188
  "auth"
1671
2189
  ],
2190
+ "requestBody": {
2191
+ "required": true,
2192
+ "content": {
2193
+ "application/json": {
2194
+ "schema": {
2195
+ "type": "object",
2196
+ "required": [
2197
+ "refresh_token"
2198
+ ],
2199
+ "properties": {
2200
+ "refresh_token": {
2201
+ "type": "string",
2202
+ "minLength": 1
2203
+ }
2204
+ }
2205
+ }
2206
+ }
2207
+ }
2208
+ },
1672
2209
  "responses": {
1673
2210
  "200": {
1674
- "description": "OK"
2211
+ "description": "OK",
2212
+ "x-oj-response-enforced": false,
2213
+ "content": {
2214
+ "application/json": {
2215
+ "schema": {
2216
+ "type": "object",
2217
+ "required": [
2218
+ "code",
2219
+ "msg",
2220
+ "data"
2221
+ ],
2222
+ "properties": {
2223
+ "code": {
2224
+ "type": "integer"
2225
+ },
2226
+ "msg": {
2227
+ "type": "string"
2228
+ },
2229
+ "data": {
2230
+ "type": "object",
2231
+ "required": [
2232
+ "access_token",
2233
+ "refresh_token",
2234
+ "expires_in",
2235
+ "restricted",
2236
+ "user"
2237
+ ],
2238
+ "properties": {
2239
+ "access_token": {
2240
+ "type": "string"
2241
+ },
2242
+ "refresh_token": {
2243
+ "type": "string"
2244
+ },
2245
+ "expires_in": {
2246
+ "type": "number"
2247
+ },
2248
+ "restricted": {
2249
+ "type": "boolean"
2250
+ },
2251
+ "user": {
2252
+ "type": "object",
2253
+ "required": [
2254
+ "id",
2255
+ "username",
2256
+ "display_name",
2257
+ "avatar_base64",
2258
+ "must_change",
2259
+ "roles"
2260
+ ],
2261
+ "properties": {
2262
+ "id": {
2263
+ "type": "number"
2264
+ },
2265
+ "username": {
2266
+ "type": "string"
2267
+ },
2268
+ "display_name": {
2269
+ "type": [
2270
+ "string",
2271
+ "null"
2272
+ ]
2273
+ },
2274
+ "avatar_base64": {
2275
+ "type": [
2276
+ "string",
2277
+ "null"
2278
+ ]
2279
+ },
2280
+ "must_change": {
2281
+ "type": "boolean"
2282
+ },
2283
+ "roles": {
2284
+ "type": "array",
2285
+ "items": {
2286
+ "type": "string"
2287
+ }
2288
+ }
2289
+ }
2290
+ }
2291
+ }
2292
+ }
2293
+ }
2294
+ }
2295
+ }
2296
+ }
1675
2297
  }
1676
2298
  }
1677
2299
  }
@@ -1680,7 +2302,7 @@
1680
2302
  "put": {
1681
2303
  "operationId": "auth_password_put",
1682
2304
  "summary": "PUT api/auth/password",
1683
- "x-oj-file": "auth/api/api.ts",
2305
+ "x-oj-file": "app/api/auth/api.ts",
1684
2306
  "tags": [
1685
2307
  "auth"
1686
2308
  ],
@@ -1710,7 +2332,92 @@
1710
2332
  },
1711
2333
  "responses": {
1712
2334
  "200": {
1713
- "description": "OK"
2335
+ "description": "OK",
2336
+ "x-oj-response-enforced": false,
2337
+ "content": {
2338
+ "application/json": {
2339
+ "schema": {
2340
+ "type": "object",
2341
+ "required": [
2342
+ "code",
2343
+ "msg",
2344
+ "data"
2345
+ ],
2346
+ "properties": {
2347
+ "code": {
2348
+ "type": "integer"
2349
+ },
2350
+ "msg": {
2351
+ "type": "string"
2352
+ },
2353
+ "data": {
2354
+ "type": "object",
2355
+ "required": [
2356
+ "access_token",
2357
+ "refresh_token",
2358
+ "expires_in",
2359
+ "restricted",
2360
+ "user"
2361
+ ],
2362
+ "properties": {
2363
+ "access_token": {
2364
+ "type": "string"
2365
+ },
2366
+ "refresh_token": {
2367
+ "type": "string"
2368
+ },
2369
+ "expires_in": {
2370
+ "type": "number"
2371
+ },
2372
+ "restricted": {
2373
+ "type": "boolean"
2374
+ },
2375
+ "user": {
2376
+ "type": "object",
2377
+ "required": [
2378
+ "id",
2379
+ "username",
2380
+ "display_name",
2381
+ "avatar_base64",
2382
+ "must_change",
2383
+ "roles"
2384
+ ],
2385
+ "properties": {
2386
+ "id": {
2387
+ "type": "number"
2388
+ },
2389
+ "username": {
2390
+ "type": "string"
2391
+ },
2392
+ "display_name": {
2393
+ "type": [
2394
+ "string",
2395
+ "null"
2396
+ ]
2397
+ },
2398
+ "avatar_base64": {
2399
+ "type": [
2400
+ "string",
2401
+ "null"
2402
+ ]
2403
+ },
2404
+ "must_change": {
2405
+ "type": "boolean"
2406
+ },
2407
+ "roles": {
2408
+ "type": "array",
2409
+ "items": {
2410
+ "type": "string"
2411
+ }
2412
+ }
2413
+ }
2414
+ }
2415
+ }
2416
+ }
2417
+ }
2418
+ }
2419
+ }
2420
+ }
1714
2421
  }
1715
2422
  }
1716
2423
  }
@@ -1719,13 +2426,122 @@
1719
2426
  "post": {
1720
2427
  "operationId": "auth_ldap_login_post",
1721
2428
  "summary": "POST api/auth/ldap-login",
1722
- "x-oj-file": "auth/api/ldap-login/api.ts",
2429
+ "x-oj-file": "app/api/auth/ldap-login/api.ts",
1723
2430
  "tags": [
1724
2431
  "auth"
1725
2432
  ],
2433
+ "requestBody": {
2434
+ "required": true,
2435
+ "content": {
2436
+ "application/json": {
2437
+ "schema": {
2438
+ "type": "object",
2439
+ "required": [
2440
+ "username",
2441
+ "password"
2442
+ ],
2443
+ "properties": {
2444
+ "username": {
2445
+ "type": "string",
2446
+ "minLength": 1
2447
+ },
2448
+ "password": {
2449
+ "type": "string",
2450
+ "minLength": 1
2451
+ }
2452
+ }
2453
+ }
2454
+ }
2455
+ }
2456
+ },
1726
2457
  "responses": {
1727
2458
  "200": {
1728
- "description": "OK"
2459
+ "description": "OK",
2460
+ "x-oj-response-enforced": false,
2461
+ "content": {
2462
+ "application/json": {
2463
+ "schema": {
2464
+ "type": "object",
2465
+ "required": [
2466
+ "code",
2467
+ "msg",
2468
+ "data"
2469
+ ],
2470
+ "properties": {
2471
+ "code": {
2472
+ "type": "integer"
2473
+ },
2474
+ "msg": {
2475
+ "type": "string"
2476
+ },
2477
+ "data": {
2478
+ "type": "object",
2479
+ "required": [
2480
+ "access_token",
2481
+ "refresh_token",
2482
+ "expires_in",
2483
+ "restricted",
2484
+ "user"
2485
+ ],
2486
+ "properties": {
2487
+ "access_token": {
2488
+ "type": "string"
2489
+ },
2490
+ "refresh_token": {
2491
+ "type": "string"
2492
+ },
2493
+ "expires_in": {
2494
+ "type": "number"
2495
+ },
2496
+ "restricted": {
2497
+ "type": "boolean"
2498
+ },
2499
+ "user": {
2500
+ "type": "object",
2501
+ "required": [
2502
+ "id",
2503
+ "username",
2504
+ "display_name",
2505
+ "avatar_base64",
2506
+ "must_change",
2507
+ "roles"
2508
+ ],
2509
+ "properties": {
2510
+ "id": {
2511
+ "type": "number"
2512
+ },
2513
+ "username": {
2514
+ "type": "string"
2515
+ },
2516
+ "display_name": {
2517
+ "type": [
2518
+ "string",
2519
+ "null"
2520
+ ]
2521
+ },
2522
+ "avatar_base64": {
2523
+ "type": [
2524
+ "string",
2525
+ "null"
2526
+ ]
2527
+ },
2528
+ "must_change": {
2529
+ "type": "boolean"
2530
+ },
2531
+ "roles": {
2532
+ "type": "array",
2533
+ "items": {
2534
+ "type": "string"
2535
+ }
2536
+ }
2537
+ }
2538
+ }
2539
+ }
2540
+ }
2541
+ }
2542
+ }
2543
+ }
2544
+ }
1729
2545
  }
1730
2546
  }
1731
2547
  }
@@ -1734,7 +2550,7 @@
1734
2550
  "get": {
1735
2551
  "operationId": "auth_wecom_admin_apps_get",
1736
2552
  "summary": "GET api/auth/wecom/admin/apps",
1737
- "x-oj-file": "auth/api/wecom/admin/api.ts",
2553
+ "x-oj-file": "app/api/auth/wecom/admin/api.ts",
1738
2554
  "tags": [
1739
2555
  "auth"
1740
2556
  ],
@@ -1834,7 +2650,7 @@
1834
2650
  "get": {
1835
2651
  "operationId": "auth_wecom_admin_overview_get",
1836
2652
  "summary": "GET api/auth/wecom/admin/overview",
1837
- "x-oj-file": "auth/api/wecom/admin/api.ts",
2653
+ "x-oj-file": "app/api/auth/wecom/admin/api.ts",
1838
2654
  "tags": [
1839
2655
  "auth"
1840
2656
  ],
@@ -1920,7 +2736,7 @@
1920
2736
  "post": {
1921
2737
  "operationId": "auth_wecom_admin_status_post",
1922
2738
  "summary": "POST api/auth/wecom/admin/status",
1923
- "x-oj-file": "auth/api/wecom/admin/api.ts",
2739
+ "x-oj-file": "app/api/auth/wecom/admin/api.ts",
1924
2740
  "tags": [
1925
2741
  "auth"
1926
2742
  ],
@@ -2003,7 +2819,7 @@
2003
2819
  "get": {
2004
2820
  "operationId": "auth_wecom_admin_install_get",
2005
2821
  "summary": "GET api/auth/wecom/admin/install",
2006
- "x-oj-file": "auth/api/wecom/admin/api.ts",
2822
+ "x-oj-file": "app/api/auth/wecom/admin/api.ts",
2007
2823
  "tags": [
2008
2824
  "auth"
2009
2825
  ],
@@ -2058,7 +2874,7 @@
2058
2874
  "post": {
2059
2875
  "operationId": "auth_wecom_admin_connect_post",
2060
2876
  "summary": "POST api/auth/wecom/admin/connect",
2061
- "x-oj-file": "auth/api/wecom/admin/api.ts",
2877
+ "x-oj-file": "app/api/auth/wecom/admin/api.ts",
2062
2878
  "tags": [
2063
2879
  "auth"
2064
2880
  ],
@@ -2117,7 +2933,7 @@
2117
2933
  "get": {
2118
2934
  "operationId": "auth_wecom_admin_tenant_admin_get",
2119
2935
  "summary": "GET api/auth/wecom/admin/tenant-admin",
2120
- "x-oj-file": "auth/api/wecom/admin/tenant-admin/api.ts",
2936
+ "x-oj-file": "app/api/auth/wecom/admin/tenant-admin/api.ts",
2121
2937
  "tags": [
2122
2938
  "auth"
2123
2939
  ],
@@ -2187,7 +3003,7 @@
2187
3003
  "post": {
2188
3004
  "operationId": "auth_wecom_admin_tenant_admin_password_post",
2189
3005
  "summary": "POST api/auth/wecom/admin/tenant-admin/password",
2190
- "x-oj-file": "auth/api/wecom/admin/tenant-admin/password/api.ts",
3006
+ "x-oj-file": "app/api/auth/wecom/admin/tenant-admin/password/api.ts",
2191
3007
  "tags": [
2192
3008
  "auth"
2193
3009
  ],
@@ -2270,7 +3086,7 @@
2270
3086
  "get": {
2271
3087
  "operationId": "auth_wecom_login_get",
2272
3088
  "summary": "GET api/auth/wecom/login",
2273
- "x-oj-file": "auth/api/wecom/api.ts",
3089
+ "x-oj-file": "app/api/auth/wecom/api.ts",
2274
3090
  "tags": [
2275
3091
  "auth"
2276
3092
  ],
@@ -2285,7 +3101,7 @@
2285
3101
  "get": {
2286
3102
  "operationId": "auth_wecom_callback_get",
2287
3103
  "summary": "GET api/auth/wecom/callback",
2288
- "x-oj-file": "auth/api/wecom/api.ts",
3104
+ "x-oj-file": "app/api/auth/wecom/api.ts",
2289
3105
  "tags": [
2290
3106
  "auth"
2291
3107
  ],
@@ -2300,7 +3116,7 @@
2300
3116
  "post": {
2301
3117
  "operationId": "auth_wecom_ticket_post",
2302
3118
  "summary": "POST api/auth/wecom/ticket",
2303
- "x-oj-file": "auth/api/wecom/api.ts",
3119
+ "x-oj-file": "app/api/auth/wecom/api.ts",
2304
3120
  "tags": [
2305
3121
  "auth"
2306
3122
  ],
@@ -2323,11 +3139,96 @@
2323
3139
  }
2324
3140
  }
2325
3141
  }
2326
- },
2327
- "responses": {
2328
- "200": {
2329
- "description": "OK"
2330
- }
3142
+ },
3143
+ "responses": {
3144
+ "200": {
3145
+ "description": "OK",
3146
+ "x-oj-response-enforced": false,
3147
+ "content": {
3148
+ "application/json": {
3149
+ "schema": {
3150
+ "type": "object",
3151
+ "required": [
3152
+ "code",
3153
+ "msg",
3154
+ "data"
3155
+ ],
3156
+ "properties": {
3157
+ "code": {
3158
+ "type": "integer"
3159
+ },
3160
+ "msg": {
3161
+ "type": "string"
3162
+ },
3163
+ "data": {
3164
+ "type": "object",
3165
+ "required": [
3166
+ "access_token",
3167
+ "refresh_token",
3168
+ "expires_in",
3169
+ "restricted",
3170
+ "user"
3171
+ ],
3172
+ "properties": {
3173
+ "access_token": {
3174
+ "type": "string"
3175
+ },
3176
+ "refresh_token": {
3177
+ "type": "string"
3178
+ },
3179
+ "expires_in": {
3180
+ "type": "number"
3181
+ },
3182
+ "restricted": {
3183
+ "type": "boolean"
3184
+ },
3185
+ "user": {
3186
+ "type": "object",
3187
+ "required": [
3188
+ "id",
3189
+ "username",
3190
+ "display_name",
3191
+ "avatar_base64",
3192
+ "must_change",
3193
+ "roles"
3194
+ ],
3195
+ "properties": {
3196
+ "id": {
3197
+ "type": "number"
3198
+ },
3199
+ "username": {
3200
+ "type": "string"
3201
+ },
3202
+ "display_name": {
3203
+ "type": [
3204
+ "string",
3205
+ "null"
3206
+ ]
3207
+ },
3208
+ "avatar_base64": {
3209
+ "type": [
3210
+ "string",
3211
+ "null"
3212
+ ]
3213
+ },
3214
+ "must_change": {
3215
+ "type": "boolean"
3216
+ },
3217
+ "roles": {
3218
+ "type": "array",
3219
+ "items": {
3220
+ "type": "string"
3221
+ }
3222
+ }
3223
+ }
3224
+ }
3225
+ }
3226
+ }
3227
+ }
3228
+ }
3229
+ }
3230
+ }
3231
+ }
2331
3232
  }
2332
3233
  }
2333
3234
  },
@@ -2335,7 +3236,7 @@
2335
3236
  "get": {
2336
3237
  "operationId": "auth_wecom_event_get",
2337
3238
  "summary": "GET api/auth/wecom/event",
2338
- "x-oj-file": "auth/api/wecom/api.ts",
3239
+ "x-oj-file": "app/api/auth/wecom/api.ts",
2339
3240
  "tags": [
2340
3241
  "auth"
2341
3242
  ],
@@ -2348,7 +3249,7 @@
2348
3249
  "post": {
2349
3250
  "operationId": "auth_wecom_event_post",
2350
3251
  "summary": "POST api/auth/wecom/event",
2351
- "x-oj-file": "auth/api/wecom/api.ts",
3252
+ "x-oj-file": "app/api/auth/wecom/api.ts",
2352
3253
  "tags": [
2353
3254
  "auth"
2354
3255
  ],
@@ -2363,7 +3264,7 @@
2363
3264
  "post": {
2364
3265
  "operationId": "auth_wecom_sync_start_post",
2365
3266
  "summary": "POST api/auth/wecom/sync/start",
2366
- "x-oj-file": "auth/api/wecom/sync/api.ts",
3267
+ "x-oj-file": "app/api/auth/wecom/sync/api.ts",
2367
3268
  "tags": [
2368
3269
  "auth"
2369
3270
  ],
@@ -2560,7 +3461,7 @@
2560
3461
  "get": {
2561
3462
  "operationId": "auth_wecom_sync_status_get",
2562
3463
  "summary": "GET api/auth/wecom/sync/status",
2563
- "x-oj-file": "auth/api/wecom/sync/api.ts",
3464
+ "x-oj-file": "app/api/auth/wecom/sync/api.ts",
2564
3465
  "tags": [
2565
3466
  "auth"
2566
3467
  ],
@@ -2752,7 +3653,7 @@
2752
3653
  "post": {
2753
3654
  "operationId": "auth_wecom_sync_cancel_post",
2754
3655
  "summary": "POST api/auth/wecom/sync/cancel",
2755
- "x-oj-file": "auth/api/wecom/sync/api.ts",
3656
+ "x-oj-file": "app/api/auth/wecom/sync/api.ts",
2756
3657
  "tags": [
2757
3658
  "auth"
2758
3659
  ],
@@ -2949,7 +3850,7 @@
2949
3850
  "post": {
2950
3851
  "operationId": "home_line_post",
2951
3852
  "summary": "POST api/home/line",
2952
- "x-oj-file": "home/api/line/api.ts",
3853
+ "x-oj-file": "app/api/home/line/api.ts",
2953
3854
  "tags": [
2954
3855
  "home"
2955
3856
  ],
@@ -3009,7 +3910,7 @@
3009
3910
  "get": {
3010
3911
  "operationId": "home_pie_get",
3011
3912
  "summary": "GET api/home/pie",
3012
- "x-oj-file": "home/api/pie/api.ts",
3913
+ "x-oj-file": "app/api/home/pie/api.ts",
3013
3914
  "tags": [
3014
3915
  "home"
3015
3916
  ],
@@ -3076,7 +3977,7 @@
3076
3977
  "get": {
3077
3978
  "operationId": "notification_notifications_get",
3078
3979
  "summary": "GET api/notification/notifications",
3079
- "x-oj-file": "notification/api/api.ts",
3980
+ "x-oj-file": "app/api/notification/api.ts",
3080
3981
  "tags": [
3081
3982
  "notification"
3082
3983
  ],
@@ -3167,7 +4068,7 @@
3167
4068
  "post": {
3168
4069
  "operationId": "notification_notifications_read_post",
3169
4070
  "summary": "POST api/notification/notifications/read",
3170
- "x-oj-file": "notification/api/api.ts",
4071
+ "x-oj-file": "app/api/notification/api.ts",
3171
4072
  "tags": [
3172
4073
  "notification"
3173
4074
  ],
@@ -3191,7 +4092,31 @@
3191
4092
  },
3192
4093
  "responses": {
3193
4094
  "200": {
3194
- "description": "OK"
4095
+ "description": "OK",
4096
+ "x-oj-response-enforced": false,
4097
+ "content": {
4098
+ "application/json": {
4099
+ "schema": {
4100
+ "type": "object",
4101
+ "required": [
4102
+ "code",
4103
+ "msg",
4104
+ "data"
4105
+ ],
4106
+ "properties": {
4107
+ "code": {
4108
+ "type": "integer"
4109
+ },
4110
+ "msg": {
4111
+ "type": "string"
4112
+ },
4113
+ "data": {
4114
+ "type": "null"
4115
+ }
4116
+ }
4117
+ }
4118
+ }
4119
+ }
3195
4120
  }
3196
4121
  }
3197
4122
  }
@@ -3200,13 +4125,37 @@
3200
4125
  "post": {
3201
4126
  "operationId": "notification_notifications_read_all_post",
3202
4127
  "summary": "POST api/notification/notifications/read-all",
3203
- "x-oj-file": "notification/api/api.ts",
4128
+ "x-oj-file": "app/api/notification/api.ts",
3204
4129
  "tags": [
3205
4130
  "notification"
3206
4131
  ],
3207
4132
  "responses": {
3208
4133
  "200": {
3209
- "description": "OK"
4134
+ "description": "OK",
4135
+ "x-oj-response-enforced": false,
4136
+ "content": {
4137
+ "application/json": {
4138
+ "schema": {
4139
+ "type": "object",
4140
+ "required": [
4141
+ "code",
4142
+ "msg",
4143
+ "data"
4144
+ ],
4145
+ "properties": {
4146
+ "code": {
4147
+ "type": "integer"
4148
+ },
4149
+ "msg": {
4150
+ "type": "string"
4151
+ },
4152
+ "data": {
4153
+ "type": "null"
4154
+ }
4155
+ }
4156
+ }
4157
+ }
4158
+ }
3210
4159
  }
3211
4160
  }
3212
4161
  }
@@ -3215,13 +4164,37 @@
3215
4164
  "post": {
3216
4165
  "operationId": "notification_notifications_clear_post",
3217
4166
  "summary": "POST api/notification/notifications/clear",
3218
- "x-oj-file": "notification/api/api.ts",
4167
+ "x-oj-file": "app/api/notification/api.ts",
3219
4168
  "tags": [
3220
4169
  "notification"
3221
4170
  ],
3222
4171
  "responses": {
3223
4172
  "200": {
3224
- "description": "OK"
4173
+ "description": "OK",
4174
+ "x-oj-response-enforced": false,
4175
+ "content": {
4176
+ "application/json": {
4177
+ "schema": {
4178
+ "type": "object",
4179
+ "required": [
4180
+ "code",
4181
+ "msg",
4182
+ "data"
4183
+ ],
4184
+ "properties": {
4185
+ "code": {
4186
+ "type": "integer"
4187
+ },
4188
+ "msg": {
4189
+ "type": "string"
4190
+ },
4191
+ "data": {
4192
+ "type": "null"
4193
+ }
4194
+ }
4195
+ }
4196
+ }
4197
+ }
3225
4198
  }
3226
4199
  }
3227
4200
  }
@@ -3230,7 +4203,7 @@
3230
4203
  "post": {
3231
4204
  "operationId": "notification_push_post",
3232
4205
  "summary": "POST api/notification/push",
3233
- "x-oj-file": "notification/api/api.ts",
4206
+ "x-oj-file": "app/api/notification/api.ts",
3234
4207
  "tags": [
3235
4208
  "notification"
3236
4209
  ],
@@ -3278,7 +4251,39 @@
3278
4251
  },
3279
4252
  "responses": {
3280
4253
  "200": {
3281
- "description": "OK"
4254
+ "description": "OK",
4255
+ "x-oj-response-enforced": false,
4256
+ "content": {
4257
+ "application/json": {
4258
+ "schema": {
4259
+ "type": "object",
4260
+ "required": [
4261
+ "code",
4262
+ "msg",
4263
+ "data"
4264
+ ],
4265
+ "properties": {
4266
+ "code": {
4267
+ "type": "integer"
4268
+ },
4269
+ "msg": {
4270
+ "type": "string"
4271
+ },
4272
+ "data": {
4273
+ "type": "object",
4274
+ "required": [
4275
+ "id"
4276
+ ],
4277
+ "properties": {
4278
+ "id": {
4279
+ "type": "string"
4280
+ }
4281
+ }
4282
+ }
4283
+ }
4284
+ }
4285
+ }
4286
+ }
3282
4287
  }
3283
4288
  }
3284
4289
  }
@@ -3287,7 +4292,7 @@
3287
4292
  "post": {
3288
4293
  "operationId": "notification_push_broadcast_post",
3289
4294
  "summary": "POST api/notification/push-broadcast",
3290
- "x-oj-file": "notification/api/api.ts",
4295
+ "x-oj-file": "app/api/notification/api.ts",
3291
4296
  "tags": [
3292
4297
  "notification"
3293
4298
  ],
@@ -3329,7 +4334,39 @@
3329
4334
  },
3330
4335
  "responses": {
3331
4336
  "200": {
3332
- "description": "OK"
4337
+ "description": "OK",
4338
+ "x-oj-response-enforced": false,
4339
+ "content": {
4340
+ "application/json": {
4341
+ "schema": {
4342
+ "type": "object",
4343
+ "required": [
4344
+ "code",
4345
+ "msg",
4346
+ "data"
4347
+ ],
4348
+ "properties": {
4349
+ "code": {
4350
+ "type": "integer"
4351
+ },
4352
+ "msg": {
4353
+ "type": "string"
4354
+ },
4355
+ "data": {
4356
+ "type": "object",
4357
+ "required": [
4358
+ "id"
4359
+ ],
4360
+ "properties": {
4361
+ "id": {
4362
+ "type": "string"
4363
+ }
4364
+ }
4365
+ }
4366
+ }
4367
+ }
4368
+ }
4369
+ }
3333
4370
  }
3334
4371
  }
3335
4372
  }
@@ -3338,7 +4375,7 @@
3338
4375
  "post": {
3339
4376
  "operationId": "notification_del_post",
3340
4377
  "summary": "POST api/notification/del",
3341
- "x-oj-file": "notification/api/del/api.ts",
4378
+ "x-oj-file": "app/api/notification/del/api.ts",
3342
4379
  "tags": [
3343
4380
  "notification"
3344
4381
  ],
@@ -3368,7 +4405,31 @@
3368
4405
  },
3369
4406
  "responses": {
3370
4407
  "200": {
3371
- "description": "OK"
4408
+ "description": "OK",
4409
+ "x-oj-response-enforced": false,
4410
+ "content": {
4411
+ "application/json": {
4412
+ "schema": {
4413
+ "type": "object",
4414
+ "required": [
4415
+ "code",
4416
+ "msg",
4417
+ "data"
4418
+ ],
4419
+ "properties": {
4420
+ "code": {
4421
+ "type": "integer"
4422
+ },
4423
+ "msg": {
4424
+ "type": "string"
4425
+ },
4426
+ "data": {
4427
+ "type": "null"
4428
+ }
4429
+ }
4430
+ }
4431
+ }
4432
+ }
3372
4433
  }
3373
4434
  }
3374
4435
  }
@@ -3377,7 +4438,7 @@
3377
4438
  "post": {
3378
4439
  "operationId": "personal_center_profile_post",
3379
4440
  "summary": "POST api/personal-center/profile",
3380
- "x-oj-file": "personal-center/api/profile/api.ts",
4441
+ "x-oj-file": "app/api/personal-center/profile/api.ts",
3381
4442
  "tags": [
3382
4443
  "personal-center"
3383
4444
  ],
@@ -3440,7 +4501,7 @@
3440
4501
  "post": {
3441
4502
  "operationId": "personal_center_upload_post",
3442
4503
  "summary": "POST api/personal-center/upload",
3443
- "x-oj-file": "personal-center/api/upload/api.ts",
4504
+ "x-oj-file": "app/api/personal-center/upload/api.ts",
3444
4505
  "tags": [
3445
4506
  "personal-center"
3446
4507
  ],
@@ -3479,7 +4540,7 @@
3479
4540
  "get": {
3480
4541
  "operationId": "system_departments_get",
3481
4542
  "summary": "GET api/system/departments",
3482
- "x-oj-file": "system/api/departments/api.ts",
4543
+ "x-oj-file": "app/api/system/departments/api.ts",
3483
4544
  "tags": [
3484
4545
  "system"
3485
4546
  ],
@@ -3571,7 +4632,7 @@
3571
4632
  "post": {
3572
4633
  "operationId": "system_departments_post",
3573
4634
  "summary": "POST api/system/departments",
3574
- "x-oj-file": "system/api/departments/api.ts",
4635
+ "x-oj-file": "app/api/system/departments/api.ts",
3575
4636
  "tags": [
3576
4637
  "system"
3577
4638
  ],
@@ -3650,7 +4711,7 @@
3650
4711
  "put": {
3651
4712
  "operationId": "system_departments_put",
3652
4713
  "summary": "PUT api/system/departments",
3653
- "x-oj-file": "system/api/departments/api.ts",
4714
+ "x-oj-file": "app/api/system/departments/api.ts",
3654
4715
  "tags": [
3655
4716
  "system"
3656
4717
  ],
@@ -3730,7 +4791,7 @@
3730
4791
  "delete": {
3731
4792
  "operationId": "system_departments_delete",
3732
4793
  "summary": "DELETE api/system/departments",
3733
- "x-oj-file": "system/api/departments/api.ts",
4794
+ "x-oj-file": "app/api/system/departments/api.ts",
3734
4795
  "tags": [
3735
4796
  "system"
3736
4797
  ],
@@ -3787,7 +4848,7 @@
3787
4848
  "post": {
3788
4849
  "operationId": "system_departments_detach_post",
3789
4850
  "summary": "POST api/system/departments/detach",
3790
- "x-oj-file": "system/api/departments/detach/api.ts",
4851
+ "x-oj-file": "app/api/system/departments/detach/api.ts",
3791
4852
  "tags": [
3792
4853
  "system"
3793
4854
  ],
@@ -3844,7 +4905,7 @@
3844
4905
  "get": {
3845
4906
  "operationId": "system_departments_members_get",
3846
4907
  "summary": "GET api/system/departments/members",
3847
- "x-oj-file": "system/api/departments/members/api.ts",
4908
+ "x-oj-file": "app/api/system/departments/members/api.ts",
3848
4909
  "tags": [
3849
4910
  "system"
3850
4911
  ],
@@ -3928,7 +4989,7 @@
3928
4989
  "post": {
3929
4990
  "operationId": "system_departments_members_post",
3930
4991
  "summary": "POST api/system/departments/members",
3931
- "x-oj-file": "system/api/departments/members/api.ts",
4992
+ "x-oj-file": "app/api/system/departments/members/api.ts",
3932
4993
  "tags": [
3933
4994
  "system"
3934
4995
  ],
@@ -4010,7 +5071,7 @@
4010
5071
  "put": {
4011
5072
  "operationId": "system_departments_members_put",
4012
5073
  "summary": "PUT api/system/departments/members",
4013
- "x-oj-file": "system/api/departments/members/api.ts",
5074
+ "x-oj-file": "app/api/system/departments/members/api.ts",
4014
5075
  "tags": [
4015
5076
  "system"
4016
5077
  ],
@@ -4094,7 +5155,7 @@
4094
5155
  "delete": {
4095
5156
  "operationId": "system_departments_members_delete",
4096
5157
  "summary": "DELETE api/system/departments/members",
4097
- "x-oj-file": "system/api/departments/members/api.ts",
5158
+ "x-oj-file": "app/api/system/departments/members/api.ts",
4098
5159
  "tags": [
4099
5160
  "system"
4100
5161
  ],
@@ -4159,7 +5220,7 @@
4159
5220
  "put": {
4160
5221
  "operationId": "system_departments_move_put",
4161
5222
  "summary": "PUT api/system/departments/move",
4162
- "x-oj-file": "system/api/departments/move/api.ts",
5223
+ "x-oj-file": "app/api/system/departments/move/api.ts",
4163
5224
  "tags": [
4164
5225
  "system"
4165
5226
  ],
@@ -4237,7 +5298,7 @@
4237
5298
  "get": {
4238
5299
  "operationId": "system_login_methods_get",
4239
5300
  "summary": "GET api/system/login-methods",
4240
- "x-oj-file": "system/api/login-methods/api.ts",
5301
+ "x-oj-file": "app/api/system/login-methods/api.ts",
4241
5302
  "tags": [
4242
5303
  "system"
4243
5304
  ],
@@ -4287,7 +5348,7 @@
4287
5348
  "get": {
4288
5349
  "operationId": "system_oplog_get",
4289
5350
  "summary": "GET api/system/oplog",
4290
- "x-oj-file": "system/api/oplog/api.ts",
5351
+ "x-oj-file": "app/api/system/oplog/api.ts",
4291
5352
  "tags": [
4292
5353
  "system"
4293
5354
  ],
@@ -4316,6 +5377,15 @@
4316
5377
  "type": "string"
4317
5378
  }
4318
5379
  },
5380
+ {
5381
+ "name": "page",
5382
+ "in": "query",
5383
+ "required": false,
5384
+ "schema": {
5385
+ "type": "number",
5386
+ "minimum": 1
5387
+ }
5388
+ },
4319
5389
  {
4320
5390
  "name": "limit",
4321
5391
  "in": "query",
@@ -4432,7 +5502,7 @@
4432
5502
  "post": {
4433
5503
  "operationId": "system_oplog_post",
4434
5504
  "summary": "POST api/system/oplog",
4435
- "x-oj-file": "system/api/oplog/api.ts",
5505
+ "x-oj-file": "app/api/system/oplog/api.ts",
4436
5506
  "tags": [
4437
5507
  "system"
4438
5508
  ],
@@ -4512,7 +5582,7 @@
4512
5582
  "get": {
4513
5583
  "operationId": "system_permissions_get",
4514
5584
  "summary": "GET api/system/permissions",
4515
- "x-oj-file": "system/api/permissions/api.ts",
5585
+ "x-oj-file": "app/api/system/permissions/api.ts",
4516
5586
  "tags": [
4517
5587
  "system"
4518
5588
  ],
@@ -4577,7 +5647,7 @@
4577
5647
  "get": {
4578
5648
  "operationId": "system_roles_get",
4579
5649
  "summary": "GET api/system/roles",
4580
- "x-oj-file": "system/api/roles/api.ts",
5650
+ "x-oj-file": "app/api/system/roles/api.ts",
4581
5651
  "tags": [
4582
5652
  "system"
4583
5653
  ],
@@ -4662,7 +5732,7 @@
4662
5732
  "post": {
4663
5733
  "operationId": "system_roles_post",
4664
5734
  "summary": "POST api/system/roles",
4665
- "x-oj-file": "system/api/roles/api.ts",
5735
+ "x-oj-file": "app/api/system/roles/api.ts",
4666
5736
  "tags": [
4667
5737
  "system"
4668
5738
  ],
@@ -4741,7 +5811,7 @@
4741
5811
  "delete": {
4742
5812
  "operationId": "system_roles_delete",
4743
5813
  "summary": "DELETE api/system/roles",
4744
- "x-oj-file": "system/api/roles/api.ts",
5814
+ "x-oj-file": "app/api/system/roles/api.ts",
4745
5815
  "tags": [
4746
5816
  "system"
4747
5817
  ],
@@ -4758,7 +5828,31 @@
4758
5828
  ],
4759
5829
  "responses": {
4760
5830
  "200": {
4761
- "description": "OK"
5831
+ "description": "OK",
5832
+ "x-oj-response-enforced": false,
5833
+ "content": {
5834
+ "application/json": {
5835
+ "schema": {
5836
+ "type": "object",
5837
+ "required": [
5838
+ "code",
5839
+ "msg",
5840
+ "data"
5841
+ ],
5842
+ "properties": {
5843
+ "code": {
5844
+ "type": "integer"
5845
+ },
5846
+ "msg": {
5847
+ "type": "string"
5848
+ },
5849
+ "data": {
5850
+ "type": "null"
5851
+ }
5852
+ }
5853
+ }
5854
+ }
5855
+ }
4762
5856
  }
4763
5857
  }
4764
5858
  }
@@ -4767,7 +5861,7 @@
4767
5861
  "put": {
4768
5862
  "operationId": "system_roles_bindings_put",
4769
5863
  "summary": "PUT api/system/roles/bindings",
4770
- "x-oj-file": "system/api/roles/bindings/api.ts",
5864
+ "x-oj-file": "app/api/system/roles/bindings/api.ts",
4771
5865
  "tags": [
4772
5866
  "system"
4773
5867
  ],
@@ -4802,11 +5896,35 @@
4802
5896
  }
4803
5897
  }
4804
5898
  }
4805
- },
4806
- "responses": {
4807
- "200": {
4808
- "description": "OK"
4809
- }
5899
+ },
5900
+ "responses": {
5901
+ "200": {
5902
+ "description": "OK",
5903
+ "x-oj-response-enforced": false,
5904
+ "content": {
5905
+ "application/json": {
5906
+ "schema": {
5907
+ "type": "object",
5908
+ "required": [
5909
+ "code",
5910
+ "msg",
5911
+ "data"
5912
+ ],
5913
+ "properties": {
5914
+ "code": {
5915
+ "type": "integer"
5916
+ },
5917
+ "msg": {
5918
+ "type": "string"
5919
+ },
5920
+ "data": {
5921
+ "type": "null"
5922
+ }
5923
+ }
5924
+ }
5925
+ }
5926
+ }
5927
+ }
4810
5928
  }
4811
5929
  }
4812
5930
  },
@@ -4814,7 +5932,7 @@
4814
5932
  "get": {
4815
5933
  "operationId": "system_settings_get",
4816
5934
  "summary": "GET api/system/settings",
4817
- "x-oj-file": "system/api/settings/api.ts",
5935
+ "x-oj-file": "app/api/system/settings/api.ts",
4818
5936
  "tags": [
4819
5937
  "system"
4820
5938
  ],
@@ -4925,7 +6043,7 @@
4925
6043
  "put": {
4926
6044
  "operationId": "system_settings_put",
4927
6045
  "summary": "PUT api/system/settings",
4928
- "x-oj-file": "system/api/settings/api.ts",
6046
+ "x-oj-file": "app/api/system/settings/api.ts",
4929
6047
  "tags": [
4930
6048
  "system"
4931
6049
  ],
@@ -4954,7 +6072,31 @@
4954
6072
  },
4955
6073
  "responses": {
4956
6074
  "200": {
4957
- "description": "OK"
6075
+ "description": "OK",
6076
+ "x-oj-response-enforced": false,
6077
+ "content": {
6078
+ "application/json": {
6079
+ "schema": {
6080
+ "type": "object",
6081
+ "required": [
6082
+ "code",
6083
+ "msg",
6084
+ "data"
6085
+ ],
6086
+ "properties": {
6087
+ "code": {
6088
+ "type": "integer"
6089
+ },
6090
+ "msg": {
6091
+ "type": "string"
6092
+ },
6093
+ "data": {
6094
+ "type": "null"
6095
+ }
6096
+ }
6097
+ }
6098
+ }
6099
+ }
4958
6100
  }
4959
6101
  }
4960
6102
  }
@@ -4963,7 +6105,7 @@
4963
6105
  "get": {
4964
6106
  "operationId": "system_users_get",
4965
6107
  "summary": "GET api/system/users",
4966
- "x-oj-file": "system/api/users/api.ts",
6108
+ "x-oj-file": "app/api/system/users/api.ts",
4967
6109
  "tags": [
4968
6110
  "system"
4969
6111
  ],
@@ -5077,7 +6219,7 @@
5077
6219
  "post": {
5078
6220
  "operationId": "system_users_post",
5079
6221
  "summary": "POST api/system/users",
5080
- "x-oj-file": "system/api/users/api.ts",
6222
+ "x-oj-file": "app/api/system/users/api.ts",
5081
6223
  "tags": [
5082
6224
  "system"
5083
6225
  ],
@@ -5152,7 +6294,7 @@
5152
6294
  "delete": {
5153
6295
  "operationId": "system_users_delete",
5154
6296
  "summary": "DELETE api/system/users",
5155
- "x-oj-file": "system/api/users/api.ts",
6297
+ "x-oj-file": "app/api/system/users/api.ts",
5156
6298
  "tags": [
5157
6299
  "system"
5158
6300
  ],
@@ -5209,7 +6351,7 @@
5209
6351
  "put": {
5210
6352
  "operationId": "system_users_forbidden_put",
5211
6353
  "summary": "PUT api/system/users/forbidden",
5212
- "x-oj-file": "system/api/users/forbidden/api.ts",
6354
+ "x-oj-file": "app/api/system/users/forbidden/api.ts",
5213
6355
  "tags": [
5214
6356
  "system"
5215
6357
  ],
@@ -5243,7 +6385,31 @@
5243
6385
  },
5244
6386
  "responses": {
5245
6387
  "200": {
5246
- "description": "OK"
6388
+ "description": "OK",
6389
+ "x-oj-response-enforced": false,
6390
+ "content": {
6391
+ "application/json": {
6392
+ "schema": {
6393
+ "type": "object",
6394
+ "required": [
6395
+ "code",
6396
+ "msg",
6397
+ "data"
6398
+ ],
6399
+ "properties": {
6400
+ "code": {
6401
+ "type": "integer"
6402
+ },
6403
+ "msg": {
6404
+ "type": "string"
6405
+ },
6406
+ "data": {
6407
+ "type": "null"
6408
+ }
6409
+ }
6410
+ }
6411
+ }
6412
+ }
5247
6413
  }
5248
6414
  }
5249
6415
  }
@@ -5252,7 +6418,7 @@
5252
6418
  "put": {
5253
6419
  "operationId": "system_users_password_put",
5254
6420
  "summary": "PUT api/system/users/password",
5255
- "x-oj-file": "system/api/users/password/api.ts",
6421
+ "x-oj-file": "app/api/system/users/password/api.ts",
5256
6422
  "tags": [
5257
6423
  "system"
5258
6424
  ],
@@ -5287,7 +6453,31 @@
5287
6453
  },
5288
6454
  "responses": {
5289
6455
  "200": {
5290
- "description": "OK"
6456
+ "description": "OK",
6457
+ "x-oj-response-enforced": false,
6458
+ "content": {
6459
+ "application/json": {
6460
+ "schema": {
6461
+ "type": "object",
6462
+ "required": [
6463
+ "code",
6464
+ "msg",
6465
+ "data"
6466
+ ],
6467
+ "properties": {
6468
+ "code": {
6469
+ "type": "integer"
6470
+ },
6471
+ "msg": {
6472
+ "type": "string"
6473
+ },
6474
+ "data": {
6475
+ "type": "null"
6476
+ }
6477
+ }
6478
+ }
6479
+ }
6480
+ }
5291
6481
  }
5292
6482
  }
5293
6483
  }
@@ -5296,7 +6486,7 @@
5296
6486
  "put": {
5297
6487
  "operationId": "system_users_profile_put",
5298
6488
  "summary": "PUT api/system/users/profile",
5299
- "x-oj-file": "system/api/users/profile/api.ts",
6489
+ "x-oj-file": "app/api/system/users/profile/api.ts",
5300
6490
  "tags": [
5301
6491
  "system"
5302
6492
  ],
@@ -5383,7 +6573,7 @@
5383
6573
  "put": {
5384
6574
  "operationId": "system_users_roles_put",
5385
6575
  "summary": "PUT api/system/users/roles",
5386
- "x-oj-file": "system/api/users/roles/api.ts",
6576
+ "x-oj-file": "app/api/system/users/roles/api.ts",
5387
6577
  "tags": [
5388
6578
  "system"
5389
6579
  ],
@@ -5420,7 +6610,31 @@
5420
6610
  },
5421
6611
  "responses": {
5422
6612
  "200": {
5423
- "description": "OK"
6613
+ "description": "OK",
6614
+ "x-oj-response-enforced": false,
6615
+ "content": {
6616
+ "application/json": {
6617
+ "schema": {
6618
+ "type": "object",
6619
+ "required": [
6620
+ "code",
6621
+ "msg",
6622
+ "data"
6623
+ ],
6624
+ "properties": {
6625
+ "code": {
6626
+ "type": "integer"
6627
+ },
6628
+ "msg": {
6629
+ "type": "string"
6630
+ },
6631
+ "data": {
6632
+ "type": "null"
6633
+ }
6634
+ }
6635
+ }
6636
+ }
6637
+ }
5424
6638
  }
5425
6639
  }
5426
6640
  }
@@ -5429,13 +6643,54 @@
5429
6643
  "get": {
5430
6644
  "operationId": "web_get_async_routes_get",
5431
6645
  "summary": "GET api/web/get-async-routes",
5432
- "x-oj-file": "web/api/get-async-routes/api.ts",
6646
+ "x-oj-file": "app/api/web/get-async-routes/api.ts",
5433
6647
  "tags": [
5434
6648
  "web"
5435
6649
  ],
5436
6650
  "responses": {
5437
6651
  "200": {
5438
- "description": "OK"
6652
+ "description": "OK",
6653
+ "x-oj-response-enforced": false,
6654
+ "content": {
6655
+ "application/json": {
6656
+ "schema": {
6657
+ "type": "object",
6658
+ "required": [
6659
+ "code",
6660
+ "msg",
6661
+ "data"
6662
+ ],
6663
+ "properties": {
6664
+ "code": {
6665
+ "type": "integer"
6666
+ },
6667
+ "msg": {
6668
+ "type": "string"
6669
+ },
6670
+ "data": {
6671
+ "type": "array",
6672
+ "items": {
6673
+ "type": "object",
6674
+ "properties": {
6675
+ "path": {
6676
+ "type": "string"
6677
+ },
6678
+ "component": {
6679
+ "type": "string"
6680
+ },
6681
+ "children": {
6682
+ "type": "array",
6683
+ "items": {
6684
+ "type": "object"
6685
+ }
6686
+ }
6687
+ }
6688
+ }
6689
+ }
6690
+ }
6691
+ }
6692
+ }
6693
+ }
5439
6694
  }
5440
6695
  }
5441
6696
  }
@@ -5444,13 +6699,52 @@
5444
6699
  "get": {
5445
6700
  "operationId": "web_hello_get",
5446
6701
  "summary": "GET api/web/hello",
5447
- "x-oj-file": "web/api/hello/api.ts",
6702
+ "x-oj-file": "app/api/web/hello/api.ts",
5448
6703
  "tags": [
5449
6704
  "web"
5450
6705
  ],
5451
6706
  "responses": {
5452
6707
  "200": {
5453
- "description": "OK"
6708
+ "description": "OK",
6709
+ "x-oj-response-enforced": false,
6710
+ "content": {
6711
+ "application/json": {
6712
+ "schema": {
6713
+ "type": "object",
6714
+ "required": [
6715
+ "code",
6716
+ "msg",
6717
+ "data"
6718
+ ],
6719
+ "properties": {
6720
+ "code": {
6721
+ "type": "integer"
6722
+ },
6723
+ "msg": {
6724
+ "type": "string"
6725
+ },
6726
+ "data": {
6727
+ "type": "object",
6728
+ "required": [
6729
+ "message",
6730
+ "user"
6731
+ ],
6732
+ "properties": {
6733
+ "message": {
6734
+ "type": "string"
6735
+ },
6736
+ "user": {
6737
+ "type": [
6738
+ "number",
6739
+ "null"
6740
+ ]
6741
+ }
6742
+ }
6743
+ }
6744
+ }
6745
+ }
6746
+ }
6747
+ }
5454
6748
  }
5455
6749
  }
5456
6750
  }
@@ -5459,13 +6753,87 @@
5459
6753
  "get": {
5460
6754
  "operationId": "web_user_info_get",
5461
6755
  "summary": "GET api/web/user-info",
5462
- "x-oj-file": "web/api/user-info/api.ts",
6756
+ "x-oj-file": "app/api/web/user-info/api.ts",
5463
6757
  "tags": [
5464
6758
  "web"
5465
6759
  ],
5466
6760
  "responses": {
5467
6761
  "200": {
5468
- "description": "OK"
6762
+ "description": "OK",
6763
+ "x-oj-response-enforced": false,
6764
+ "content": {
6765
+ "application/json": {
6766
+ "schema": {
6767
+ "type": "object",
6768
+ "required": [
6769
+ "code",
6770
+ "msg",
6771
+ "data"
6772
+ ],
6773
+ "properties": {
6774
+ "code": {
6775
+ "type": "integer"
6776
+ },
6777
+ "msg": {
6778
+ "type": "string"
6779
+ },
6780
+ "data": {
6781
+ "type": "object",
6782
+ "required": [
6783
+ "id",
6784
+ "avatar",
6785
+ "username",
6786
+ "displayName",
6787
+ "email",
6788
+ "phoneNumber",
6789
+ "description",
6790
+ "roles",
6791
+ "mustChange",
6792
+ "permissions"
6793
+ ],
6794
+ "properties": {
6795
+ "id": {
6796
+ "type": "string"
6797
+ },
6798
+ "avatar": {
6799
+ "type": "string"
6800
+ },
6801
+ "username": {
6802
+ "type": "string"
6803
+ },
6804
+ "displayName": {
6805
+ "type": "string"
6806
+ },
6807
+ "email": {
6808
+ "type": "string"
6809
+ },
6810
+ "phoneNumber": {
6811
+ "type": "string"
6812
+ },
6813
+ "description": {
6814
+ "type": "string"
6815
+ },
6816
+ "roles": {
6817
+ "type": "array",
6818
+ "items": {
6819
+ "type": "string"
6820
+ }
6821
+ },
6822
+ "mustChange": {
6823
+ "type": "boolean"
6824
+ },
6825
+ "permissions": {
6826
+ "type": "array",
6827
+ "items": {
6828
+ "type": "string"
6829
+ }
6830
+ }
6831
+ }
6832
+ }
6833
+ }
6834
+ }
6835
+ }
6836
+ }
5469
6837
  }
5470
6838
  }
5471
6839
  }