mm_os 2.9.1 → 2.9.2

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 (462) hide show
  1. package/core/com/api/drive.js +9 -89
  2. package/core/com/api/index.js +3 -31
  3. package/core/com/cmd/drive.js +10 -1
  4. package/core/com/cmd/index.js +15 -1
  5. package/core/com/component/drive.js +1 -1
  6. package/core/com/component/index.js +16 -12
  7. package/core/com/db/drive.js +1 -1
  8. package/core/com/db/index.js +15 -17
  9. package/core/com/event/drive.js +3 -1
  10. package/core/com/event/index.js +74 -61
  11. package/core/com/eventer/com.js +2 -2
  12. package/core/com/middleware/com.js +41 -16
  13. package/core/com/mqtt/drive.js +4 -3
  14. package/core/com/mqtt/index.js +8 -6
  15. package/core/com/nav/drive.js +1 -19
  16. package/core/com/nav/index.js +1 -1
  17. package/core/com/param/drive.js +1 -1
  18. package/core/com/param/index.js +1 -27
  19. package/core/com/plugin/drive.js +18 -19
  20. package/core/com/plugin/index.js +16 -21
  21. package/core/com/plugin/script.js +109 -58
  22. package/core/com/rpc/com.json +4 -0
  23. package/core/com/rpc/drive.js +160 -0
  24. package/core/com/rpc/index.js +87 -0
  25. package/core/com/socket/drive.js +0 -1
  26. package/core/com/socket/index.js +5 -15
  27. package/core/com/sql/drive.js +1 -1
  28. package/core/com/sql/index.js +4 -31
  29. package/core/com/static/drive.js +13 -54
  30. package/core/com/static/index.js +14 -6
  31. package/core/com/task/index.js +14 -36
  32. package/core/com/tpl/com.js +2 -2
  33. package/index.js +2 -2
  34. package/package.json +2 -2
  35. package/cache/sys/main/config.json +0 -1
  36. package/cache/user/main/config.json +0 -1
  37. package/demo/app/dev/LICENSE +0 -201
  38. package/demo/app/dev/README.md +0 -1
  39. package/demo/app/dev/app.js +0 -147
  40. package/demo/app/dev/app.json +0 -12
  41. package/demo/app/dev/event_api/client/event.json +0 -10
  42. package/demo/app/dev/event_api/client/main.js +0 -17
  43. package/demo/app/dev/plugin/main/api_dev_client/api/api.json +0 -10
  44. package/demo/app/dev/plugin/main/api_dev_client/api/index.js +0 -54
  45. package/demo/app/dev/plugin/main/api_dev_client/api/param.json +0 -31
  46. package/demo/app/dev/plugin/main/api_dev_client/com.js +0 -348
  47. package/demo/app/dev/plugin/main/api_dev_client/event/api.json +0 -10
  48. package/demo/app/dev/plugin/main/api_dev_client/event/index.js +0 -31
  49. package/demo/app/dev/plugin/main/api_dev_client/event/param.json +0 -31
  50. package/demo/app/sys/.gitmodules +0 -3
  51. package/demo/app/sys/LICENSE +0 -201
  52. package/demo/app/sys/README.md +0 -1
  53. package/demo/app/sys/app.js +0 -148
  54. package/demo/app/sys/app.json +0 -10
  55. package/demo/app/sys/event_api/api/after.js +0 -12
  56. package/demo/app/sys/event_api/api/before.js +0 -78
  57. package/demo/app/sys/event_api/api/check.js +0 -56
  58. package/demo/app/sys/event_api/api/event.json +0 -41
  59. package/demo/app/sys/event_api/api/main.js +0 -17
  60. package/demo/app/sys/event_api/apis/before.js +0 -76
  61. package/demo/app/sys/event_api/apis/event.json +0 -21
  62. package/demo/app/sys/event_api/apis/main.js +0 -17
  63. package/demo/app/sys/event_api/client/event.json +0 -10
  64. package/demo/app/sys/event_api/client/main.js +0 -15
  65. package/demo/app/sys/event_api/manage/event.json +0 -10
  66. package/demo/app/sys/event_api/manage/main.js +0 -15
  67. package/demo/app/sys/event_api/upload/event.json +0 -10
  68. package/demo/app/sys/event_api/upload/main.js +0 -15
  69. package/demo/app/sys/event_api/web/check.js +0 -34
  70. package/demo/app/sys/event_api/web/event.json +0 -39
  71. package/demo/app/sys/event_api/web/main.js +0 -36
  72. package/demo/app/sys/event_api/ws/event.json +0 -10
  73. package/demo/app/sys/event_api/ws/main.js +0 -15
  74. package/demo/app/sys/plugin/main/api_client/activation/api.json +0 -29
  75. package/demo/app/sys/plugin/main/api_client/activation/index.js +0 -185
  76. package/demo/app/sys/plugin/main/api_client/activation/param.json +0 -56
  77. package/demo/app/sys/plugin/main/api_client/app_balance/api.json +0 -18
  78. package/demo/app/sys/plugin/main/api_client/app_balance/index.js +0 -61
  79. package/demo/app/sys/plugin/main/api_client/app_balance/param.json +0 -36
  80. package/demo/app/sys/plugin/main/api_client/app_pay/api.json +0 -23
  81. package/demo/app/sys/plugin/main/api_client/app_pay/index.js +0 -65
  82. package/demo/app/sys/plugin/main/api_client/app_pay/param.json +0 -61
  83. package/demo/app/sys/plugin/main/api_client/app_state/api.json +0 -27
  84. package/demo/app/sys/plugin/main/api_client/app_state/index.js +0 -46
  85. package/demo/app/sys/plugin/main/api_client/app_state/param.json +0 -36
  86. package/demo/app/sys/plugin/main/api_client/component/api.json +0 -27
  87. package/demo/app/sys/plugin/main/api_client/component/index.js +0 -331
  88. package/demo/app/sys/plugin/main/api_client/config/api.json +0 -37
  89. package/demo/app/sys/plugin/main/api_client/config/index.js +0 -36
  90. package/demo/app/sys/plugin/main/api_client/config/param.json +0 -27
  91. package/demo/app/sys/plugin/main/api_client/download/api.json +0 -37
  92. package/demo/app/sys/plugin/main/api_client/download/index.js +0 -60
  93. package/demo/app/sys/plugin/main/api_client/download/param.json +0 -34
  94. package/demo/app/sys/plugin/main/api_client/install/api.json +0 -24
  95. package/demo/app/sys/plugin/main/api_client/install/index.js +0 -216
  96. package/demo/app/sys/plugin/main/api_client/install/param.json +0 -64
  97. package/demo/app/sys/plugin/main/api_client/nav/api.json +0 -15
  98. package/demo/app/sys/plugin/main/api_client/nav/index.js +0 -37
  99. package/demo/app/sys/plugin/main/api_client/nav/param.json +0 -87
  100. package/demo/app/sys/plugin/main/api_client/overview/api.json +0 -24
  101. package/demo/app/sys/plugin/main/api_client/overview/index.js +0 -29
  102. package/demo/app/sys/plugin/main/api_client/overview/param.json +0 -130
  103. package/demo/app/sys/plugin/main/api_client/overview/sql.json +0 -70
  104. package/demo/app/sys/plugin/main/api_client/query/api.json +0 -35
  105. package/demo/app/sys/plugin/main/api_client/query/index.js +0 -48
  106. package/demo/app/sys/plugin/main/api_client/theme/api.json +0 -37
  107. package/demo/app/sys/plugin/main/api_client/theme/index.js +0 -30
  108. package/demo/app/sys/plugin/main/api_client/theme/param.json +0 -31
  109. package/demo/app/sys/plugin/main/api_client/version/api.json +0 -29
  110. package/demo/app/sys/plugin/main/api_client/version/index.js +0 -132
  111. package/demo/app/sys/plugin/main/api_client/version/param.json +0 -130
  112. package/demo/app/sys/plugin/main/api_client/zip/api.json +0 -31
  113. package/demo/app/sys/plugin/main/api_client/zip/index.js +0 -29
  114. package/demo/app/sys/plugin/main/api_client/zip/param.json +0 -48
  115. package/demo/app/sys/plugin/main/api_sys_client/count/api.json +0 -27
  116. package/demo/app/sys/plugin/main/api_sys_client/count/index.js +0 -73
  117. package/demo/app/sys/plugin/main/api_sys_client/lang/api.json +0 -37
  118. package/demo/app/sys/plugin/main/api_sys_client/lang/index.js +0 -28
  119. package/demo/app/sys/plugin/main/api_sys_client/lang/param.json +0 -22
  120. package/demo/app/sys/plugin/main/api_sys_client/log/api.json +0 -29
  121. package/demo/app/sys/plugin/main/api_sys_client/log/index.js +0 -42
  122. package/demo/app/sys/plugin/main/api_sys_client/log/param.json +0 -130
  123. package/demo/app/sys/plugin/main/api_sys_client/options/api.json +0 -30
  124. package/demo/app/sys/plugin/main/api_sys_client/options/index.js +0 -28
  125. package/demo/app/sys/plugin/main/api_sys_client/options/param.json +0 -130
  126. package/demo/app/sys/plugin/main/api_sys_client/query/api.json +0 -35
  127. package/demo/app/sys/plugin/main/api_sys_client/query/index.js +0 -48
  128. package/demo/app/sys/plugin/main/api_sys_client/theme/api.json +0 -37
  129. package/demo/app/sys/plugin/main/api_sys_client/theme/index.js +0 -30
  130. package/demo/app/sys/plugin/main/api_sys_client/theme/param.json +0 -31
  131. package/demo/app/sys/plugin/main/api_sys_web/index/api.json +0 -37
  132. package/demo/app/sys/plugin/main/api_sys_web/index/index.js +0 -26
  133. package/demo/app/sys/plugin/main/api_upload/chunk/api.json +0 -29
  134. package/demo/app/sys/plugin/main/api_upload/chunk/index.js +0 -38
  135. package/demo/app/sys/plugin/main/api_upload/chunk/param.json +0 -27
  136. package/demo/app/sys/plugin/main/api_upload/delete/api.json +0 -29
  137. package/demo/app/sys/plugin/main/api_upload/delete/index.js +0 -38
  138. package/demo/app/sys/plugin/main/api_upload/delete/param.json +0 -27
  139. package/demo/app/sys/plugin/main/api_upload/file/api.json +0 -15
  140. package/demo/app/sys/plugin/main/api_upload/file/index.js +0 -114
  141. package/demo/app/sys/plugin/main/api_upload/file/param.json +0 -9
  142. package/demo/app/sys/plugin/main/api_upload/image/api.json +0 -16
  143. package/demo/app/sys/plugin/main/api_upload/image/index.js +0 -45
  144. package/demo/app/sys/plugin/main/api_upload/image/param.json +0 -9
  145. package/demo/app/sys/plugin/main/api_upload/merge/api.json +0 -29
  146. package/demo/app/sys/plugin/main/api_upload/merge/index.js +0 -38
  147. package/demo/app/sys/plugin/main/api_upload/merge/param.json +0 -27
  148. package/demo/app/sys/plugin/main/api_upload/video/api.json +0 -29
  149. package/demo/app/sys/plugin/main/api_upload/video/index.js +0 -48
  150. package/demo/app/sys/plugin/main/api_upload/video/param.json +0 -25
  151. package/demo/app/sys/plugin/main/index.js +0 -127
  152. package/demo/app/sys/plugin/main/plugin.json +0 -19
  153. package/demo/app/sys/plugin/main/static/article_list.vue +0 -488
  154. package/demo/app/sys/plugin/main/static/img/logo.png +0 -0
  155. package/demo/app/sys/plugin/main/static/static.json +0 -18
  156. package/demo/app/sys/plugin/server/api_sys_client/ad/api.json +0 -12
  157. package/demo/app/sys/plugin/server/api_sys_client/ad/param.json +0 -685
  158. package/demo/app/sys/plugin/server/api_sys_client/ad/sql.json +0 -114
  159. package/demo/app/sys/plugin/server/api_sys_client/address_province/api.json +0 -12
  160. package/demo/app/sys/plugin/server/api_sys_client/address_province/param.json +0 -156
  161. package/demo/app/sys/plugin/server/api_sys_client/address_province/sql.json +0 -25
  162. package/demo/app/sys/plugin/server/api_sys_client/app/api.json +0 -12
  163. package/demo/app/sys/plugin/server/api_sys_client/app/param.json +0 -437
  164. package/demo/app/sys/plugin/server/api_sys_client/app/sql.json +0 -71
  165. package/demo/app/sys/plugin/server/api_sys_client/app_refresh/api.json +0 -12
  166. package/demo/app/sys/plugin/server/api_sys_client/app_refresh/param.json +0 -158
  167. package/demo/app/sys/plugin/server/api_sys_client/app_refresh/sql.json +0 -28
  168. package/demo/app/sys/plugin/server/api_sys_client/block/api.json +0 -12
  169. package/demo/app/sys/plugin/server/api_sys_client/block/param.json +0 -318
  170. package/demo/app/sys/plugin/server/api_sys_client/block/sql.json +0 -48
  171. package/demo/app/sys/plugin/server/api_sys_client/config/api.json +0 -12
  172. package/demo/app/sys/plugin/server/api_sys_client/config/param.json +0 -259
  173. package/demo/app/sys/plugin/server/api_sys_client/config/sql.json +0 -93
  174. package/demo/app/sys/plugin/server/api_sys_client/file/api.json +0 -12
  175. package/demo/app/sys/plugin/server/api_sys_client/file/param.json +0 -268
  176. package/demo/app/sys/plugin/server/api_sys_client/file/sql.json +0 -30
  177. package/demo/app/sys/plugin/server/api_sys_client/lang/api.json +0 -12
  178. package/demo/app/sys/plugin/server/api_sys_client/lang/param.json +0 -175
  179. package/demo/app/sys/plugin/server/api_sys_client/lang/sql.json +0 -40
  180. package/demo/app/sys/plugin/server/api_sys_client/message/api.json +0 -13
  181. package/demo/app/sys/plugin/server/api_sys_client/message/index.js +0 -31
  182. package/demo/app/sys/plugin/server/api_sys_client/message/param.json +0 -147
  183. package/demo/app/sys/plugin/server/api_sys_client/message/sql.json +0 -24
  184. package/demo/app/sys/plugin/server/api_sys_client/nav/api.json +0 -13
  185. package/demo/app/sys/plugin/server/api_sys_client/nav/index.js +0 -52
  186. package/demo/app/sys/plugin/server/api_sys_client/nav/param.json +0 -295
  187. package/demo/app/sys/plugin/server/api_sys_client/nav/sql.json +0 -63
  188. package/demo/app/sys/plugin/server/api_sys_client/pay/api.json +0 -12
  189. package/demo/app/sys/plugin/server/api_sys_client/pay/param.json +0 -391
  190. package/demo/app/sys/plugin/server/api_sys_client/pay/sql.json +0 -76
  191. package/demo/app/sys/plugin/server/api_sys_client/pay_type/api.json +0 -12
  192. package/demo/app/sys/plugin/server/api_sys_client/pay_type/param.json +0 -242
  193. package/demo/app/sys/plugin/server/api_sys_client/pay_type/sql.json +0 -74
  194. package/demo/app/sys/plugin/server/api_sys_client/project/api.json +0 -12
  195. package/demo/app/sys/plugin/server/api_sys_client/project/param.json +0 -796
  196. package/demo/app/sys/plugin/server/api_sys_client/project/sql.json +0 -163
  197. package/demo/app/sys/plugin/server/api_sys_client/recharge/api.json +0 -12
  198. package/demo/app/sys/plugin/server/api_sys_client/recharge/param.json +0 -311
  199. package/demo/app/sys/plugin/server/api_sys_client/recharge/sql.json +0 -102
  200. package/demo/app/sys/plugin/server/api_sys_client/scene/api.json +0 -12
  201. package/demo/app/sys/plugin/server/api_sys_client/scene/param.json +0 -226
  202. package/demo/app/sys/plugin/server/api_sys_client/scene/sql.json +0 -49
  203. package/demo/app/sys/plugin/server/api_sys_client/seo/api.json +0 -12
  204. package/demo/app/sys/plugin/server/api_sys_client/seo/param.json +0 -145
  205. package/demo/app/sys/plugin/server/api_sys_client/seo/sql.json +0 -49
  206. package/demo/app/sys/plugin/server/api_sys_client/withdrawal/api.json +0 -12
  207. package/demo/app/sys/plugin/server/api_sys_client/withdrawal/param.json +0 -378
  208. package/demo/app/sys/plugin/server/api_sys_client/withdrawal/sql.json +0 -92
  209. package/demo/app/sys/plugin/server/api_sys_manage/ad/api.json +0 -19
  210. package/demo/app/sys/plugin/server/api_sys_manage/ad/index.js +0 -27
  211. package/demo/app/sys/plugin/server/api_sys_manage/ad/param.json +0 -685
  212. package/demo/app/sys/plugin/server/api_sys_manage/ad/sql.json +0 -111
  213. package/demo/app/sys/plugin/server/api_sys_manage/address_province/api.json +0 -18
  214. package/demo/app/sys/plugin/server/api_sys_manage/address_province/param.json +0 -156
  215. package/demo/app/sys/plugin/server/api_sys_manage/address_province/sql.json +0 -23
  216. package/demo/app/sys/plugin/server/api_sys_manage/app/api.json +0 -18
  217. package/demo/app/sys/plugin/server/api_sys_manage/app/param.json +0 -437
  218. package/demo/app/sys/plugin/server/api_sys_manage/app/sql.json +0 -69
  219. package/demo/app/sys/plugin/server/api_sys_manage/app_refresh/api.json +0 -18
  220. package/demo/app/sys/plugin/server/api_sys_manage/app_refresh/param.json +0 -158
  221. package/demo/app/sys/plugin/server/api_sys_manage/app_refresh/sql.json +0 -27
  222. package/demo/app/sys/plugin/server/api_sys_manage/block/api.json +0 -18
  223. package/demo/app/sys/plugin/server/api_sys_manage/block/param.json +0 -318
  224. package/demo/app/sys/plugin/server/api_sys_manage/block/sql.json +0 -47
  225. package/demo/app/sys/plugin/server/api_sys_manage/config/api.json +0 -19
  226. package/demo/app/sys/plugin/server/api_sys_manage/config/index.js +0 -35
  227. package/demo/app/sys/plugin/server/api_sys_manage/config/param.json +0 -261
  228. package/demo/app/sys/plugin/server/api_sys_manage/config/sql.json +0 -92
  229. package/demo/app/sys/plugin/server/api_sys_manage/file/api.json +0 -18
  230. package/demo/app/sys/plugin/server/api_sys_manage/file/param.json +0 -268
  231. package/demo/app/sys/plugin/server/api_sys_manage/file/sql.json +0 -29
  232. package/demo/app/sys/plugin/server/api_sys_manage/lang/api.json +0 -19
  233. package/demo/app/sys/plugin/server/api_sys_manage/lang/index.js +0 -27
  234. package/demo/app/sys/plugin/server/api_sys_manage/lang/param.json +0 -175
  235. package/demo/app/sys/plugin/server/api_sys_manage/lang/sql.json +0 -40
  236. package/demo/app/sys/plugin/server/api_sys_manage/message/api.json +0 -18
  237. package/demo/app/sys/plugin/server/api_sys_manage/message/param.json +0 -152
  238. package/demo/app/sys/plugin/server/api_sys_manage/message/sql.json +0 -21
  239. package/demo/app/sys/plugin/server/api_sys_manage/nav/api.json +0 -19
  240. package/demo/app/sys/plugin/server/api_sys_manage/nav/index.js +0 -27
  241. package/demo/app/sys/plugin/server/api_sys_manage/nav/param.json +0 -295
  242. package/demo/app/sys/plugin/server/api_sys_manage/nav/sql.json +0 -61
  243. package/demo/app/sys/plugin/server/api_sys_manage/pay/api.json +0 -18
  244. package/demo/app/sys/plugin/server/api_sys_manage/pay/param.json +0 -391
  245. package/demo/app/sys/plugin/server/api_sys_manage/pay/sql.json +0 -75
  246. package/demo/app/sys/plugin/server/api_sys_manage/pay_type/api.json +0 -18
  247. package/demo/app/sys/plugin/server/api_sys_manage/pay_type/param.json +0 -242
  248. package/demo/app/sys/plugin/server/api_sys_manage/pay_type/sql.json +0 -73
  249. package/demo/app/sys/plugin/server/api_sys_manage/project/api.json +0 -18
  250. package/demo/app/sys/plugin/server/api_sys_manage/project/param.json +0 -796
  251. package/demo/app/sys/plugin/server/api_sys_manage/project/sql.json +0 -162
  252. package/demo/app/sys/plugin/server/api_sys_manage/recharge/api.json +0 -18
  253. package/demo/app/sys/plugin/server/api_sys_manage/recharge/param.json +0 -311
  254. package/demo/app/sys/plugin/server/api_sys_manage/recharge/sql.json +0 -101
  255. package/demo/app/sys/plugin/server/api_sys_manage/scene/api.json +0 -18
  256. package/demo/app/sys/plugin/server/api_sys_manage/scene/param.json +0 -226
  257. package/demo/app/sys/plugin/server/api_sys_manage/scene/sql.json +0 -48
  258. package/demo/app/sys/plugin/server/api_sys_manage/seo/api.json +0 -19
  259. package/demo/app/sys/plugin/server/api_sys_manage/seo/index.js +0 -26
  260. package/demo/app/sys/plugin/server/api_sys_manage/seo/param.json +0 -145
  261. package/demo/app/sys/plugin/server/api_sys_manage/seo/sql.json +0 -48
  262. package/demo/app/sys/plugin/server/api_sys_manage/withdrawal/api.json +0 -18
  263. package/demo/app/sys/plugin/server/api_sys_manage/withdrawal/param.json +0 -378
  264. package/demo/app/sys/plugin/server/api_sys_manage/withdrawal/sql.json +0 -91
  265. package/demo/app/sys/plugin/server/db/ad.db.json +0 -622
  266. package/demo/app/sys/plugin/server/db/address_province.db.json +0 -82
  267. package/demo/app/sys/plugin/server/db/app.db.json +0 -369
  268. package/demo/app/sys/plugin/server/db/app_refresh.db.json +0 -117
  269. package/demo/app/sys/plugin/server/db/block.db.json +0 -352
  270. package/demo/app/sys/plugin/server/db/config.db.json +0 -226
  271. package/demo/app/sys/plugin/server/db/file.db.json +0 -172
  272. package/demo/app/sys/plugin/server/db/lang.db.json +0 -208
  273. package/demo/app/sys/plugin/server/db/message.db.json +0 -99
  274. package/demo/app/sys/plugin/server/db/nav.db.json +0 -298
  275. package/demo/app/sys/plugin/server/db/pay.db.json +0 -316
  276. package/demo/app/sys/plugin/server/db/pay_type.db.json +0 -226
  277. package/demo/app/sys/plugin/server/db/project.db.json +0 -622
  278. package/demo/app/sys/plugin/server/db/recharge.db.json +0 -226
  279. package/demo/app/sys/plugin/server/db/scene.db.json +0 -208
  280. package/demo/app/sys/plugin/server/db/seo.db.json +0 -136
  281. package/demo/app/sys/plugin/server/db/withdrawal.db.json +0 -298
  282. package/demo/app/user/LICENSE +0 -201
  283. package/demo/app/user/app.js +0 -144
  284. package/demo/app/user/app.json +0 -10
  285. package/demo/app/user/event_api/client/event.json +0 -10
  286. package/demo/app/user/event_api/client/main.js +0 -17
  287. package/demo/app/user/event_api/manage/event.json +0 -10
  288. package/demo/app/user/event_api/manage/main.js +0 -17
  289. package/demo/app/user/event_api/web/event.json +0 -20
  290. package/demo/app/user/event_api/web/main.js +0 -39
  291. package/demo/app/user/plugin/main/api_user_client/account/api.json +0 -41
  292. package/demo/app/user/plugin/main/api_user_client/account/index.js +0 -54
  293. package/demo/app/user/plugin/main/api_user_client/account/param.json +0 -130
  294. package/demo/app/user/plugin/main/api_user_client/account/sql.json +0 -70
  295. package/demo/app/user/plugin/main/api_user_client/address_login/api.json +0 -27
  296. package/demo/app/user/plugin/main/api_user_client/address_login/index.js +0 -35
  297. package/demo/app/user/plugin/main/api_user_client/address_login/param.json +0 -130
  298. package/demo/app/user/plugin/main/api_user_client/base/api.json +0 -27
  299. package/demo/app/user/plugin/main/api_user_client/base/index.js +0 -92
  300. package/demo/app/user/plugin/main/api_user_client/base/param.json +0 -130
  301. package/demo/app/user/plugin/main/api_user_client/count/api.json +0 -27
  302. package/demo/app/user/plugin/main/api_user_client/count/chongzhi.js +0 -103
  303. package/demo/app/user/plugin/main/api_user_client/count/index.js +0 -24
  304. package/demo/app/user/plugin/main/api_user_client/count/param.json +0 -40
  305. package/demo/app/user/plugin/main/api_user_client/count/sql.json +0 -70
  306. package/demo/app/user/plugin/main/api_user_client/data_count/api.json +0 -37
  307. package/demo/app/user/plugin/main/api_user_client/data_count/index.js +0 -61
  308. package/demo/app/user/plugin/main/api_user_client/email_code/api.json +0 -37
  309. package/demo/app/user/plugin/main/api_user_client/email_code/email_code.js +0 -300
  310. package/demo/app/user/plugin/main/api_user_client/email_code/index.js +0 -18
  311. package/demo/app/user/plugin/main/api_user_client/email_code/param.json +0 -56
  312. package/demo/app/user/plugin/main/api_user_client/forgot/api.json +0 -37
  313. package/demo/app/user/plugin/main/api_user_client/forgot/index.js +0 -36
  314. package/demo/app/user/plugin/main/api_user_client/forgot/param.json +0 -57
  315. package/demo/app/user/plugin/main/api_user_client/ip/api.json +0 -39
  316. package/demo/app/user/plugin/main/api_user_client/ip/index.js +0 -43
  317. package/demo/app/user/plugin/main/api_user_client/ip/param.json +0 -130
  318. package/demo/app/user/plugin/main/api_user_client/ip/sql.json +0 -70
  319. package/demo/app/user/plugin/main/api_user_client/message/api.json +0 -29
  320. package/demo/app/user/plugin/main/api_user_client/message/index.js +0 -19
  321. package/demo/app/user/plugin/main/api_user_client/message/param.json +0 -36
  322. package/demo/app/user/plugin/main/api_user_client/message/sql.json +0 -21
  323. package/demo/app/user/plugin/main/api_user_client/oauth/WXBizDataCrypt.js +0 -33
  324. package/demo/app/user/plugin/main/api_user_client/oauth/api.json +0 -31
  325. package/demo/app/user/plugin/main/api_user_client/oauth/index.js +0 -16
  326. package/demo/app/user/plugin/main/api_user_client/oauth/oauth.js +0 -315
  327. package/demo/app/user/plugin/main/api_user_client/oauth/oauth.json +0 -88
  328. package/demo/app/user/plugin/main/api_user_client/oauth/param.json +0 -111
  329. package/demo/app/user/plugin/main/api_user_client/password/api.json +0 -21
  330. package/demo/app/user/plugin/main/api_user_client/password/index.js +0 -64
  331. package/demo/app/user/plugin/main/api_user_client/password/param.json +0 -45
  332. package/demo/app/user/plugin/main/api_user_client/phone_code/aliyun.js +0 -230
  333. package/demo/app/user/plugin/main/api_user_client/phone_code/api.json +0 -37
  334. package/demo/app/user/plugin/main/api_user_client/phone_code/index.js +0 -18
  335. package/demo/app/user/plugin/main/api_user_client/phone_code/param.json +0 -58
  336. package/demo/app/user/plugin/main/api_user_client/phone_code/phone_code.js +0 -297
  337. package/demo/app/user/plugin/main/api_user_client/realname/api.json +0 -21
  338. package/demo/app/user/plugin/main/api_user_client/realname/index.js +0 -45
  339. package/demo/app/user/plugin/main/api_user_client/realname/param.json +0 -74
  340. package/demo/app/user/plugin/main/api_user_client/servicer/api.json +0 -29
  341. package/demo/app/user/plugin/main/api_user_client/servicer/index.js +0 -19
  342. package/demo/app/user/plugin/main/api_user_client/servicer/param.json +0 -41
  343. package/demo/app/user/plugin/main/api_user_client/servicer/sql.json +0 -113
  344. package/demo/app/user/plugin/main/api_user_client/set_address/api.json +0 -37
  345. package/demo/app/user/plugin/main/api_user_client/set_address/index.js +0 -98
  346. package/demo/app/user/plugin/main/api_user_client/set_address/param.json +0 -165
  347. package/demo/app/user/plugin/main/api_user_client/set_avatar/api.json +0 -35
  348. package/demo/app/user/plugin/main/api_user_client/set_avatar/index.js +0 -77
  349. package/demo/app/user/plugin/main/api_user_client/set_info/api.json +0 -35
  350. package/demo/app/user/plugin/main/api_user_client/set_info/index.js +0 -44
  351. package/demo/app/user/plugin/main/api_user_client/set_nickname/api.json +0 -35
  352. package/demo/app/user/plugin/main/api_user_client/set_nickname/index.js +0 -46
  353. package/demo/app/user/plugin/main/api_user_client/set_pay_password/api.json +0 -21
  354. package/demo/app/user/plugin/main/api_user_client/set_pay_password/index.js +0 -64
  355. package/demo/app/user/plugin/main/api_user_client/sign_address/api.json +0 -39
  356. package/demo/app/user/plugin/main/api_user_client/sign_address/index.js +0 -114
  357. package/demo/app/user/plugin/main/api_user_client/sign_address/param.json +0 -130
  358. package/demo/app/user/plugin/main/api_user_client/sign_address/sql.json +0 -70
  359. package/demo/app/user/plugin/main/api_user_client/sign_auto/api.json +0 -29
  360. package/demo/app/user/plugin/main/api_user_client/sign_auto/index.js +0 -141
  361. package/demo/app/user/plugin/main/api_user_client/sign_auto/param.json +0 -42
  362. package/demo/app/user/plugin/main/api_user_client/sign_in/api.json +0 -11
  363. package/demo/app/user/plugin/main/api_user_client/sign_in/index.js +0 -274
  364. package/demo/app/user/plugin/main/api_user_client/sign_in/param.json +0 -125
  365. package/demo/app/user/plugin/main/api_user_client/sign_in/state.js +0 -37
  366. package/demo/app/user/plugin/main/api_user_client/sign_out/api.json +0 -9
  367. package/demo/app/user/plugin/main/api_user_client/sign_out/index.js +0 -28
  368. package/demo/app/user/plugin/main/api_user_client/sign_up/api.json +0 -12
  369. package/demo/app/user/plugin/main/api_user_client/sign_up/index.js +0 -189
  370. package/demo/app/user/plugin/main/api_user_client/sign_up/param.json +0 -83
  371. package/demo/app/user/plugin/main/api_user_client/sign_up_in/api.json +0 -37
  372. package/demo/app/user/plugin/main/api_user_client/sign_up_in/index.js +0 -137
  373. package/demo/app/user/plugin/main/api_user_client/sign_up_in/param.json +0 -33
  374. package/demo/app/user/plugin/main/api_user_client/state/api.json +0 -9
  375. package/demo/app/user/plugin/main/api_user_client/state/index.js +0 -19
  376. package/demo/app/user/plugin/main/api_user_client/token/api.json +0 -25
  377. package/demo/app/user/plugin/main/api_user_client/token/index.js +0 -20
  378. package/demo/app/user/plugin/main/api_user_client/token/param.json +0 -16
  379. package/demo/app/user/plugin/main/api_user_client/unsubscribe/api.json +0 -29
  380. package/demo/app/user/plugin/main/api_user_client/unsubscribe/index.js +0 -91
  381. package/demo/app/user/plugin/main/api_user_client/unsubscribe/param.json +0 -71
  382. package/demo/app/user/plugin/main/api_user_client/yun_avatar/api.json +0 -31
  383. package/demo/app/user/plugin/main/api_user_client/yun_avatar/index.js +0 -56
  384. package/demo/app/user/plugin/main/api_user_client/yun_avatar/param.json +0 -50
  385. package/demo/app/user/plugin/main/api_user_web/avatar/api.json +0 -28
  386. package/demo/app/user/plugin/main/api_user_web/avatar/index.js +0 -51
  387. package/demo/app/user/plugin/main/api_user_web/login/api.json +0 -37
  388. package/demo/app/user/plugin/main/api_user_web/login/index.js +0 -12
  389. package/demo/app/user/plugin/main/api_user_web/root/api.json +0 -38
  390. package/demo/app/user/plugin/main/api_user_web/root/index.js +0 -67
  391. package/demo/app/user/plugin/main/index.js +0 -144
  392. package/demo/app/user/plugin/main/plugin.json +0 -20
  393. package/demo/app/user/plugin/server/api_user_client/address/api.json +0 -16
  394. package/demo/app/user/plugin/server/api_user_client/address/index.js +0 -79
  395. package/demo/app/user/plugin/server/api_user_client/address/param.json +0 -288
  396. package/demo/app/user/plugin/server/api_user_client/address/sql.json +0 -56
  397. package/demo/app/user/plugin/server/api_user_client/count/api.json +0 -12
  398. package/demo/app/user/plugin/server/api_user_client/count/param.json +0 -646
  399. package/demo/app/user/plugin/server/api_user_client/count/sql.json +0 -82
  400. package/demo/app/user/plugin/server/api_user_client/info/api.json +0 -16
  401. package/demo/app/user/plugin/server/api_user_client/info/index.js +0 -42
  402. package/demo/app/user/plugin/server/api_user_client/info/param.json +0 -531
  403. package/demo/app/user/plugin/server/api_user_client/info/sql.json +0 -84
  404. package/demo/app/user/plugin/server/api_user_client/message/api.json +0 -12
  405. package/demo/app/user/plugin/server/api_user_client/message/param.json +0 -366
  406. package/demo/app/user/plugin/server/api_user_client/message/sql.json +0 -88
  407. package/demo/app/user/plugin/server/api_user_client/nation/api.json +0 -12
  408. package/demo/app/user/plugin/server/api_user_client/nation/param.json +0 -74
  409. package/demo/app/user/plugin/server/api_user_client/nation/sql.json +0 -18
  410. package/demo/app/user/plugin/server/api_user_manage/account/api.json +0 -18
  411. package/demo/app/user/plugin/server/api_user_manage/account/param.json +0 -620
  412. package/demo/app/user/plugin/server/api_user_manage/account/sql.json +0 -105
  413. package/demo/app/user/plugin/server/api_user_manage/address/api.json +0 -19
  414. package/demo/app/user/plugin/server/api_user_manage/address/index.js +0 -57
  415. package/demo/app/user/plugin/server/api_user_manage/address/param.json +0 -288
  416. package/demo/app/user/plugin/server/api_user_manage/address/sql.json +0 -44
  417. package/demo/app/user/plugin/server/api_user_manage/admin/api.json +0 -18
  418. package/demo/app/user/plugin/server/api_user_manage/admin/param.json +0 -147
  419. package/demo/app/user/plugin/server/api_user_manage/admin/sql.json +0 -24
  420. package/demo/app/user/plugin/server/api_user_manage/admin_log/api.json +0 -18
  421. package/demo/app/user/plugin/server/api_user_manage/admin_log/param.json +0 -226
  422. package/demo/app/user/plugin/server/api_user_manage/admin_log/sql.json +0 -32
  423. package/demo/app/user/plugin/server/api_user_manage/count/api.json +0 -18
  424. package/demo/app/user/plugin/server/api_user_manage/count/param.json +0 -646
  425. package/demo/app/user/plugin/server/api_user_manage/count/sql.json +0 -72
  426. package/demo/app/user/plugin/server/api_user_manage/group/api.json +0 -18
  427. package/demo/app/user/plugin/server/api_user_manage/group/param.json +0 -187
  428. package/demo/app/user/plugin/server/api_user_manage/group/sql.json +0 -39
  429. package/demo/app/user/plugin/server/api_user_manage/group_log/api.json +0 -18
  430. package/demo/app/user/plugin/server/api_user_manage/group_log/param.json +0 -235
  431. package/demo/app/user/plugin/server/api_user_manage/group_log/sql.json +0 -32
  432. package/demo/app/user/plugin/server/api_user_manage/info/api.json +0 -18
  433. package/demo/app/user/plugin/server/api_user_manage/info/param.json +0 -531
  434. package/demo/app/user/plugin/server/api_user_manage/info/sql.json +0 -71
  435. package/demo/app/user/plugin/server/api_user_manage/message/api.json +0 -18
  436. package/demo/app/user/plugin/server/api_user_manage/message/param.json +0 -366
  437. package/demo/app/user/plugin/server/api_user_manage/message/sql.json +0 -75
  438. package/demo/app/user/plugin/server/api_user_manage/nation/api.json +0 -18
  439. package/demo/app/user/plugin/server/api_user_manage/nation/param.json +0 -74
  440. package/demo/app/user/plugin/server/api_user_manage/nation/sql.json +0 -16
  441. package/demo/app/user/plugin/server/api_user_manage/state/api.json +0 -18
  442. package/demo/app/user/plugin/server/api_user_manage/state/param.json +0 -98
  443. package/demo/app/user/plugin/server/api_user_manage/state/sql.json +0 -29
  444. package/demo/app/user/plugin/server/db/account.db.json +0 -460
  445. package/demo/app/user/plugin/server/db/address.db.json +0 -262
  446. package/demo/app/user/plugin/server/db/admin.db.json +0 -117
  447. package/demo/app/user/plugin/server/db/admin_log.db.json +0 -189
  448. package/demo/app/user/plugin/server/db/count.db.json +0 -298
  449. package/demo/app/user/plugin/server/db/group.db.json +0 -117
  450. package/demo/app/user/plugin/server/db/group_log.db.json +0 -190
  451. package/demo/app/user/plugin/server/db/info.db.json +0 -496
  452. package/demo/app/user/plugin/server/db/message.db.json +0 -262
  453. package/demo/app/user/plugin/server/db/nation.db.json +0 -46
  454. package/demo/app/user/plugin/server/db/state.db.json +0 -64
  455. package/demo/config/development.json +0 -109
  456. package/demo/config/local.json +0 -111
  457. package/demo/config/lock.cache +0 -5
  458. package/demo/config/test.json +0 -109
  459. package/demo/config/tpl.json +0 -107
  460. package/demo/index.js +0 -30
  461. package/demo/static/file/image/1.png +0 -0
  462. /package/core/com/{api → rpc}/rpc.js +0 -0
@@ -1,298 +0,0 @@
1
- {
2
- "name": "sys_withdrawal",
3
- "state": 1,
4
- "title": "支付提现",
5
- "description": "",
6
- "table": "sys_withdrawal",
7
- "key": "withdrawal_id",
8
- "fields": [
9
- {
10
- "name": "withdrawal_id",
11
- "title": "提现ID",
12
- "description": "",
13
- "type": "int",
14
- "key": true,
15
- "auto": "auto_increment",
16
- "symbol": false,
17
- "fill_zero": false,
18
- "not_null": 1,
19
- "min_length": 0,
20
- "max_length": 11,
21
- "min": 0,
22
- "max": 2147483647,
23
- "decimal": 0,
24
- "default": "0",
25
- "map": ""
26
- },
27
- {
28
- "name": "orderid",
29
- "title": "提现订单号",
30
- "description": "",
31
- "type": "varchar",
32
- "key": false,
33
- "auto": "",
34
- "symbol": false,
35
- "fill_zero": false,
36
- "not_null": 0,
37
- "min_length": 0,
38
- "max_length": 64,
39
- "min": 0,
40
- "max": 0,
41
- "decimal": 0,
42
- "default": null,
43
- "map": ""
44
- },
45
- {
46
- "name": "state",
47
- "title": "提现状态",
48
- "description": "",
49
- "type": "smallint",
50
- "key": false,
51
- "auto": "",
52
- "symbol": false,
53
- "fill_zero": false,
54
- "not_null": 1,
55
- "min_length": 0,
56
- "max_length": 1,
57
- "min": 0,
58
- "max": 9,
59
- "decimal": 0,
60
- "default": "1",
61
- "map": "1待转账|2已取消|3已提现"
62
- },
63
- {
64
- "name": "way",
65
- "title": "付款方式",
66
- "description": "",
67
- "type": "smallint",
68
- "key": false,
69
- "auto": "",
70
- "symbol": false,
71
- "fill_zero": false,
72
- "not_null": 1,
73
- "min_length": 0,
74
- "max_length": 1,
75
- "min": 0,
76
- "max": 9,
77
- "decimal": 0,
78
- "default": "1",
79
- "map": "1余额|2微信|3支付宝|4银行卡|5数字货币|6其他"
80
- },
81
- {
82
- "name": "group",
83
- "title": "分组",
84
- "description": "便于管理查找",
85
- "type": "varchar",
86
- "key": false,
87
- "auto": "",
88
- "symbol": false,
89
- "fill_zero": false,
90
- "not_null": 0,
91
- "min_length": 0,
92
- "max_length": 32,
93
- "min": 0,
94
- "max": 0,
95
- "decimal": 0,
96
- "default": "默认",
97
- "map": ""
98
- },
99
- {
100
- "name": "appid",
101
- "title": "应用ID",
102
- "description": "",
103
- "type": "varchar",
104
- "key": false,
105
- "auto": "",
106
- "symbol": false,
107
- "fill_zero": false,
108
- "not_null": 0,
109
- "min_length": 0,
110
- "max_length": 64,
111
- "min": 0,
112
- "max": 0,
113
- "decimal": 0,
114
- "default": null,
115
- "map": ""
116
- },
117
- {
118
- "name": "ip",
119
- "title": "IP地址",
120
- "description": "用于记录提现的IP",
121
- "type": "varchar",
122
- "key": false,
123
- "auto": "",
124
- "symbol": false,
125
- "fill_zero": false,
126
- "not_null": 0,
127
- "min_length": 0,
128
- "max_length": 64,
129
- "min": 0,
130
- "max": 0,
131
- "decimal": 0,
132
- "default": null,
133
- "map": ""
134
- },
135
- {
136
- "name": "user_id",
137
- "title": "用户ID",
138
- "description": "",
139
- "type": "int",
140
- "key": false,
141
- "auto": "",
142
- "symbol": false,
143
- "fill_zero": false,
144
- "not_null": 1,
145
- "min_length": 0,
146
- "max_length": 8,
147
- "min": 0,
148
- "max": 8388607,
149
- "decimal": 0,
150
- "default": "0",
151
- "map": "user_account.nickname.user_id"
152
- },
153
- {
154
- "name": "openid",
155
- "title": "用户开放ID",
156
- "description": "",
157
- "type": "varchar",
158
- "key": false,
159
- "auto": "",
160
- "symbol": false,
161
- "fill_zero": false,
162
- "not_null": 0,
163
- "min_length": 0,
164
- "max_length": 64,
165
- "min": 0,
166
- "max": 0,
167
- "decimal": 0,
168
- "default": null,
169
- "map": ""
170
- },
171
- {
172
- "name": "type",
173
- "title": "提现类型",
174
- "description": "",
175
- "type": "varchar",
176
- "key": false,
177
- "auto": "",
178
- "symbol": false,
179
- "fill_zero": false,
180
- "not_null": 0,
181
- "min_length": 0,
182
- "max_length": 32,
183
- "min": 0,
184
- "max": 0,
185
- "decimal": 0,
186
- "default": "money",
187
- "map": "coin游戏币|money现金|voucher点券|points积分"
188
- },
189
- {
190
- "name": "amount",
191
- "title": "提现金额",
192
- "description": "",
193
- "type": "double",
194
- "key": false,
195
- "auto": "",
196
- "symbol": false,
197
- "fill_zero": false,
198
- "not_null": 1,
199
- "min_length": 0,
200
- "max_length": 11,
201
- "min": 0,
202
- "max": 0,
203
- "decimal": 2,
204
- "default": "0.00",
205
- "map": ""
206
- },
207
- {
208
- "name": "description",
209
- "title": "提现描述",
210
- "description": "",
211
- "type": "varchar",
212
- "key": false,
213
- "auto": "",
214
- "symbol": false,
215
- "fill_zero": false,
216
- "not_null": 0,
217
- "min_length": 0,
218
- "max_length": 255,
219
- "min": 0,
220
- "max": 0,
221
- "decimal": 0,
222
- "default": null,
223
- "map": ""
224
- },
225
- {
226
- "name": "info",
227
- "title": "收款信息",
228
- "description": "",
229
- "type": "text",
230
- "key": false,
231
- "auto": "",
232
- "symbol": false,
233
- "fill_zero": false,
234
- "not_null": 0,
235
- "min_length": 0,
236
- "max_length": 0,
237
- "min": 0,
238
- "max": 0,
239
- "decimal": 0,
240
- "default": null,
241
- "map": ""
242
- },
243
- {
244
- "name": "scene",
245
- "title": "场景信息",
246
- "description": "",
247
- "type": "text",
248
- "key": false,
249
- "auto": "",
250
- "symbol": false,
251
- "fill_zero": false,
252
- "not_null": 0,
253
- "min_length": 0,
254
- "max_length": 0,
255
- "min": 0,
256
- "max": 0,
257
- "decimal": 0,
258
- "default": null,
259
- "map": ""
260
- },
261
- {
262
- "name": "time_create",
263
- "title": "创建时间",
264
- "description": "用来判断下单的时间",
265
- "type": "datetime",
266
- "key": false,
267
- "auto": "",
268
- "symbol": false,
269
- "fill_zero": false,
270
- "not_null": 1,
271
- "min_length": 0,
272
- "max_length": 0,
273
- "min": 0,
274
- "max": 0,
275
- "decimal": 0,
276
- "default": "CURRENT_TIMESTAMP",
277
- "map": ""
278
- },
279
- {
280
- "name": "time_update",
281
- "title": "更新时间",
282
- "description": "用来判断是否有被更改",
283
- "type": "timestamp",
284
- "key": false,
285
- "auto": "on update CURRENT_TIMESTAMP",
286
- "symbol": false,
287
- "fill_zero": false,
288
- "not_null": 1,
289
- "min_length": 0,
290
- "max_length": 0,
291
- "min": 0,
292
- "max": 0,
293
- "decimal": 0,
294
- "default": "CURRENT_TIMESTAMP",
295
- "map": ""
296
- }
297
- ]
298
- }
@@ -1,201 +0,0 @@
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.
@@ -1,144 +0,0 @@
1
- /**
2
- * @fileOverview user
3
- * @author <a href="作者主页地址">应用作者</a>
4
- * @version 1.0
5
- */
6
-
7
- /**
8
- * 应用对象
9
- */
10
- module.exports = {
11
- /**
12
- * 初始化
13
- * @param {Object} option 配置参数
14
- * @return {String} 成功返回null, 否则返回错误提示
15
- */
16
- init(option) {
17
- var msg = null;
18
- return msg;
19
- },
20
-
21
- /**
22
- * 安装
23
- * @param {Object} option 配置参数
24
- * @return {String} 成功返回null,否则返回错误提示
25
- */
26
- install(option) {
27
- var msg = null;
28
- return msg;
29
- },
30
-
31
- /**
32
- * 卸载
33
- * @param {Object} option 配置参数
34
- * @return {String} 成功返回null,否则返回错误提示
35
- */
36
- uninstall(option) {
37
- var msg = null;
38
- return msg;
39
- },
40
-
41
- /**
42
- * 更新
43
- * @param {Object} option 配置参数
44
- * @return {String} 成功返回null, 否则返回错误提示
45
- */
46
- update(option) {
47
- var msg = null;
48
- return msg;
49
- },
50
-
51
- /**
52
- * 启动
53
- * @param {Object} opiton 配置参数
54
- * @return {String} 成功返回null,否则返回错误提示
55
- */
56
- start(option) {
57
- var msg = null;
58
- return msg;
59
- },
60
-
61
- /**
62
- * 暂停
63
- * @param {Object} opiton 配置参数
64
- * @return {String} 成功返回null,否则返回错误提示
65
- */
66
- stop(option) {
67
- var msg = null;
68
- return msg;
69
- },
70
-
71
- /**
72
- * 结束
73
- * @param {Object} opiton 配置参数
74
- * @return {String} 成功返回null,否则返回错误提示
75
- */
76
- end(option) {
77
- var msg = null;
78
- return msg;
79
- },
80
-
81
- /**
82
- * 插件
83
- * @param {String} item 插件项
84
- * @return {Object} 旗下插件和信息
85
- */
86
- help(item) {
87
- var tip = "";
88
- switch (item) {
89
- case "run":
90
- break;
91
- default:
92
- break;
93
- }
94
- return tip;
95
- },
96
-
97
- /**
98
- * 主程序
99
- * @param {Object} param1 参数1
100
- * @param {Object} param2 参数2
101
- * @return {Object} 返回执行结果
102
- */
103
- main(param1, param2) {
104
- var ret = null;
105
- return ret;
106
- },
107
-
108
- /**
109
- * 指令(类似命令提示符)
110
- * @param {String} content 指令内容
111
- * @return {String} 执行结果
112
- */
113
- cmd(content) {
114
- var ret = "";
115
- return ret;
116
- },
117
-
118
- /**
119
- * API接口(用于其他插件调用该插件时)
120
- * @param {Object} ctx HTTP上下文
121
- * @param {Object} db 数据库管理器
122
- * @return {Object} 执行结果
123
- */
124
- api(ctx, db) {
125
- var ret = "";
126
- return ret;
127
- },
128
-
129
- /**
130
- * 聊天(通过聊天的方式驱动插件, 用于机器人开发)
131
- * @param {String} from_user 发送消息人
132
- * @param {String} to_user 接收消息人
133
- * @param {String} content 内容
134
- * @param {String} group 群组 如果是个人,群组为空
135
- * @param {Number} type 群类型, 1永久会话/群、2临时会话/群
136
- * @param {String} msg_type 消息类型, event事件型、message消息型。默认消息型
137
- * @param {Object} 数据管理器
138
- * @return {String} 回复内容
139
- */
140
- async chat(from_user, to_user, group, content, type, msg_type, db) {
141
- var ret = "";
142
- return ret;
143
- }
144
- };
@@ -1,10 +0,0 @@
1
- {
2
- "name": "user",
3
- "title": "用户",
4
- "description": "用于用户身份验证",
5
- "version": "1.0",
6
- "lang_path": "/user/lang/",
7
- "icon": "/user/img/logo.png",
8
- "script": "./app.js",
9
- "state": 1
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "target": "/api/user/*",
3
- "name": "user_client",
4
- "title": "用户客户端调用的接口事件",
5
- "description": "用于用户访问服务端时调用的接口",
6
- "stage": "main",
7
- "func_file": "./main.js",
8
- "sort": 99,
9
- "end": true
10
- }
@@ -1,17 +0,0 @@
1
- var api = $.api_admin('user_client', '用户客户端');
2
- // 首次启动更新api接口;
3
- api.update('user/');
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;
@@ -1,10 +0,0 @@
1
- {
2
- "target": "/apis/user/*",
3
- "name": "user_admin_api",
4
- "title": "用户管理端调用的接口事件",
5
- "description": "用于管理用户时调用的接口",
6
- "stage": "main",
7
- "func_file": "./main.js",
8
- "sort": 99,
9
- "end": true
10
- }