opendb-app-list.schema.json 7.8 KB

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