mm_os 2.9.2 → 2.9.3

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 (631) hide show
  1. package/cache/route/main/config.json +1 -0
  2. package/cache/sys/app_admin/config.json +1 -0
  3. package/cache/sys/main/config.json +1 -0
  4. package/cache/sys/mqtt_engine/config.json +1 -0
  5. package/cache/sys/user/config.json +1 -0
  6. package/cache/user/main/config.json +1 -0
  7. package/core/com/mqtt/index.js +4 -4
  8. package/core/com/task/drive.js +7 -2
  9. package/core/com/task/index.js +2 -0
  10. package/demo/app/dev/LICENSE +201 -0
  11. package/demo/app/dev/README.md +1 -0
  12. package/demo/app/dev/app.js +147 -0
  13. package/demo/app/dev/app.json +12 -0
  14. package/demo/app/dev/event_api/client/event.json +10 -0
  15. package/demo/app/dev/event_api/client/main.js +17 -0
  16. package/demo/app/dev/event_api/manage/event.json +19 -0
  17. package/demo/app/dev/event_api/manage/main.js +26 -0
  18. package/demo/app/dev/plugin/doc/static/api_list.html +144 -0
  19. package/demo/app/dev/plugin/doc/static/api_view.html +692 -0
  20. package/demo/app/dev/plugin/doc/static/index.html +138 -0
  21. package/demo/app/dev/plugin/doc/static/request_test.html +311 -0
  22. package/demo/app/dev/plugin/doc/static/static.js +28 -0
  23. package/demo/app/dev/plugin/doc/static/static.json +20 -0
  24. package/demo/app/dev/plugin/main/api_dev_client/api/api.json +10 -0
  25. package/demo/app/dev/plugin/main/api_dev_client/api/index.js +54 -0
  26. package/demo/app/dev/plugin/main/api_dev_client/api/param.json +31 -0
  27. package/demo/app/dev/plugin/main/api_dev_client/app/api.json +13 -0
  28. package/demo/app/dev/plugin/main/api_dev_client/app/index.js +13 -0
  29. package/demo/app/dev/plugin/main/api_dev_client/app/param.json +147 -0
  30. package/demo/app/dev/plugin/main/api_dev_client/app/sql.json +28 -0
  31. package/demo/app/dev/plugin/main/api_dev_client/auto/api.json +37 -0
  32. package/demo/app/dev/plugin/main/api_dev_client/auto/auto_db.js +70 -0
  33. package/demo/app/dev/plugin/main/api_dev_client/auto/auto_file.js +32 -0
  34. package/demo/app/dev/plugin/main/api_dev_client/auto/index.js +51 -0
  35. package/demo/app/dev/plugin/main/api_dev_client/auto/param.json +51 -0
  36. package/demo/app/dev/plugin/main/api_dev_client/com.js +348 -0
  37. package/demo/app/dev/plugin/main/api_dev_client/db/api.json +10 -0
  38. package/demo/app/dev/plugin/main/api_dev_client/db/index.js +69 -0
  39. package/demo/app/dev/plugin/main/api_dev_client/db/param.json +31 -0
  40. package/demo/app/dev/plugin/main/api_dev_client/dict/api.json +10 -0
  41. package/demo/app/dev/plugin/main/api_dev_client/dict/index.js +49 -0
  42. package/demo/app/dev/plugin/main/api_dev_client/dict/param.json +29 -0
  43. package/demo/app/dev/plugin/main/api_dev_client/event/api.json +10 -0
  44. package/demo/app/dev/plugin/main/api_dev_client/event/index.js +31 -0
  45. package/demo/app/dev/plugin/main/api_dev_client/event/param.json +31 -0
  46. package/demo/app/dev/plugin/main/api_dev_client/help/api.json +10 -0
  47. package/demo/app/dev/plugin/main/api_dev_client/help/index.js +14 -0
  48. package/demo/app/dev/plugin/main/api_dev_client/help/param.json +31 -0
  49. package/demo/app/dev/plugin/main/api_dev_client/nav/api.json +10 -0
  50. package/demo/app/dev/plugin/main/api_dev_client/nav/index.js +36 -0
  51. package/demo/app/dev/plugin/main/api_dev_client/nav/param.json +36 -0
  52. package/demo/app/dev/plugin/main/api_dev_client/plugin/api.json +10 -0
  53. package/demo/app/dev/plugin/main/api_dev_client/plugin/index.js +13 -0
  54. package/demo/app/dev/plugin/main/api_dev_client/plugin/param.json +31 -0
  55. package/demo/app/dev/plugin/main/api_dev_client/source/api.json +10 -0
  56. package/demo/app/dev/plugin/main/api_dev_client/source/index.js +14 -0
  57. package/demo/app/dev/plugin/main/api_dev_client/source/param.json +31 -0
  58. package/demo/app/dev/plugin/main/api_dev_client/sql/api.json +10 -0
  59. package/demo/app/dev/plugin/main/api_dev_client/sql/index.js +13 -0
  60. package/demo/app/dev/plugin/main/api_dev_client/sql/param.json +31 -0
  61. package/demo/app/dev/plugin/main/api_dev_client/task/api.json +16 -0
  62. package/demo/app/dev/plugin/main/api_dev_client/task/index.js +13 -0
  63. package/demo/app/dev/plugin/main/api_dev_client/task/param.json +31 -0
  64. package/demo/app/dev/plugin/main/api_dev_client/translate/api.json +39 -0
  65. package/demo/app/dev/plugin/main/api_dev_client/translate/index.js +43 -0
  66. package/demo/app/dev/plugin/main/api_dev_client/translate/param.json +130 -0
  67. package/demo/app/dev/plugin/main/api_dev_client/translate/sql.json +62 -0
  68. package/demo/app/dev/plugin/main/api_dev_client/ui/api.json +10 -0
  69. package/demo/app/dev/plugin/main/api_dev_client/ui/index.js +146 -0
  70. package/demo/app/dev/plugin/main/api_dev_client/ui/param.json +31 -0
  71. package/demo/app/dev/plugin/main/api_dev_client/view/api.json +10 -0
  72. package/demo/app/dev/plugin/main/api_dev_client/view/index.js +100 -0
  73. package/demo/app/dev/plugin/main/api_dev_client/view/param.json +29 -0
  74. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/nav.vue +12 -0
  75. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/obj.vue +12 -0
  76. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/post.vue +12 -0
  77. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/query.vue +12 -0
  78. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/edit.vue +39 -0
  79. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/list.vue +12 -0
  80. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/search.vue +12 -0
  81. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/table.vue +12 -0
  82. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/type.vue +12 -0
  83. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/view.vue +56 -0
  84. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/view.json +48 -0
  85. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/api.json +37 -0
  86. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/auto_db.js +120 -0
  87. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy/copy.js +101 -0
  88. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy/copy_framework.js +118 -0
  89. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy/copy_template.js +78 -0
  90. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy_file.js +97 -0
  91. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/common.js +198 -0
  92. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/django_server.js +104 -0
  93. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/helper.js +161 -0
  94. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/koa_art_server.js +102 -0
  95. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/mini_app_home.js +415 -0
  96. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/razor.js +0 -0
  97. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/springboot.js +0 -0
  98. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/thinkphp.js +0 -0
  99. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/uni_app_home.js +418 -0
  100. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/vue_cli_admin.js +78 -0
  101. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/vue_cli_home.js +112 -0
  102. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create_file.js +97 -0
  103. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/db/add_data.js +221 -0
  104. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/db/create_table.js +162 -0
  105. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/db/set_auth_table.js +86 -0
  106. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/index.js +524 -0
  107. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/param.json +37 -0
  108. package/demo/app/route/app.js +131 -0
  109. package/demo/app/route/app.json +11 -0
  110. package/demo/app/route/event_api/client/event.json +10 -0
  111. package/demo/app/route/event_api/client/main.js +19 -0
  112. package/demo/app/route/event_api/manage/event.json +18 -0
  113. package/demo/app/route/event_api/manage/main.js +70 -0
  114. package/demo/app/route/plugin/main/api_route_client/pass/api.json +37 -0
  115. package/demo/app/route/plugin/main/api_route_client/pass/index.js +33 -0
  116. package/demo/app/route/plugin/main/api_route_client/pass/param.json +50 -0
  117. package/demo/app/route/plugin/main/index.js +144 -0
  118. package/demo/app/route/plugin/main/plugin.json +20 -0
  119. package/demo/app/sys/.gitmodules +3 -0
  120. package/demo/app/sys/LICENSE +201 -0
  121. package/demo/app/sys/README.md +1 -0
  122. package/demo/app/sys/app.js +148 -0
  123. package/demo/app/sys/app.json +10 -0
  124. package/demo/app/sys/event_api/api/after.js +12 -0
  125. package/demo/app/sys/event_api/api/before.js +78 -0
  126. package/demo/app/sys/event_api/api/check.js +56 -0
  127. package/demo/app/sys/event_api/api/event.json +41 -0
  128. package/demo/app/sys/event_api/api/main.js +17 -0
  129. package/demo/app/sys/event_api/apis/before.js +76 -0
  130. package/demo/app/sys/event_api/apis/event.json +21 -0
  131. package/demo/app/sys/event_api/apis/main.js +17 -0
  132. package/demo/app/sys/event_api/client/event.json +10 -0
  133. package/demo/app/sys/event_api/client/main.js +15 -0
  134. package/demo/app/sys/event_api/doc/event.json +18 -0
  135. package/demo/app/sys/event_api/doc/main.js +67 -0
  136. package/demo/app/sys/event_api/img/event.json +11 -0
  137. package/demo/app/sys/event_api/img/main.js +90 -0
  138. package/demo/app/sys/event_api/manage/event.json +10 -0
  139. package/demo/app/sys/event_api/manage/main.js +15 -0
  140. package/demo/app/sys/event_api/upload/event.json +10 -0
  141. package/demo/app/sys/event_api/upload/main.js +15 -0
  142. package/demo/app/sys/event_api/web/check.js +34 -0
  143. package/demo/app/sys/event_api/web/event.json +39 -0
  144. package/demo/app/sys/event_api/web/main.js +36 -0
  145. package/demo/app/sys/event_api/ws/event.json +10 -0
  146. package/demo/app/sys/event_api/ws/main.js +15 -0
  147. package/demo/app/sys/plugin/app_admin/index.js +127 -0
  148. package/demo/app/sys/plugin/app_admin/plugin.json +20 -0
  149. package/demo/app/sys/plugin/main/api_client/activation/api.json +29 -0
  150. package/demo/app/sys/plugin/main/api_client/activation/index.js +185 -0
  151. package/demo/app/sys/plugin/main/api_client/activation/param.json +56 -0
  152. package/demo/app/sys/plugin/main/api_client/app_balance/api.json +18 -0
  153. package/demo/app/sys/plugin/main/api_client/app_balance/index.js +61 -0
  154. package/demo/app/sys/plugin/main/api_client/app_balance/param.json +36 -0
  155. package/demo/app/sys/plugin/main/api_client/app_pay/api.json +23 -0
  156. package/demo/app/sys/plugin/main/api_client/app_pay/index.js +65 -0
  157. package/demo/app/sys/plugin/main/api_client/app_pay/param.json +61 -0
  158. package/demo/app/sys/plugin/main/api_client/app_state/api.json +27 -0
  159. package/demo/app/sys/plugin/main/api_client/app_state/index.js +46 -0
  160. package/demo/app/sys/plugin/main/api_client/app_state/param.json +36 -0
  161. package/demo/app/sys/plugin/main/api_client/component/api.json +27 -0
  162. package/demo/app/sys/plugin/main/api_client/component/index.js +331 -0
  163. package/demo/app/sys/plugin/main/api_client/config/api.json +37 -0
  164. package/demo/app/sys/plugin/main/api_client/config/index.js +36 -0
  165. package/demo/app/sys/plugin/main/api_client/config/param.json +27 -0
  166. package/demo/app/sys/plugin/main/api_client/config/sql.json +70 -0
  167. package/demo/app/sys/plugin/main/api_client/download/api.json +37 -0
  168. package/demo/app/sys/plugin/main/api_client/download/index.js +60 -0
  169. package/demo/app/sys/plugin/main/api_client/download/param.json +34 -0
  170. package/demo/app/sys/plugin/main/api_client/install/api.json +24 -0
  171. package/demo/app/sys/plugin/main/api_client/install/index.js +216 -0
  172. package/demo/app/sys/plugin/main/api_client/install/param.json +64 -0
  173. package/demo/app/sys/plugin/main/api_client/lang/api.json +37 -0
  174. package/demo/app/sys/plugin/main/api_client/lang/index.js +27 -0
  175. package/demo/app/sys/plugin/main/api_client/lang/param.json +22 -0
  176. package/demo/app/sys/plugin/main/api_client/nav/api.json +15 -0
  177. package/demo/app/sys/plugin/main/api_client/nav/index.js +37 -0
  178. package/demo/app/sys/plugin/main/api_client/nav/param.json +87 -0
  179. package/demo/app/sys/plugin/main/api_client/overview/api.json +24 -0
  180. package/demo/app/sys/plugin/main/api_client/overview/index.js +29 -0
  181. package/demo/app/sys/plugin/main/api_client/overview/param.json +130 -0
  182. package/demo/app/sys/plugin/main/api_client/overview/sql.json +70 -0
  183. package/demo/app/sys/plugin/main/api_client/query/api.json +35 -0
  184. package/demo/app/sys/plugin/main/api_client/query/index.js +48 -0
  185. package/demo/app/sys/plugin/main/api_client/theme/api.json +37 -0
  186. package/demo/app/sys/plugin/main/api_client/theme/index.js +30 -0
  187. package/demo/app/sys/plugin/main/api_client/theme/param.json +31 -0
  188. package/demo/app/sys/plugin/main/api_client/translate/api.json +39 -0
  189. package/demo/app/sys/plugin/main/api_client/translate/index.js +21 -0
  190. package/demo/app/sys/plugin/main/api_client/translate/param.json +130 -0
  191. package/demo/app/sys/plugin/main/api_client/translate/sql.json +62 -0
  192. package/demo/app/sys/plugin/main/api_client/version/api.json +29 -0
  193. package/demo/app/sys/plugin/main/api_client/version/index.js +132 -0
  194. package/demo/app/sys/plugin/main/api_client/version/param.json +130 -0
  195. package/demo/app/sys/plugin/main/api_client/zip/api.json +31 -0
  196. package/demo/app/sys/plugin/main/api_client/zip/index.js +29 -0
  197. package/demo/app/sys/plugin/main/api_client/zip/param.json +48 -0
  198. package/demo/app/sys/plugin/main/api_sys_client/count/api.json +27 -0
  199. package/demo/app/sys/plugin/main/api_sys_client/count/index.js +73 -0
  200. package/demo/app/sys/plugin/main/api_sys_client/lang/api.json +37 -0
  201. package/demo/app/sys/plugin/main/api_sys_client/lang/index.js +28 -0
  202. package/demo/app/sys/plugin/main/api_sys_client/lang/param.json +22 -0
  203. package/demo/app/sys/plugin/main/api_sys_client/log/api.json +29 -0
  204. package/demo/app/sys/plugin/main/api_sys_client/log/index.js +42 -0
  205. package/demo/app/sys/plugin/main/api_sys_client/log/param.json +130 -0
  206. package/demo/app/sys/plugin/main/api_sys_client/options/api.json +30 -0
  207. package/demo/app/sys/plugin/main/api_sys_client/options/index.js +28 -0
  208. package/demo/app/sys/plugin/main/api_sys_client/options/param.json +130 -0
  209. package/demo/app/sys/plugin/main/api_sys_client/query/api.json +35 -0
  210. package/demo/app/sys/plugin/main/api_sys_client/query/index.js +48 -0
  211. package/demo/app/sys/plugin/main/api_sys_client/theme/api.json +37 -0
  212. package/demo/app/sys/plugin/main/api_sys_client/theme/index.js +30 -0
  213. package/demo/app/sys/plugin/main/api_sys_client/theme/param.json +31 -0
  214. package/demo/app/sys/plugin/main/api_sys_web/index/api.json +37 -0
  215. package/demo/app/sys/plugin/main/api_sys_web/index/index.js +26 -0
  216. package/demo/app/sys/plugin/main/api_upload/chunk/api.json +29 -0
  217. package/demo/app/sys/plugin/main/api_upload/chunk/index.js +38 -0
  218. package/demo/app/sys/plugin/main/api_upload/chunk/param.json +27 -0
  219. package/demo/app/sys/plugin/main/api_upload/delete/api.json +29 -0
  220. package/demo/app/sys/plugin/main/api_upload/delete/index.js +38 -0
  221. package/demo/app/sys/plugin/main/api_upload/delete/param.json +27 -0
  222. package/demo/app/sys/plugin/main/api_upload/file/api.json +15 -0
  223. package/demo/app/sys/plugin/main/api_upload/file/index.js +114 -0
  224. package/demo/app/sys/plugin/main/api_upload/file/param.json +9 -0
  225. package/demo/app/sys/plugin/main/api_upload/image/api.json +16 -0
  226. package/demo/app/sys/plugin/main/api_upload/image/index.js +45 -0
  227. package/demo/app/sys/plugin/main/api_upload/image/param.json +9 -0
  228. package/demo/app/sys/plugin/main/api_upload/merge/api.json +29 -0
  229. package/demo/app/sys/plugin/main/api_upload/merge/index.js +38 -0
  230. package/demo/app/sys/plugin/main/api_upload/merge/param.json +27 -0
  231. package/demo/app/sys/plugin/main/api_upload/video/api.json +29 -0
  232. package/demo/app/sys/plugin/main/api_upload/video/index.js +48 -0
  233. package/demo/app/sys/plugin/main/api_upload/video/param.json +25 -0
  234. package/demo/app/sys/plugin/main/index.js +127 -0
  235. package/demo/app/sys/plugin/main/plugin.json +19 -0
  236. package/demo/app/sys/plugin/main/static/article_list.vue +488 -0
  237. package/demo/app/sys/plugin/main/static/img/logo.png +0 -0
  238. package/demo/app/sys/plugin/main/static/static.json +18 -0
  239. package/demo/app/sys/plugin/main/task/task_demo/index.js +37 -0
  240. package/demo/app/sys/plugin/main/task/task_demo/task.json +24 -0
  241. package/demo/app/sys/plugin/mqtt_engine/LICENSE +201 -0
  242. package/demo/app/sys/plugin/mqtt_engine/api_sys_client/scheme/api.json +33 -0
  243. package/demo/app/sys/plugin/mqtt_engine/api_sys_client/scheme/index.js +31 -0
  244. package/demo/app/sys/plugin/mqtt_engine/api_sys_client/scheme/param.json +130 -0
  245. package/demo/app/sys/plugin/mqtt_engine/index.js +51 -0
  246. package/demo/app/sys/plugin/mqtt_engine/mqtt/df/index.js +509 -0
  247. package/demo/app/sys/plugin/mqtt_engine/mqtt/df/mqtt.json +24 -0
  248. package/demo/app/sys/plugin/mqtt_engine/mqtt/zs/index.js +622 -0
  249. package/demo/app/sys/plugin/mqtt_engine/mqtt/zs/mqtt.json +36 -0
  250. package/demo/app/sys/plugin/mqtt_engine/plugin.json +21 -0
  251. package/demo/app/sys/plugin/mqtt_engine/static/img/logo.png +0 -0
  252. package/demo/app/sys/plugin/mqtt_engine/static/img/logo1.png +0 -0
  253. package/demo/app/sys/plugin/mqtt_engine/static/static.json +18 -0
  254. package/demo/app/sys/plugin/server/api_sys_client/ad/api.json +12 -0
  255. package/demo/app/sys/plugin/server/api_sys_client/ad/param.json +685 -0
  256. package/demo/app/sys/plugin/server/api_sys_client/ad/sql.json +114 -0
  257. package/demo/app/sys/plugin/server/api_sys_client/address_province/api.json +12 -0
  258. package/demo/app/sys/plugin/server/api_sys_client/address_province/param.json +156 -0
  259. package/demo/app/sys/plugin/server/api_sys_client/address_province/sql.json +25 -0
  260. package/demo/app/sys/plugin/server/api_sys_client/app/api.json +12 -0
  261. package/demo/app/sys/plugin/server/api_sys_client/app/param.json +437 -0
  262. package/demo/app/sys/plugin/server/api_sys_client/app/sql.json +71 -0
  263. package/demo/app/sys/plugin/server/api_sys_client/app_refresh/api.json +12 -0
  264. package/demo/app/sys/plugin/server/api_sys_client/app_refresh/param.json +158 -0
  265. package/demo/app/sys/plugin/server/api_sys_client/app_refresh/sql.json +28 -0
  266. package/demo/app/sys/plugin/server/api_sys_client/block/api.json +12 -0
  267. package/demo/app/sys/plugin/server/api_sys_client/block/param.json +318 -0
  268. package/demo/app/sys/plugin/server/api_sys_client/block/sql.json +48 -0
  269. package/demo/app/sys/plugin/server/api_sys_client/config/api.json +12 -0
  270. package/demo/app/sys/plugin/server/api_sys_client/config/param.json +259 -0
  271. package/demo/app/sys/plugin/server/api_sys_client/config/sql.json +93 -0
  272. package/demo/app/sys/plugin/server/api_sys_client/file/api.json +12 -0
  273. package/demo/app/sys/plugin/server/api_sys_client/file/param.json +268 -0
  274. package/demo/app/sys/plugin/server/api_sys_client/file/sql.json +30 -0
  275. package/demo/app/sys/plugin/server/api_sys_client/lang/api.json +12 -0
  276. package/demo/app/sys/plugin/server/api_sys_client/lang/param.json +175 -0
  277. package/demo/app/sys/plugin/server/api_sys_client/lang/sql.json +40 -0
  278. package/demo/app/sys/plugin/server/api_sys_client/message/api.json +13 -0
  279. package/demo/app/sys/plugin/server/api_sys_client/message/index.js +31 -0
  280. package/demo/app/sys/plugin/server/api_sys_client/message/param.json +147 -0
  281. package/demo/app/sys/plugin/server/api_sys_client/message/sql.json +24 -0
  282. package/demo/app/sys/plugin/server/api_sys_client/nav/api.json +13 -0
  283. package/demo/app/sys/plugin/server/api_sys_client/nav/index.js +52 -0
  284. package/demo/app/sys/plugin/server/api_sys_client/nav/param.json +295 -0
  285. package/demo/app/sys/plugin/server/api_sys_client/nav/sql.json +63 -0
  286. package/demo/app/sys/plugin/server/api_sys_client/pay/api.json +12 -0
  287. package/demo/app/sys/plugin/server/api_sys_client/pay/param.json +391 -0
  288. package/demo/app/sys/plugin/server/api_sys_client/pay/sql.json +76 -0
  289. package/demo/app/sys/plugin/server/api_sys_client/pay_type/api.json +12 -0
  290. package/demo/app/sys/plugin/server/api_sys_client/pay_type/param.json +242 -0
  291. package/demo/app/sys/plugin/server/api_sys_client/pay_type/sql.json +74 -0
  292. package/demo/app/sys/plugin/server/api_sys_client/project/api.json +12 -0
  293. package/demo/app/sys/plugin/server/api_sys_client/project/param.json +796 -0
  294. package/demo/app/sys/plugin/server/api_sys_client/project/sql.json +163 -0
  295. package/demo/app/sys/plugin/server/api_sys_client/recharge/api.json +12 -0
  296. package/demo/app/sys/plugin/server/api_sys_client/recharge/param.json +311 -0
  297. package/demo/app/sys/plugin/server/api_sys_client/recharge/sql.json +102 -0
  298. package/demo/app/sys/plugin/server/api_sys_client/scene/api.json +12 -0
  299. package/demo/app/sys/plugin/server/api_sys_client/scene/param.json +226 -0
  300. package/demo/app/sys/plugin/server/api_sys_client/scene/sql.json +49 -0
  301. package/demo/app/sys/plugin/server/api_sys_client/seo/api.json +12 -0
  302. package/demo/app/sys/plugin/server/api_sys_client/seo/param.json +145 -0
  303. package/demo/app/sys/plugin/server/api_sys_client/seo/sql.json +49 -0
  304. package/demo/app/sys/plugin/server/api_sys_client/withdrawal/api.json +12 -0
  305. package/demo/app/sys/plugin/server/api_sys_client/withdrawal/param.json +378 -0
  306. package/demo/app/sys/plugin/server/api_sys_client/withdrawal/sql.json +92 -0
  307. package/demo/app/sys/plugin/server/api_sys_manage/ad/api.json +19 -0
  308. package/demo/app/sys/plugin/server/api_sys_manage/ad/index.js +27 -0
  309. package/demo/app/sys/plugin/server/api_sys_manage/ad/param.json +685 -0
  310. package/demo/app/sys/plugin/server/api_sys_manage/ad/sql.json +111 -0
  311. package/demo/app/sys/plugin/server/api_sys_manage/address_province/api.json +18 -0
  312. package/demo/app/sys/plugin/server/api_sys_manage/address_province/param.json +156 -0
  313. package/demo/app/sys/plugin/server/api_sys_manage/address_province/sql.json +23 -0
  314. package/demo/app/sys/plugin/server/api_sys_manage/app/api.json +18 -0
  315. package/demo/app/sys/plugin/server/api_sys_manage/app/param.json +437 -0
  316. package/demo/app/sys/plugin/server/api_sys_manage/app/sql.json +69 -0
  317. package/demo/app/sys/plugin/server/api_sys_manage/app_refresh/api.json +18 -0
  318. package/demo/app/sys/plugin/server/api_sys_manage/app_refresh/param.json +158 -0
  319. package/demo/app/sys/plugin/server/api_sys_manage/app_refresh/sql.json +27 -0
  320. package/demo/app/sys/plugin/server/api_sys_manage/block/api.json +18 -0
  321. package/demo/app/sys/plugin/server/api_sys_manage/block/param.json +318 -0
  322. package/demo/app/sys/plugin/server/api_sys_manage/block/sql.json +47 -0
  323. package/demo/app/sys/plugin/server/api_sys_manage/config/api.json +19 -0
  324. package/demo/app/sys/plugin/server/api_sys_manage/config/index.js +35 -0
  325. package/demo/app/sys/plugin/server/api_sys_manage/config/param.json +261 -0
  326. package/demo/app/sys/plugin/server/api_sys_manage/config/sql.json +92 -0
  327. package/demo/app/sys/plugin/server/api_sys_manage/file/api.json +18 -0
  328. package/demo/app/sys/plugin/server/api_sys_manage/file/param.json +268 -0
  329. package/demo/app/sys/plugin/server/api_sys_manage/file/sql.json +29 -0
  330. package/demo/app/sys/plugin/server/api_sys_manage/lang/api.json +19 -0
  331. package/demo/app/sys/plugin/server/api_sys_manage/lang/index.js +27 -0
  332. package/demo/app/sys/plugin/server/api_sys_manage/lang/param.json +175 -0
  333. package/demo/app/sys/plugin/server/api_sys_manage/lang/sql.json +40 -0
  334. package/demo/app/sys/plugin/server/api_sys_manage/message/api.json +18 -0
  335. package/demo/app/sys/plugin/server/api_sys_manage/message/param.json +152 -0
  336. package/demo/app/sys/plugin/server/api_sys_manage/message/sql.json +21 -0
  337. package/demo/app/sys/plugin/server/api_sys_manage/nav/api.json +19 -0
  338. package/demo/app/sys/plugin/server/api_sys_manage/nav/index.js +27 -0
  339. package/demo/app/sys/plugin/server/api_sys_manage/nav/param.json +295 -0
  340. package/demo/app/sys/plugin/server/api_sys_manage/nav/sql.json +61 -0
  341. package/demo/app/sys/plugin/server/api_sys_manage/pay/api.json +18 -0
  342. package/demo/app/sys/plugin/server/api_sys_manage/pay/param.json +391 -0
  343. package/demo/app/sys/plugin/server/api_sys_manage/pay/sql.json +75 -0
  344. package/demo/app/sys/plugin/server/api_sys_manage/pay_type/api.json +18 -0
  345. package/demo/app/sys/plugin/server/api_sys_manage/pay_type/param.json +242 -0
  346. package/demo/app/sys/plugin/server/api_sys_manage/pay_type/sql.json +73 -0
  347. package/demo/app/sys/plugin/server/api_sys_manage/project/api.json +18 -0
  348. package/demo/app/sys/plugin/server/api_sys_manage/project/param.json +796 -0
  349. package/demo/app/sys/plugin/server/api_sys_manage/project/sql.json +162 -0
  350. package/demo/app/sys/plugin/server/api_sys_manage/recharge/api.json +18 -0
  351. package/demo/app/sys/plugin/server/api_sys_manage/recharge/param.json +311 -0
  352. package/demo/app/sys/plugin/server/api_sys_manage/recharge/sql.json +101 -0
  353. package/demo/app/sys/plugin/server/api_sys_manage/scene/api.json +18 -0
  354. package/demo/app/sys/plugin/server/api_sys_manage/scene/param.json +226 -0
  355. package/demo/app/sys/plugin/server/api_sys_manage/scene/sql.json +48 -0
  356. package/demo/app/sys/plugin/server/api_sys_manage/seo/api.json +19 -0
  357. package/demo/app/sys/plugin/server/api_sys_manage/seo/index.js +26 -0
  358. package/demo/app/sys/plugin/server/api_sys_manage/seo/param.json +145 -0
  359. package/demo/app/sys/plugin/server/api_sys_manage/seo/sql.json +48 -0
  360. package/demo/app/sys/plugin/server/api_sys_manage/withdrawal/api.json +18 -0
  361. package/demo/app/sys/plugin/server/api_sys_manage/withdrawal/param.json +378 -0
  362. package/demo/app/sys/plugin/server/api_sys_manage/withdrawal/sql.json +91 -0
  363. package/demo/app/sys/plugin/server/db/ad.db.json +622 -0
  364. package/demo/app/sys/plugin/server/db/address_province.db.json +82 -0
  365. package/demo/app/sys/plugin/server/db/app.db.json +369 -0
  366. package/demo/app/sys/plugin/server/db/app_refresh.db.json +117 -0
  367. package/demo/app/sys/plugin/server/db/block.db.json +352 -0
  368. package/demo/app/sys/plugin/server/db/config.db.json +226 -0
  369. package/demo/app/sys/plugin/server/db/file.db.json +172 -0
  370. package/demo/app/sys/plugin/server/db/lang.db.json +208 -0
  371. package/demo/app/sys/plugin/server/db/message.db.json +99 -0
  372. package/demo/app/sys/plugin/server/db/nav.db.json +298 -0
  373. package/demo/app/sys/plugin/server/db/pay.db.json +316 -0
  374. package/demo/app/sys/plugin/server/db/pay_type.db.json +226 -0
  375. package/demo/app/sys/plugin/server/db/project.db.json +622 -0
  376. package/demo/app/sys/plugin/server/db/recharge.db.json +226 -0
  377. package/demo/app/sys/plugin/server/db/scene.db.json +208 -0
  378. package/demo/app/sys/plugin/server/db/seo.db.json +136 -0
  379. package/demo/app/sys/plugin/server/db/withdrawal.db.json +298 -0
  380. package/demo/app/sys/plugin/user/index.js +127 -0
  381. package/demo/app/sys/plugin/user/plugin.json +20 -0
  382. package/demo/app/sys/plugin/user/static/img/logo.png +0 -0
  383. package/demo/app/sys/plugin/user/static/static.js +28 -0
  384. package/demo/app/sys/plugin/user/static/static.json +20 -0
  385. package/demo/app/sys/static/img/avatar_1674484608066.png +0 -0
  386. package/demo/app/sys/static/img/avatar_1674633778171.jpeg +0 -0
  387. package/demo/app/sys/static/img/avatar_1674962702334.jpeg +0 -0
  388. package/demo/app/sys/static/img/avatar_1675075431736.jpeg +0 -0
  389. package/demo/app/sys/static/img/avatar_1675497065533.jpeg +0 -0
  390. package/demo/app/sys/static/img/avatar_1685352550990.jpeg +0 -0
  391. package/demo/app/sys/static/img/avatar_1685353685992.jpeg +0 -0
  392. package/demo/app/sys/static/img/avatar_1685353956587.jpeg +0 -0
  393. package/demo/app/sys/static/img/avatar_1685353971148.jpeg +0 -0
  394. package/demo/app/sys/static/img/avatar_1685353983723.jpeg +0 -0
  395. package/demo/app/sys/static/img/avatar_1685354014745.jpeg +0 -0
  396. package/demo/app/sys/static/img/avatar_1685354122355.jpeg +0 -0
  397. package/demo/app/sys/static/img/avatar_1685357983520.jpeg +0 -0
  398. package/demo/app/sys/static/img/avatar_1685358453383.jpeg +0 -0
  399. package/demo/app/sys/static/img/avatar_1685416570438.jpeg +0 -0
  400. package/demo/app/sys/static/img/avatar_1685512675830.png +0 -0
  401. package/demo/app/sys/static/img/avatar_1685939425608.jpeg +0 -0
  402. package/demo/app/sys/static/img/avatar_1685939886560.jpeg +0 -0
  403. package/demo/app/sys/static/img/avatar_1686106313194.png +0 -0
  404. package/demo/app/sys/static/img/avatar_1686371876175.png +0 -0
  405. package/demo/app/sys/static/img/avatar_1686372033596.png +0 -0
  406. package/demo/app/sys/static/img/avatar_1688215220669.png +0 -0
  407. package/demo/app/sys/static/img/avatar_1688531184690.png +0 -0
  408. package/demo/app/sys/static/img/avatar_1688531233080.png +0 -0
  409. package/demo/app/sys/static/img/avatar_1688548526909.png +0 -0
  410. package/demo/app/sys/static/img/avatar_1688549213411.png +0 -0
  411. package/demo/app/sys/static/img/avatar_1688549511977.png +0 -0
  412. package/demo/app/sys/static/img/avatar_1688549685464.png +0 -0
  413. package/demo/app/sys/static/img/avatar_1688608623049.png +0 -0
  414. package/demo/app/sys/static/img/avatar_1688638500476.png +0 -0
  415. package/demo/app/sys/static/img/avatar_1688638515195.png +0 -0
  416. package/demo/app/sys/static/img/avatar_1688638539928.png +0 -0
  417. package/demo/app/sys/static/img/avatar_1688638557960.png +0 -0
  418. package/demo/app/sys/static/img/avatar_1688638761798.png +0 -0
  419. package/demo/app/sys/static/img/avatar_1688638943140.png +0 -0
  420. package/demo/app/sys/static/img/avatar_1688639068330.png +0 -0
  421. package/demo/app/sys/static/img/image_1685357101273.jpeg +0 -0
  422. package/demo/app/sys/static/img/logo.png +0 -0
  423. package/demo/app/sys/static/static.js +28 -0
  424. package/demo/app/sys/static/static.json +20 -0
  425. package/demo/app/user/LICENSE +201 -0
  426. package/demo/app/user/app.js +144 -0
  427. package/demo/app/user/app.json +10 -0
  428. package/demo/app/user/event_api/client/event.json +10 -0
  429. package/demo/app/user/event_api/client/main.js +17 -0
  430. package/demo/app/user/event_api/manage/event.json +10 -0
  431. package/demo/app/user/event_api/manage/main.js +17 -0
  432. package/demo/app/user/event_api/web/event.json +20 -0
  433. package/demo/app/user/event_api/web/main.js +39 -0
  434. package/demo/app/user/plugin/main/api_user_client/account/api.json +41 -0
  435. package/demo/app/user/plugin/main/api_user_client/account/index.js +54 -0
  436. package/demo/app/user/plugin/main/api_user_client/account/param.json +130 -0
  437. package/demo/app/user/plugin/main/api_user_client/account/sql.json +70 -0
  438. package/demo/app/user/plugin/main/api_user_client/address_login/api.json +27 -0
  439. package/demo/app/user/plugin/main/api_user_client/address_login/index.js +35 -0
  440. package/demo/app/user/plugin/main/api_user_client/address_login/param.json +130 -0
  441. package/demo/app/user/plugin/main/api_user_client/base/api.json +27 -0
  442. package/demo/app/user/plugin/main/api_user_client/base/index.js +92 -0
  443. package/demo/app/user/plugin/main/api_user_client/base/param.json +130 -0
  444. package/demo/app/user/plugin/main/api_user_client/core/api.json +20 -0
  445. package/demo/app/user/plugin/main/api_user_client/core/forgot.js +14 -0
  446. package/demo/app/user/plugin/main/api_user_client/core/password.js +14 -0
  447. package/demo/app/user/plugin/main/api_user_client/core/sign_out.js +26 -0
  448. package/demo/app/user/plugin/main/api_user_client/core/state.js +21 -0
  449. package/demo/app/user/plugin/main/api_user_client/count/api.json +27 -0
  450. package/demo/app/user/plugin/main/api_user_client/count/chongzhi.js +103 -0
  451. package/demo/app/user/plugin/main/api_user_client/count/index.js +24 -0
  452. package/demo/app/user/plugin/main/api_user_client/count/param.json +40 -0
  453. package/demo/app/user/plugin/main/api_user_client/count/sql.json +70 -0
  454. package/demo/app/user/plugin/main/api_user_client/data_count/api.json +37 -0
  455. package/demo/app/user/plugin/main/api_user_client/data_count/index.js +61 -0
  456. package/demo/app/user/plugin/main/api_user_client/email_code/api.json +37 -0
  457. package/demo/app/user/plugin/main/api_user_client/email_code/email_code.js +300 -0
  458. package/demo/app/user/plugin/main/api_user_client/email_code/index.js +18 -0
  459. package/demo/app/user/plugin/main/api_user_client/email_code/param.json +56 -0
  460. package/demo/app/user/plugin/main/api_user_client/forgot/api.json +37 -0
  461. package/demo/app/user/plugin/main/api_user_client/forgot/index - /345/211/257/346/234/254.jsbat" +41 -0
  462. package/demo/app/user/plugin/main/api_user_client/forgot/index.js +36 -0
  463. package/demo/app/user/plugin/main/api_user_client/forgot/param.json +57 -0
  464. package/demo/app/user/plugin/main/api_user_client/ip/api.json +39 -0
  465. package/demo/app/user/plugin/main/api_user_client/ip/index.js +43 -0
  466. package/demo/app/user/plugin/main/api_user_client/ip/param.json +130 -0
  467. package/demo/app/user/plugin/main/api_user_client/ip/sql.json +70 -0
  468. package/demo/app/user/plugin/main/api_user_client/message/api.json +29 -0
  469. package/demo/app/user/plugin/main/api_user_client/message/index.js +19 -0
  470. package/demo/app/user/plugin/main/api_user_client/message/param.json +36 -0
  471. package/demo/app/user/plugin/main/api_user_client/message/sql.json +21 -0
  472. package/demo/app/user/plugin/main/api_user_client/oauth/WXBizDataCrypt.js +33 -0
  473. package/demo/app/user/plugin/main/api_user_client/oauth/api.json +31 -0
  474. package/demo/app/user/plugin/main/api_user_client/oauth/index.js +16 -0
  475. package/demo/app/user/plugin/main/api_user_client/oauth/oauth.js +315 -0
  476. package/demo/app/user/plugin/main/api_user_client/oauth/oauth.json +88 -0
  477. package/demo/app/user/plugin/main/api_user_client/oauth/param.json +111 -0
  478. package/demo/app/user/plugin/main/api_user_client/password/api.json +21 -0
  479. package/demo/app/user/plugin/main/api_user_client/password/index.js +64 -0
  480. package/demo/app/user/plugin/main/api_user_client/password/param.json +45 -0
  481. package/demo/app/user/plugin/main/api_user_client/phone_code/aliyun.js +230 -0
  482. package/demo/app/user/plugin/main/api_user_client/phone_code/api.json +37 -0
  483. package/demo/app/user/plugin/main/api_user_client/phone_code/index.js +18 -0
  484. package/demo/app/user/plugin/main/api_user_client/phone_code/index.js_ +230 -0
  485. package/demo/app/user/plugin/main/api_user_client/phone_code/param.json +58 -0
  486. package/demo/app/user/plugin/main/api_user_client/phone_code/phone_code.js +297 -0
  487. package/demo/app/user/plugin/main/api_user_client/realname/api.json +21 -0
  488. package/demo/app/user/plugin/main/api_user_client/realname/index.js +45 -0
  489. package/demo/app/user/plugin/main/api_user_client/realname/param.json +74 -0
  490. package/demo/app/user/plugin/main/api_user_client/servicer/api.json +29 -0
  491. package/demo/app/user/plugin/main/api_user_client/servicer/index.js +19 -0
  492. package/demo/app/user/plugin/main/api_user_client/servicer/param.json +41 -0
  493. package/demo/app/user/plugin/main/api_user_client/servicer/sql.json +113 -0
  494. package/demo/app/user/plugin/main/api_user_client/set_address/api.json +37 -0
  495. package/demo/app/user/plugin/main/api_user_client/set_address/index.js +98 -0
  496. package/demo/app/user/plugin/main/api_user_client/set_address/param.json +165 -0
  497. package/demo/app/user/plugin/main/api_user_client/set_avatar/api.json +35 -0
  498. package/demo/app/user/plugin/main/api_user_client/set_avatar/index.js +77 -0
  499. package/demo/app/user/plugin/main/api_user_client/set_info/api.json +35 -0
  500. package/demo/app/user/plugin/main/api_user_client/set_info/index.js +44 -0
  501. package/demo/app/user/plugin/main/api_user_client/set_nickname/api.json +35 -0
  502. package/demo/app/user/plugin/main/api_user_client/set_nickname/index.js +46 -0
  503. package/demo/app/user/plugin/main/api_user_client/set_pay_password/api.json +21 -0
  504. package/demo/app/user/plugin/main/api_user_client/set_pay_password/index.js +64 -0
  505. package/demo/app/user/plugin/main/api_user_client/sign_address/api.json +39 -0
  506. package/demo/app/user/plugin/main/api_user_client/sign_address/index.js +114 -0
  507. package/demo/app/user/plugin/main/api_user_client/sign_address/param.json +130 -0
  508. package/demo/app/user/plugin/main/api_user_client/sign_address/sql.json +70 -0
  509. package/demo/app/user/plugin/main/api_user_client/sign_auto/api.json +29 -0
  510. package/demo/app/user/plugin/main/api_user_client/sign_auto/index.js +141 -0
  511. package/demo/app/user/plugin/main/api_user_client/sign_auto/param.json +42 -0
  512. package/demo/app/user/plugin/main/api_user_client/sign_in/api.json +11 -0
  513. package/demo/app/user/plugin/main/api_user_client/sign_in/index.js +274 -0
  514. package/demo/app/user/plugin/main/api_user_client/sign_in/param.json +125 -0
  515. package/demo/app/user/plugin/main/api_user_client/sign_in/state.js +37 -0
  516. package/demo/app/user/plugin/main/api_user_client/sign_out/api.json +9 -0
  517. package/demo/app/user/plugin/main/api_user_client/sign_out/index.js +28 -0
  518. package/demo/app/user/plugin/main/api_user_client/sign_up/api.json +12 -0
  519. package/demo/app/user/plugin/main/api_user_client/sign_up/index.js +189 -0
  520. package/demo/app/user/plugin/main/api_user_client/sign_up/param.json +83 -0
  521. package/demo/app/user/plugin/main/api_user_client/sign_up_in/api.json +37 -0
  522. package/demo/app/user/plugin/main/api_user_client/sign_up_in/index.js +137 -0
  523. package/demo/app/user/plugin/main/api_user_client/sign_up_in/param.json +33 -0
  524. package/demo/app/user/plugin/main/api_user_client/state/api.json +9 -0
  525. package/demo/app/user/plugin/main/api_user_client/state/index.js +19 -0
  526. package/demo/app/user/plugin/main/api_user_client/token/api.json +25 -0
  527. package/demo/app/user/plugin/main/api_user_client/token/index.js +20 -0
  528. package/demo/app/user/plugin/main/api_user_client/token/param.json +16 -0
  529. package/demo/app/user/plugin/main/api_user_client/unsubscribe/api.json +29 -0
  530. package/demo/app/user/plugin/main/api_user_client/unsubscribe/index.js +91 -0
  531. package/demo/app/user/plugin/main/api_user_client/unsubscribe/param.json +71 -0
  532. package/demo/app/user/plugin/main/api_user_client/yun_avatar/api.json +31 -0
  533. package/demo/app/user/plugin/main/api_user_client/yun_avatar/index.js +56 -0
  534. package/demo/app/user/plugin/main/api_user_client/yun_avatar/param.json +50 -0
  535. package/demo/app/user/plugin/main/api_user_manage/account_base/api.json +37 -0
  536. package/demo/app/user/plugin/main/api_user_manage/account_base/index.js +40 -0
  537. package/demo/app/user/plugin/main/api_user_manage/account_base/param.json +130 -0
  538. package/demo/app/user/plugin/main/api_user_manage/invitation_code/api.json +37 -0
  539. package/demo/app/user/plugin/main/api_user_manage/invitation_code/index.js +106 -0
  540. package/demo/app/user/plugin/main/api_user_manage/invitation_code/param.json +130 -0
  541. package/demo/app/user/plugin/main/api_user_manage/update_team/api.json +35 -0
  542. package/demo/app/user/plugin/main/api_user_manage/update_team/index.js +218 -0
  543. package/demo/app/user/plugin/main/api_user_manage/update_team/param.json +130 -0
  544. package/demo/app/user/plugin/main/api_user_web/avatar/api.json +28 -0
  545. package/demo/app/user/plugin/main/api_user_web/avatar/index.js +51 -0
  546. package/demo/app/user/plugin/main/api_user_web/login/api.json +37 -0
  547. package/demo/app/user/plugin/main/api_user_web/login/index.js +12 -0
  548. package/demo/app/user/plugin/main/api_user_web/root/api.json +38 -0
  549. package/demo/app/user/plugin/main/api_user_web/root/index.js +67 -0
  550. package/demo/app/user/plugin/main/index.js +144 -0
  551. package/demo/app/user/plugin/main/plugin.json +20 -0
  552. package/demo/app/user/plugin/server/api_user_client/address/api.json +16 -0
  553. package/demo/app/user/plugin/server/api_user_client/address/index.js +79 -0
  554. package/demo/app/user/plugin/server/api_user_client/address/param.json +288 -0
  555. package/demo/app/user/plugin/server/api_user_client/address/sql.json +56 -0
  556. package/demo/app/user/plugin/server/api_user_client/count/api.json +12 -0
  557. package/demo/app/user/plugin/server/api_user_client/count/param.json +646 -0
  558. package/demo/app/user/plugin/server/api_user_client/count/sql.json +82 -0
  559. package/demo/app/user/plugin/server/api_user_client/info/api.json +16 -0
  560. package/demo/app/user/plugin/server/api_user_client/info/index.js +42 -0
  561. package/demo/app/user/plugin/server/api_user_client/info/param.json +531 -0
  562. package/demo/app/user/plugin/server/api_user_client/info/sql.json +84 -0
  563. package/demo/app/user/plugin/server/api_user_client/message/api.json +12 -0
  564. package/demo/app/user/plugin/server/api_user_client/message/param.json +366 -0
  565. package/demo/app/user/plugin/server/api_user_client/message/sql.json +88 -0
  566. package/demo/app/user/plugin/server/api_user_client/nation/api.json +12 -0
  567. package/demo/app/user/plugin/server/api_user_client/nation/param.json +74 -0
  568. package/demo/app/user/plugin/server/api_user_client/nation/sql.json +18 -0
  569. package/demo/app/user/plugin/server/api_user_manage/account/api.json +18 -0
  570. package/demo/app/user/plugin/server/api_user_manage/account/param.json +620 -0
  571. package/demo/app/user/plugin/server/api_user_manage/account/sql.json +105 -0
  572. package/demo/app/user/plugin/server/api_user_manage/address/api.json +19 -0
  573. package/demo/app/user/plugin/server/api_user_manage/address/index.js +57 -0
  574. package/demo/app/user/plugin/server/api_user_manage/address/param.json +288 -0
  575. package/demo/app/user/plugin/server/api_user_manage/address/sql.json +44 -0
  576. package/demo/app/user/plugin/server/api_user_manage/admin/api.json +18 -0
  577. package/demo/app/user/plugin/server/api_user_manage/admin/param.json +147 -0
  578. package/demo/app/user/plugin/server/api_user_manage/admin/sql.json +24 -0
  579. package/demo/app/user/plugin/server/api_user_manage/admin_log/api.json +18 -0
  580. package/demo/app/user/plugin/server/api_user_manage/admin_log/param.json +226 -0
  581. package/demo/app/user/plugin/server/api_user_manage/admin_log/sql.json +32 -0
  582. package/demo/app/user/plugin/server/api_user_manage/count/api.json +18 -0
  583. package/demo/app/user/plugin/server/api_user_manage/count/param.json +646 -0
  584. package/demo/app/user/plugin/server/api_user_manage/count/sql.json +72 -0
  585. package/demo/app/user/plugin/server/api_user_manage/group/api.json +18 -0
  586. package/demo/app/user/plugin/server/api_user_manage/group/param.json +187 -0
  587. package/demo/app/user/plugin/server/api_user_manage/group/sql.json +39 -0
  588. package/demo/app/user/plugin/server/api_user_manage/group_log/api.json +18 -0
  589. package/demo/app/user/plugin/server/api_user_manage/group_log/param.json +235 -0
  590. package/demo/app/user/plugin/server/api_user_manage/group_log/sql.json +32 -0
  591. package/demo/app/user/plugin/server/api_user_manage/info/api.json +18 -0
  592. package/demo/app/user/plugin/server/api_user_manage/info/param.json +531 -0
  593. package/demo/app/user/plugin/server/api_user_manage/info/sql.json +71 -0
  594. package/demo/app/user/plugin/server/api_user_manage/message/api.json +18 -0
  595. package/demo/app/user/plugin/server/api_user_manage/message/param.json +366 -0
  596. package/demo/app/user/plugin/server/api_user_manage/message/sql.json +75 -0
  597. package/demo/app/user/plugin/server/api_user_manage/nation/api.json +18 -0
  598. package/demo/app/user/plugin/server/api_user_manage/nation/param.json +74 -0
  599. package/demo/app/user/plugin/server/api_user_manage/nation/sql.json +16 -0
  600. package/demo/app/user/plugin/server/api_user_manage/state/api.json +18 -0
  601. package/demo/app/user/plugin/server/api_user_manage/state/param.json +98 -0
  602. package/demo/app/user/plugin/server/api_user_manage/state/sql.json +29 -0
  603. package/demo/app/user/plugin/server/db/account.db.json +460 -0
  604. package/demo/app/user/plugin/server/db/address.db.json +262 -0
  605. package/demo/app/user/plugin/server/db/admin.db.json +117 -0
  606. package/demo/app/user/plugin/server/db/admin_log.db.json +189 -0
  607. package/demo/app/user/plugin/server/db/count.db.json +298 -0
  608. package/demo/app/user/plugin/server/db/group.db.json +117 -0
  609. package/demo/app/user/plugin/server/db/group_log.db.json +190 -0
  610. package/demo/app/user/plugin/server/db/info.db.json +496 -0
  611. package/demo/app/user/plugin/server/db/message.db.json +262 -0
  612. package/demo/app/user/plugin/server/db/nation.db.json +46 -0
  613. package/demo/app/user/plugin/server/db/state.db.json +64 -0
  614. package/demo/app/user/static/img/logo.png +0 -0
  615. package/demo/app/user/static/static.js +28 -0
  616. package/demo/app/user/static/static.json +20 -0
  617. package/demo/app/ws/app.js +122 -0
  618. package/demo/app/ws/app.json +11 -0
  619. package/demo/app/ws/event_api/client/event.json +10 -0
  620. package/demo/app/ws/event_api/client/main.js +17 -0
  621. package/demo/app/ws/socket/ws/index.js +43 -0
  622. package/demo/app/ws/socket/ws/socket.json +14 -0
  623. package/demo/config/development.json +109 -0
  624. package/demo/config/face.sql +3824 -0
  625. package/demo/config/local.json +111 -0
  626. package/demo/config/lock.cache +5 -0
  627. package/demo/config/test.json +109 -0
  628. package/demo/config/tpl.json +107 -0
  629. package/demo/index.js +30 -0
  630. package/demo/static/file/image/1.png +0 -0
  631. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -31,7 +31,7 @@ class MQTT extends Index {
31
31
  port: "1883",
32
32
  protocol: "mqtt",
33
33
  clientId: "iot_test",
34
- subscribe_qos: 0,
34
+ subscribe_qos: 1,
35
35
  publish_qos: 1,
36
36
  username: "iot_test",
37
37
  password: "asd123",
@@ -125,7 +125,7 @@ MQTT.prototype.match = function(topic, top) {
125
125
  /**
126
126
  * 初始化
127
127
  */
128
- MQTT.prototype.update_after = function() {
128
+ MQTT.prototype.update_after = async function() {
129
129
  var _this = this;
130
130
  var list = this.list;
131
131
  for (var i = 0, o; o = list[i++];) {
@@ -135,7 +135,7 @@ MQTT.prototype.update_after = function() {
135
135
  _this.send(topic, msg, qos, retain);
136
136
  }
137
137
  };
138
- o.exec('init');
138
+ await o.exec('init');
139
139
  var topics = o.config.topic;
140
140
  if (topics) {
141
141
  for (var i = 0; i < topics.length; i++) {
@@ -275,7 +275,7 @@ MQTT.prototype.receive = async function(push_topic, msg) {
275
275
  for (var i = 0; i < topics.length; i++) {
276
276
  var topic = topics[i];
277
277
  if (this.match(push_topic, topic)) {
278
- ret = await o.run(push_topic, msg, topic, i);
278
+ ret = await o.exec('handle', push_topic, msg, topic, i);
279
279
  }
280
280
  }
281
281
  }
@@ -42,7 +42,10 @@ class Drive extends Item {
42
42
  constructor(dir) {
43
43
  super(dir, __dirname);
44
44
  this.default_file = "./task.json";
45
-
45
+
46
+ // 更新配置并重载脚本
47
+ this.mode = 3;
48
+
46
49
  /// 配置参数
47
50
  this.config = {
48
51
  // 名称, 由中英文和下“_”组成, 用于修改或卸载 例如: demo
@@ -299,7 +302,9 @@ Drive.prototype.run = async function(func) {
299
302
  if (func) {
300
303
  await this.setInterval(this.setPeriod(this.setNum(func)));
301
304
  } else {
302
- await this.setInterval(this.setPeriod(this.setNum(this.main)));
305
+ await this.setInterval(this.setPeriod(this.setNum(() => {
306
+ this.main();
307
+ })));
303
308
  }
304
309
  return this;
305
310
  };
@@ -18,6 +18,8 @@ class Task extends Index {
18
18
  this.Drive = Drive;
19
19
  this.type = "task";
20
20
  this.title = title;
21
+ // 更新配置并重载脚本
22
+ this.mode = 3;
21
23
  }
22
24
  }
23
25
 
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1 @@
1
+ ## 开发者工具
@@ -0,0 +1,147 @@
1
+ /**
2
+ * @fileOverview dev
3
+ * @author <a href="作者主页地址">插件作者</a>
4
+ * @version 1.0
5
+ */
6
+
7
+ /**
8
+ * @description 插件对象
9
+ */
10
+ module.exports = {
11
+ /**
12
+ * @description 初始化
13
+ * @param {Object} option 配置参数
14
+ * @return {String} 成功返回null, 否则返回错误提示
15
+ */
16
+ init(option) {
17
+ // 创建数据库管理器
18
+ var db = $.db_admin('sys');
19
+ db.update(__dirname);
20
+ var msg = null;
21
+ return msg;
22
+ },
23
+
24
+ /**
25
+ * @description 安装
26
+ * @param {Object} option 配置参数
27
+ * @return {String} 成功返回null,否则返回错误提示
28
+ */
29
+ install(option) {
30
+ var msg = null;
31
+ return msg;
32
+ },
33
+
34
+ /**
35
+ * @description 卸载
36
+ * @param {Object} option 配置参数
37
+ * @return {String} 成功返回null,否则返回错误提示
38
+ */
39
+ uninstall(option) {
40
+ var msg = null;
41
+ return msg;
42
+ },
43
+
44
+ /**
45
+ * @description 更新
46
+ * @param {Object} option 配置参数
47
+ * @return {String} 成功返回null, 否则返回错误提示
48
+ */
49
+ update(option) {
50
+ var msg = null;
51
+ return msg;
52
+ },
53
+
54
+ /**
55
+ * @description 启动
56
+ * @param {Object} opiton 配置参数
57
+ * @return {String} 成功返回null,否则返回错误提示
58
+ */
59
+ start(option) {
60
+ var msg = null;
61
+ return msg;
62
+ },
63
+
64
+ /**
65
+ * @description 暂停
66
+ * @param {Object} opiton 配置参数
67
+ * @return {String} 成功返回null,否则返回错误提示
68
+ */
69
+ stop(option) {
70
+ var msg = null;
71
+ return msg;
72
+ },
73
+
74
+ /**
75
+ * @description 结束
76
+ * @param {Object} opiton 配置参数
77
+ * @return {String} 成功返回null,否则返回错误提示
78
+ */
79
+ end(option) {
80
+ var msg = null;
81
+ return msg;
82
+ },
83
+
84
+ /**
85
+ * @description 插件
86
+ * @param {String} item 插件项
87
+ * @return {Object} 旗下插件和信息
88
+ */
89
+ help(item) {
90
+ var tip = "";
91
+ switch (item) {
92
+ case "run":
93
+ break;
94
+ default:
95
+ break;
96
+ }
97
+ return tip;
98
+ },
99
+
100
+ /**
101
+ * @description 主程序
102
+ * @param {Object} param1 参数1
103
+ * @param {Object} param2 参数2
104
+ * @return {Object} 返回执行结果
105
+ */
106
+ main(param1, param2) {
107
+ var ret = null;
108
+ return ret;
109
+ },
110
+
111
+ /**
112
+ * @description 指令(类似命令提示符)
113
+ * @param {String} content 指令内容
114
+ * @return {String} 执行结果
115
+ */
116
+ cmd(content) {
117
+ var ret = "";
118
+ return ret;
119
+ },
120
+
121
+ /**
122
+ * @description API接口(用于其他插件调用该插件时)
123
+ * @param {Object} ctx HTTP上下文
124
+ * @param {Object} db 数据库管理器
125
+ * @return {Object} 执行结果
126
+ */
127
+ api(ctx, db) {
128
+ var ret = "";
129
+ return ret;
130
+ },
131
+
132
+ /**
133
+ * @description 聊天(通过聊天的方式驱动插件, 用于机器人开发)
134
+ * @param {String} from_user 发送消息人
135
+ * @param {String} to_user 接收消息人
136
+ * @param {String} content 内容
137
+ * @param {String} group 群组 如果是个人,群组为空
138
+ * @param {Number} type 群类型, 1永久会话/群、2临时会话/群
139
+ * @param {String} msg_type 消息类型, event事件型、message消息型。默认消息型
140
+ * @param {Object} 数据管理器
141
+ * @return {String} 回复内容
142
+ */
143
+ async chat(from_user, to_user, group, content, type, msg_type, db) {
144
+ var ret = "";
145
+ return ret;
146
+ }
147
+ };
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "dev",
3
+ "title": "开发工具",
4
+ "description": "该应用便于开发和管理自由人服务端,可管理“应用、插件、事件、接口、任务、数据库”等",
5
+ "version": "1.0",
6
+ "identifier": "dev",
7
+ "lang_path": "./lang/",
8
+ "icon": "/dev/img/logo.png",
9
+ "script": "./app.js",
10
+ "sort": 10,
11
+ "state": 1
12
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "target": "/api/dev*",
3
+ "name": "dev_client",
4
+ "title": "开发者客户端调用的接口事件",
5
+ "description": "用于开发者访问服务端时调用的接口",
6
+ "stage": "main",
7
+ "func_file": "./main.js",
8
+ "sort": 99,
9
+ "end": true
10
+ }
@@ -0,0 +1,17 @@
1
+ var api = $.api_admin('dev_client', '开发者客户端');
2
+ // 首次启动更新api接口;
3
+ api.update('dev/');
4
+
5
+ /**
6
+ * @description 接口主函数
7
+ * @param {Object} ctx HTTP上下文
8
+ * @param {Object} db 数据管理器,如: { next: async function{}, ret: {} }
9
+ * @return {Object} 执行结果
10
+ */
11
+ async function main(ctx, db) {
12
+ // 在这定义要访问的数据库 (分布式开发时设置不同的数据库名)
13
+ $.push(db, $.sql.db(), true);
14
+ return api.run(ctx, db);
15
+ };
16
+
17
+ exports.main = main;
@@ -0,0 +1,19 @@
1
+ [{
2
+ // 目标对象
3
+ "target": "/apis/dev*",
4
+ // 事件名称, 用于动态增删改
5
+ "name": "dev_manage",
6
+ // 标题, 用于开发者查看事件
7
+ "title": "示例事件",
8
+ // 描述, 用于介绍该事件是做什么用的
9
+ "description": "描述事件使用方法",
10
+ // 阶段, 分执行前before、验证check、主要main、渲染render、执行后after阶段
11
+ "stage": "main",
12
+ "state": 1,
13
+ // 响应方法 GET请求、POST请求、ALL所有请求,如果非API事件可自定义
14
+ "method": "ALL",
15
+ // 函数文件, 当事件触发时执行指定的脚本
16
+ "func_file": "./main.js",
17
+ // 执行顺序, 数值越小越优先执行
18
+ "sort": 100
19
+ }]
@@ -0,0 +1,26 @@
1
+ // 使用api管理器
2
+ var api = $.api_admin('dev_manage', 'dev_manage');
3
+ // 首次启动更新api接口;
4
+ api.update();
5
+
6
+ // 使用mysql数据库管理器
7
+ var sql = $.mysql_admin('sys', __dirname);
8
+ // sql.setConfig($.config.mysql);
9
+ // sql.open();
10
+
11
+ /**
12
+ * @description 接口主函数
13
+ * @param {Object} ctx HTTP上下文
14
+ * @param {Object} db 数据管理器,如: { next: async function{}, ret: {} }
15
+ * @return {Object} 执行结果
16
+ */
17
+ async function main(ctx, db) {
18
+ // 使用模板引擎
19
+ db.tpl = new $.Tpl();
20
+
21
+ // 在这定义要访问的数据库 (分布式开发时设置不同的数据库名)
22
+ $.push(db, sql.db(), true);
23
+ return api.run(ctx, db);
24
+ };
25
+
26
+ exports.main = main;
@@ -0,0 +1,144 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta http-equiv="x-dns-prefetch-control" content="on">
8
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
9
+ <meta name="format-detection" content="telephone=no">
10
+ <meta name="apple-mobile-web-app-capable" content="yes">
11
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
12
+ <meta name="description" content="这是web API文档">
13
+ <meta name="keywords" content="开发文档">
14
+ <meta name="author" content="邱文武">
15
+
16
+ <!-- 加载CSS样式 -->
17
+ <link rel="stylesheet" href="/css/font-awesome.min.css" async />
18
+ <link rel="stylesheet" href="/css/mm_base.css" async />
19
+ <link rel="stylesheet" href="/css/mm_layout.css" async />
20
+ <link rel="stylesheet" href="/css/mm_common.css" async />
21
+ <link rel="stylesheet" href="/css/mm_component.css" async />
22
+ <link rel="stylesheet" href="/css/mm_theme.css" async />
23
+
24
+ <!-- 加载JS脚本 -->
25
+ <script src="/js/jquery.min.js"></script>
26
+ <script src="/js/clipboard.min.js" async></script>
27
+ <script src="/js/vue.js"></script>
28
+ <script src="/js/mm_sdk.js"></script>
29
+
30
+ <title>接口列表</title>
31
+ <style>
32
+ body {
33
+ background: #fff;
34
+ }
35
+
36
+ main {
37
+ padding: 2rem;
38
+ }
39
+
40
+ #app h4 {
41
+ padding-bottom: 0.5rem;
42
+ border-bottom: 1px solid rgba(125, 125, 125, 0.25);
43
+ margin-bottom: 1rem;
44
+ }
45
+
46
+ .scope_list {
47
+ padding-left: 2rem;
48
+ }
49
+
50
+ .desc {
51
+ margin-bottom: 2rem;
52
+ }
53
+
54
+ .mm_btn {
55
+ border: 1px solid var(--color_border);
56
+ }
57
+
58
+ h4 a {
59
+ font-size: 0.875rem;
60
+ padding-top: 0.5rem;
61
+ }
62
+ </style>
63
+ </head>
64
+ <body>
65
+ <div id="app">
66
+ <div class="mm_page">
67
+ <main>
68
+ <div class="mm_warp">
69
+ <h4>API接口文档 —— <span>列表</span> <a class="fr" href="./">选择域</a></h4>
70
+ <p class="desc">所有的API接口都作用在不同的域下,您可以点击以下域,访问该域下的接口列表</p>
71
+ <table class="mm_table table-hover" v-if="list.length">
72
+ <thead>
73
+ <tr>
74
+ <th>#</th>
75
+ <th width="200">名称</th>
76
+ <th width="200">标题</th>
77
+ <th>描述</th>
78
+ <th width="80">操作</th>
79
+ </tr>
80
+ </thead>
81
+ <tbody>
82
+ <tr v-for="(o, k) in list" :key="k">
83
+ <th>{{ k + 1 }}</th>
84
+ <td><a :href="'./api_view.html?scope=' + query.scope + '&name=' + o.name">{{ o.name }}</a></td>
85
+ <td>{{ o.title }}</td>
86
+ <td>{{ o.description }}</td>
87
+ <td><a class="mm_btn btn_info-x" :href="'./api_view.html?scope=' + query.scope + '&name=' + o.name">查看</a></td>
88
+ </tr>
89
+ </tbody>
90
+ </table>
91
+ <div v-else class="desc center">
92
+ 该域下没有定义API接口
93
+ </div>
94
+ </div>
95
+ </main>
96
+ </div>
97
+ </div>
98
+ <script>
99
+ var vue = new Vue({
100
+ el: '#app',
101
+ data() {
102
+ return {
103
+ url: "/api/dev_api?",
104
+ query: {
105
+ scope: "client"
106
+ },
107
+ list: []
108
+ }
109
+ },
110
+ methods: {
111
+ get_list() {
112
+ var _this = this;
113
+ $.http.get(this.url + $.toUrl(this.query), function(json, status) {
114
+ _this.get_list_after(json);
115
+ });
116
+ },
117
+ get_list_after(json) {
118
+ if (json.result) {
119
+ var list = this.list;
120
+ list.clear();
121
+ list.addList(json.result.list);
122
+ }
123
+ }
124
+ },
125
+ created() {
126
+ var arr = location.search.split("&");
127
+ var len = arr.length;
128
+ if (len > 0) {
129
+ for (var i = 0; i < len; i++) {
130
+ var o = arr[i];
131
+ if (o.indexOf('scope') !== -1) {
132
+ var ar = o.split("=");
133
+ if (ar.length > 1) {
134
+ this.query.scope = ar[1];
135
+ }
136
+ };
137
+ }
138
+ }
139
+ this.get_list();
140
+ }
141
+ });
142
+ </script>
143
+ </body>
144
+ </html>