opendb-app-versions.schema.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. // 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
  2. {
  3. "bsonType": "object",
  4. "required": ["appid", "platform", "version", "url", "contents", "type"],
  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. "title": {
  40. "bsonType": "string",
  41. "description": "更新标题",
  42. "label": "更新标题"
  43. },
  44. "contents": {
  45. "bsonType": "string",
  46. "description": "更新内容",
  47. "label": "更新内容",
  48. "componentForEdit": {
  49. "name": "textarea"
  50. },
  51. "componentForShow": {
  52. "name": "textarea",
  53. "props": {
  54. "disabled": true
  55. }
  56. }
  57. },
  58. "platform": {
  59. "bsonType": "array",
  60. "enum": [{
  61. "value": "Android",
  62. "text": "安卓"
  63. }, {
  64. "value": "iOS",
  65. "text": "苹果"
  66. }],
  67. "description": "更新平台,Android || iOS || [Android, iOS]",
  68. "label": "平台"
  69. },
  70. "type": {
  71. "bsonType": "string",
  72. "enum": [{
  73. "value": "native_app",
  74. "text": "原生App安装包"
  75. }, {
  76. "value": "wgt",
  77. "text": "Wgt资源包"
  78. }],
  79. "description": "安装包类型,native_app || wgt",
  80. "label": "安装包类型"
  81. },
  82. "version": {
  83. "bsonType": "string",
  84. "description": "当前包版本号,必须大于当前线上发行版本号",
  85. "label": "版本号"
  86. },
  87. "min_uni_version": {
  88. "bsonType": "string",
  89. "description": "原生App最低版本",
  90. "label": "原生App最低版本"
  91. },
  92. "url": {
  93. "bsonType": "string",
  94. "description": "可下载安装包地址",
  95. "label": "包地址"
  96. },
  97. "stable_publish": {
  98. "bsonType": "bool",
  99. "description": "是否上线发行",
  100. "label": "上线发行"
  101. },
  102. "is_silently": {
  103. "bsonType": "bool",
  104. "description": "是否静默更新",
  105. "label": "静默更新",
  106. "defaultValue": false
  107. },
  108. "is_mandatory": {
  109. "bsonType": "bool",
  110. "description": "是否强制更新",
  111. "label": "强制更新",
  112. "defaultValue": false
  113. },
  114. "create_date": {
  115. "bsonType": "timestamp",
  116. "label": "上传时间",
  117. "forceDefaultValue": {
  118. "$env": "now"
  119. },
  120. "componentForEdit": {
  121. "name": "uni-dateformat"
  122. }
  123. }
  124. }
  125. }