opendb-app-versions.schema.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. // 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
  2. {
  3. "bsonType": "object",
  4. "required": [
  5. "appid",
  6. "uni_platform",
  7. "version",
  8. "type",
  9. "create_env"
  10. ],
  11. "permission": {
  12. "read": "'READ_OPENDB_APP_VERSIONS' in auth.permission",
  13. "create": "'CREATE_OPENDB_APP_VERSIONS' in auth.permission",
  14. "update": "'UPDATE_OPENDB_APP_VERSIONS' in auth.permission",
  15. "delete": "'DELETE_OPENDB_APP_VERSIONS' in auth.permission"
  16. },
  17. "properties": {
  18. "_id": {
  19. "description": "记录id,自动生成"
  20. },
  21. "appid": {
  22. "bsonType": "string",
  23. "trim": "both",
  24. "description": "应用的AppID",
  25. "label": "AppID",
  26. "componentForEdit": {
  27. "name": "uni-easyinput",
  28. "props": {
  29. "disabled": true
  30. }
  31. }
  32. },
  33. "name": {
  34. "bsonType": "string",
  35. "trim": "both",
  36. "description": "应用名称",
  37. "label": "应用名称",
  38. "componentForEdit": {
  39. "name": "uni-easyinput",
  40. "props": {
  41. "disabled": true
  42. }
  43. }
  44. },
  45. "title": {
  46. "bsonType": "string",
  47. "description": "更新标题",
  48. "label": "更新标题"
  49. },
  50. "contents": {
  51. "bsonType": "string",
  52. "description": "更新内容",
  53. "label": "更新内容",
  54. "componentForEdit": {
  55. "name": "textarea"
  56. },
  57. "componentForShow": {
  58. "name": "textarea",
  59. "props": {
  60. "disabled": true
  61. }
  62. }
  63. },
  64. "platform": {
  65. "bsonType": "array",
  66. "enum": [
  67. {
  68. "value": "Android",
  69. "text": "安卓"
  70. },
  71. {
  72. "value": "iOS",
  73. "text": "苹果"
  74. }
  75. ],
  76. "description": "更新平台,Android || iOS || [Android, iOS]",
  77. "label": "平台"
  78. },
  79. "type": {
  80. "bsonType": "string",
  81. "enum": [
  82. {
  83. "value": "native_app",
  84. "text": "原生App安装包"
  85. },
  86. {
  87. "value": "wgt",
  88. "text": "Wgt资源包"
  89. }
  90. ],
  91. "description": "安装包类型,native_app || wgt",
  92. "label": "安装包类型"
  93. },
  94. "version": {
  95. "bsonType": "string",
  96. "description": "当前包版本号,必须大于当前线上发行版本号",
  97. "label": "版本号"
  98. },
  99. "min_uni_version": {
  100. "bsonType": "string",
  101. "description": "原生App最低版本",
  102. "label": "原生App最低版本"
  103. },
  104. "url": {
  105. "bsonType": "string",
  106. "description": "可下载或跳转的链接",
  107. "label": "链接"
  108. },
  109. "stable_publish": {
  110. "bsonType": "bool",
  111. "description": "是否上线发行",
  112. "label": "上线发行"
  113. },
  114. "is_silently": {
  115. "bsonType": "bool",
  116. "description": "是否静默更新",
  117. "label": "静默更新",
  118. "defaultValue": false
  119. },
  120. "is_mandatory": {
  121. "bsonType": "bool",
  122. "description": "是否强制更新",
  123. "label": "强制更新",
  124. "defaultValue": false
  125. },
  126. "create_date": {
  127. "bsonType": "timestamp",
  128. "label": "上传时间",
  129. "forceDefaultValue": {
  130. "$env": "now"
  131. },
  132. "componentForEdit": {
  133. "name": "uni-dateformat"
  134. }
  135. },
  136. "uni_platform": {
  137. "bsonType": "string",
  138. "description": "uni平台信息,如:mp-weixin/web/ios/android",
  139. "label": "uni 平台"
  140. },
  141. "create_env": {
  142. "bsonType": "string",
  143. "description": "创建来源,uni-stat:uni统计自动创建,upgrade-center:升级中心管理员创建"
  144. },
  145. "store_list": {
  146. "bsonType": "array",
  147. "description": "发布的应用市场",
  148. "label": "应用市场",
  149. "properties": {
  150. "id": {
  151. "bsonType": "string",
  152. "description": "应用id,自动生成",
  153. "label": "id"
  154. },
  155. "name": {
  156. "bsonType": "string",
  157. "description": "应用名称",
  158. "label": "应用名称"
  159. },
  160. "scheme": {
  161. "bsonType": "string",
  162. "description": "应用 scheme",
  163. "label": "应用 scheme"
  164. },
  165. "enable": {
  166. "bsonType": "bool",
  167. "description": "是否启用"
  168. },
  169. "priority": {
  170. "bsonType": "int",
  171. "description": "按照从大到小排序",
  172. "label": "优先级"
  173. }
  174. }
  175. }
  176. },
  177. "version": "0.0.1"
  178. }