opendb-app-list.schema.json 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. {
  2. "bsonType": "object",
  3. "required": ["appid", "name"],
  4. "permission": {
  5. "read": "'READ_OPENDB_APP_LIST' in auth.permission",
  6. "create": "'CREATE_OPENDB_APP_LIST' in auth.permission",
  7. "update": "'UPDATE_OPENDB_APP_LIST' in auth.permission",
  8. "delete": "'DELETE_OPENDB_APP_LIST' in auth.permission"
  9. },
  10. "properties": {
  11. "_id": {
  12. "description": "ID,系统自动生成"
  13. },
  14. "appid": {
  15. "bsonType": "string",
  16. "description": "应用的AppID",
  17. "label": "AppID",
  18. "componentForEdit": {
  19. "name": "uni-easyinput",
  20. "props": {
  21. ":disabled": true
  22. }
  23. }
  24. },
  25. "name": {
  26. "bsonType": "string",
  27. "description": "应用名称",
  28. "label": "应用名称",
  29. "componentForEdit": {
  30. "name": "uni-easyinput",
  31. "props": {
  32. ":disabled": true
  33. }
  34. }
  35. },
  36. "description": {
  37. "bsonType": "string",
  38. "description": "应用描述",
  39. "label": "应用描述",
  40. "componentForEdit": {
  41. "name": "textarea"
  42. },
  43. "componentForShow": {
  44. "name": "textarea",
  45. "props": {
  46. ":disabled": true
  47. }
  48. }
  49. },
  50. "creator_uid": {
  51. "description": "创建者的user_id,创建者必然是用户,不随应用转让而改变",
  52. "bsonType": "string"
  53. },
  54. "owner_type": {
  55. "bsonType": "int",
  56. "description": "应用当前归属者类型,1:个人,2:企业"
  57. },
  58. "owner_id": {
  59. "bsonType": "string",
  60. "description": "应用当前归属者的id,user_id or enterprise_id"
  61. },
  62. "managers": {
  63. "bsonType": "array",
  64. "description": "应用管理员ID列表"
  65. },
  66. "members": {
  67. "bsonType": "array",
  68. "description": "团队成员ID列表"
  69. },
  70. "icon_url": {
  71. "bsonType": "string",
  72. "trim": "both",
  73. "description": "应用图标链接",
  74. "label": "应用图标"
  75. },
  76. "introduction": {
  77. "bsonType": "string",
  78. "trim": "both",
  79. "description": "应用简介",
  80. "label": "应用简介",
  81. "componentForEdit": {
  82. "name": "uni-easyinput",
  83. "props": {
  84. "disabled": true
  85. }
  86. }
  87. },
  88. "screenshot": {
  89. "bsonType": "array",
  90. "description": "应用截图",
  91. "label": "应用截图"
  92. },
  93. "app_android": {
  94. "bsonType": "object",
  95. "description": "安卓 App 相关信息",
  96. "properties": {
  97. "name": {
  98. "bsonType": "string",
  99. "description": "快应用名称",
  100. "label": "快应用名称"
  101. },
  102. "url": {
  103. "bsonType": "string",
  104. "description": "安卓可下载安装包地址",
  105. "label": "安卓下载地址"
  106. }
  107. }
  108. },
  109. "app_ios": {
  110. "bsonType": "object",
  111. "description": "苹果 App 相关信息",
  112. "properties": {
  113. "name": {
  114. "bsonType": "string",
  115. "description": "快应用名称",
  116. "label": "快应用名称"
  117. },
  118. "url": {
  119. "bsonType": "string",
  120. "description": "AppStore 上架地址",
  121. "label": "AppStore 地址"
  122. }
  123. }
  124. },
  125. "mp_weixin": {
  126. "bsonType": "object",
  127. "description": "微信小程序相关信息",
  128. "label": "微信小程序",
  129. "properties": {
  130. "name": {
  131. "bsonType": "string",
  132. "description": "小程序名字"
  133. },
  134. "qrcode_url": {
  135. "bsonType": "string",
  136. "description": "二维码url"
  137. }
  138. }
  139. },
  140. "mp_alipay": {
  141. "bsonType": "object",
  142. "description": "支付宝小程序相关信息",
  143. "label": "支付宝小程序",
  144. "properties": {
  145. "name": {
  146. "bsonType": "string",
  147. "description": "小程序名字"
  148. },
  149. "qrcode_url": {
  150. "bsonType": "string",
  151. "description": "二维码url"
  152. }
  153. }
  154. },
  155. "mp_baidu": {
  156. "bsonType": "object",
  157. "description": "百度小程序相关信息",
  158. "label": "百度小程序",
  159. "properties": {
  160. "name": {
  161. "bsonType": "string",
  162. "description": "小程序名字"
  163. },
  164. "qrcode_url": {
  165. "bsonType": "string",
  166. "description": "二维码url"
  167. }
  168. }
  169. },
  170. "mp_toutiao": {
  171. "bsonType": "object",
  172. "description": "头条小程序相关信息",
  173. "label": "头条小程序",
  174. "properties": {
  175. "name": {
  176. "bsonType": "string",
  177. "description": "小程序名字"
  178. },
  179. "qrcode_url": {
  180. "bsonType": "string",
  181. "description": "二维码url"
  182. }
  183. }
  184. },
  185. "mp_qq": {
  186. "bsonType": "object",
  187. "description": "QQ小程序相关信息",
  188. "label": "QQ小程序",
  189. "properties": {
  190. "name": {
  191. "bsonType": "string",
  192. "description": "小程序名字"
  193. },
  194. "qrcode_url": {
  195. "bsonType": "string",
  196. "description": "二维码url"
  197. }
  198. }
  199. },
  200. "mp_kuaishou": {
  201. "bsonType": "object",
  202. "description": "快手小程序相关信息",
  203. "label": "快手小程序",
  204. "properties": {
  205. "name": {
  206. "bsonType": "string",
  207. "description": "小程序名字"
  208. },
  209. "qrcode_url": {
  210. "bsonType": "string",
  211. "description": "二维码url"
  212. }
  213. }
  214. },
  215. "mp_lark": {
  216. "bsonType": "object",
  217. "description": "飞书小程序相关信息",
  218. "label": "飞书小程序",
  219. "properties": {
  220. "name": {
  221. "bsonType": "string",
  222. "description": "小程序名字"
  223. },
  224. "qrcode_url": {
  225. "bsonType": "string",
  226. "description": "二维码url"
  227. }
  228. }
  229. },
  230. "mp_jd": {
  231. "bsonType": "object",
  232. "description": "京东小程序相关信息",
  233. "label": "京东小程序",
  234. "properties": {
  235. "name": {
  236. "bsonType": "string",
  237. "description": "小程序名字"
  238. },
  239. "qrcode_url": {
  240. "bsonType": "string",
  241. "description": "二维码url"
  242. }
  243. }
  244. },
  245. "mp_dingtalk": {
  246. "bsonType": "object",
  247. "description": "钉钉小程序相关信息",
  248. "label": "钉钉小程序",
  249. "properties": {
  250. "name": {
  251. "bsonType": "string",
  252. "description": "小程序名字"
  253. },
  254. "qrcode_url": {
  255. "bsonType": "string",
  256. "description": "二维码url"
  257. }
  258. }
  259. },
  260. "h5": {
  261. "bsonType": "object",
  262. "properties": {
  263. "url": {
  264. "bsonType": "string",
  265. "description": "H5 可访问链接"
  266. }
  267. }
  268. },
  269. "quickapp": {
  270. "bsonType": "object",
  271. "properties": {
  272. "name": {
  273. "bsonType": "string",
  274. "description": "快应用名称",
  275. "label": "快应用名称"
  276. },
  277. "qrcode_url": {
  278. "bsonType": "string",
  279. "description": "快应用二维码url"
  280. }
  281. }
  282. },
  283. "store_list": {
  284. "bsonType": "array",
  285. "description": "发布的应用市场",
  286. "label": "应用市场",
  287. "properties": {
  288. "id": {
  289. "bsonType": "string",
  290. "description": "应用id,自动生成",
  291. "label": "id"
  292. },
  293. "name": {
  294. "bsonType": "string",
  295. "description": "应用名称",
  296. "label": "应用名称"
  297. },
  298. "scheme": {
  299. "bsonType": "string",
  300. "description": "应用 scheme",
  301. "label": "应用 scheme"
  302. },
  303. "enable": {
  304. "bsonType": "bool",
  305. "description": "是否启用"
  306. },
  307. "priority": {
  308. "bsonType": "int",
  309. "description": "按照从大到小排序",
  310. "label": "优先级"
  311. }
  312. }
  313. },
  314. "create_date": {
  315. "bsonType": "timestamp",
  316. "label": "创建时间",
  317. "forceDefaultValue": {
  318. "$env": "now"
  319. },
  320. "componentForEdit": {
  321. "name": "uni-dateformat"
  322. }
  323. }
  324. }
  325. }