opendb-app-publish.schema.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. // 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
  2. {
  3. "bsonType": "object",
  4. "required": ["appid", "name"],
  5. "permission": {
  6. "read": false,
  7. "create": false,
  8. "update": false,
  9. "delete": false
  10. },
  11. "properties": {
  12. "_id": {
  13. "description": "记录id,自动生成"
  14. },
  15. "appid": {
  16. "bsonType": "string",
  17. "trim": "both",
  18. "description": "应用的AppID",
  19. "label": "AppID",
  20. "componentForEdit": {
  21. "name": "uni-easyinput",
  22. "props": {
  23. "disabled": true
  24. }
  25. }
  26. },
  27. "name": {
  28. "bsonType": "string",
  29. "trim": "both",
  30. "description": "应用名称",
  31. "label": "应用名称",
  32. "componentForEdit": {
  33. "name": "uni-easyinput",
  34. "props": {
  35. "disabled": true
  36. }
  37. }
  38. },
  39. "icon_url": {
  40. "bsonType": "string",
  41. "trim": "both",
  42. "description": "应用图标链接",
  43. "label": "应用图标"
  44. },
  45. "introduction": {
  46. "bsonType": "string",
  47. "trim": "both",
  48. "description": "应用简介",
  49. "label": "应用简介",
  50. "componentForEdit": {
  51. "name": "uni-easyinput",
  52. "props": {
  53. "disabled": true
  54. }
  55. }
  56. },
  57. "description": {
  58. "bsonType": "string",
  59. "description": "应用描述",
  60. "label": "应用描述",
  61. "componentForEdit": {
  62. "name": "textarea"
  63. },
  64. "componentForShow": {
  65. "name": "textarea",
  66. "props": {
  67. ":disabled": true
  68. }
  69. }
  70. },
  71. "screenshot": {
  72. "bsonType": "array",
  73. "description": "应用截图",
  74. "label": "应用截图"
  75. },
  76. "app_android": {
  77. "bsonType": "object",
  78. "description": "安卓 App 相关信息",
  79. "properties": {
  80. "name": {
  81. "bsonType": "string",
  82. "description": "快应用名称",
  83. "label": "快应用名称"
  84. },
  85. "url": {
  86. "bsonType": "string",
  87. "description": "安卓可下载安装包地址",
  88. "label": "安卓下载地址"
  89. }
  90. }
  91. },
  92. "app_ios": {
  93. "bsonType": "object",
  94. "description": "苹果 App 相关信息",
  95. "properties": {
  96. "name": {
  97. "bsonType": "string",
  98. "description": "快应用名称",
  99. "label": "快应用名称"
  100. },
  101. "url": {
  102. "bsonType": "string",
  103. "description": "AppStore 上架地址",
  104. "label": "AppStore 地址"
  105. }
  106. }
  107. },
  108. "mp_weixin": {
  109. "bsonType": "object",
  110. "description": "微信小程序相关信息",
  111. "label": "微信小程序",
  112. "properties": {
  113. "name": {
  114. "bsonType": "string",
  115. "description": "小程序名字"
  116. },
  117. "qrcode_url": {
  118. "bsonType": "string",
  119. "description": "二维码url"
  120. }
  121. }
  122. },
  123. "mp_alipay": {
  124. "bsonType": "object",
  125. "description": "支付宝小程序相关信息",
  126. "label": "支付宝小程序",
  127. "properties": {
  128. "name": {
  129. "bsonType": "string",
  130. "description": "小程序名字"
  131. },
  132. "qrcode_url": {
  133. "bsonType": "string",
  134. "description": "二维码url"
  135. }
  136. }
  137. },
  138. "mp_baidu": {
  139. "bsonType": "object",
  140. "description": "百度小程序相关信息",
  141. "label": "百度小程序",
  142. "properties": {
  143. "name": {
  144. "bsonType": "string",
  145. "description": "小程序名字"
  146. },
  147. "qrcode_url": {
  148. "bsonType": "string",
  149. "description": "二维码url"
  150. }
  151. }
  152. },
  153. "mp_toutiao": {
  154. "bsonType": "object",
  155. "description": "头条小程序相关信息",
  156. "label": "头条小程序",
  157. "properties": {
  158. "name": {
  159. "bsonType": "string",
  160. "description": "小程序名字"
  161. },
  162. "qrcode_url": {
  163. "bsonType": "string",
  164. "description": "二维码url"
  165. }
  166. }
  167. },
  168. "mp_qq": {
  169. "bsonType": "object",
  170. "description": "QQ小程序相关信息",
  171. "label": "QQ小程序",
  172. "properties": {
  173. "name": {
  174. "bsonType": "string",
  175. "description": "小程序名字"
  176. },
  177. "qrcode_url": {
  178. "bsonType": "string",
  179. "description": "二维码url"
  180. }
  181. }
  182. },
  183. "mp_lark": {
  184. "bsonType": "object",
  185. "description": "飞书小程序相关信息",
  186. "label": "飞书小程序",
  187. "properties": {
  188. "name": {
  189. "bsonType": "string",
  190. "description": "小程序名字"
  191. },
  192. "qrcode_url": {
  193. "bsonType": "string",
  194. "description": "二维码url"
  195. }
  196. }
  197. },
  198. "mp_kuaishou": {
  199. "bsonType": "object",
  200. "description": "快手小程序相关信息",
  201. "label": "快手小程序",
  202. "properties": {
  203. "name": {
  204. "bsonType": "string",
  205. "description": "小程序名字"
  206. },
  207. "qrcode_url": {
  208. "bsonType": "string",
  209. "description": "二维码url"
  210. }
  211. }
  212. },
  213. "h5": {
  214. "bsonType": "object",
  215. "properties": {
  216. "url": {
  217. "bsonType": "string",
  218. "description": "H5 可访问链接"
  219. }
  220. }
  221. },
  222. "quickapp": {
  223. "bsonType": "object",
  224. "properties": {
  225. "name": {
  226. "bsonType": "string",
  227. "description": "快应用名称",
  228. "label": "快应用名称"
  229. },
  230. "qrcode_url": {
  231. "bsonType": "string",
  232. "description": "快应用二维码url"
  233. }
  234. }
  235. },
  236. "create_date": {
  237. "bsonType": "timestamp",
  238. "label": "发行时间",
  239. "forceDefaultValue": {
  240. "$env": "now"
  241. },
  242. "componentForEdit": {
  243. "name": "uni-dateformat"
  244. }
  245. }
  246. }
  247. }