From c16acba43660c159b4e37aa49318fcd31f7a5b06 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Fri, 19 Mar 2021 20:27:18 +0800 Subject: [PATCH] =?UTF-8?q?add:=20opendb-app-list=E3=80=81opendb-app-versi?= =?UTF-8?q?ons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/opendb-app-list/collection.json | 93 ++++++++++ collection/opendb-app-list/package.json | 17 ++ .../opendb-app-versions/collection.json | 173 ++++++++++++++++++ collection/opendb-app-versions/package.json | 17 ++ 4 files changed, 300 insertions(+) create mode 100644 collection/opendb-app-list/collection.json create mode 100644 collection/opendb-app-list/package.json create mode 100644 collection/opendb-app-versions/collection.json create mode 100644 collection/opendb-app-versions/package.json diff --git a/collection/opendb-app-list/collection.json b/collection/opendb-app-list/collection.json new file mode 100644 index 0000000..07fc3ba --- /dev/null +++ b/collection/opendb-app-list/collection.json @@ -0,0 +1,93 @@ +{ + "schema": { + "bsonType": "object", + "required": [ + "appid", + "name", + "description" + ], + "permission": { + "read": false, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "appid": { + "bsonType": "string", + "description": "应用的AppID", + "label": "AppID", + "componentForEdit": { + "name": "uni-easyinput", + "props": { + "disabled": true + } + } + }, + "name": { + "bsonType": "string", + "description": "应用名称", + "label": "应用名称", + "componentForEdit": { + "name": "uni-easyinput", + "props": { + "disabled": true + } + } + }, + "description": { + "bsonType": "string", + "description": "应用描述", + "label": "应用描述", + "componentForEdit": { + "name": "textarea" + }, + "componentForShow": { + "name": "textarea", + "props": { + "disabled": true + } + } + }, + "create_date": { + "bsonType": "timestamp", + "label": "创建时间", + "forceDefaultValue": { + "$env": "now" + }, + "componentForEdit": { + "name": "uni-dateformat" + } + } + } + }, + "index": [ + { + "IndexName": "appid", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "appid", + "Direction": "1" + } + ], + "MgoIsUnique": true + } + }, + { + "IndexName": "name", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "name", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + } + ] +} \ No newline at end of file diff --git a/collection/opendb-app-list/package.json b/collection/opendb-app-list/package.json new file mode 100644 index 0000000..ad4c2af --- /dev/null +++ b/collection/opendb-app-list/package.json @@ -0,0 +1,17 @@ +{ + "name": "@opendb/opendb-app-list", + "version": "0.0.1", + "description": "opendb-app-list 应用列表", + "keywords": ["应用列表"], + "opendb": { + "title": "应用列表", + "type": "collection", + "contributors": [ + { + "name": "DCloud", + "email": "", + "homepage": "https://gitee.com/dcloud/opendb" + } + ] + } +} diff --git a/collection/opendb-app-versions/collection.json b/collection/opendb-app-versions/collection.json new file mode 100644 index 0000000..f4ea78a --- /dev/null +++ b/collection/opendb-app-versions/collection.json @@ -0,0 +1,173 @@ +{ + "schema": { + "bsonType": "object", + "required": [ + "appid", + "platform", + "version", + "url", + "contents", + "type" + ], + "permission": { + "read": false, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "记录id,自动生成" + }, + "appid": { + "bsonType": "string", + "trim": "both", + "description": "应用的AppID", + "label": "AppID", + "componentForEdit": { + "name": "uni-easyinput", + "props": { + "disabled": true + } + } + }, + "name": { + "bsonType": "string", + "trim": "both", + "description": "应用名称", + "label": "应用名称", + "componentForEdit": { + "name": "uni-easyinput", + "props": { + "disabled": true + } + } + }, + "title": { + "bsonType": "string", + "description": "更新标题", + "label": "更新标题" + }, + "contents": { + "bsonType": "string", + "description": "更新内容", + "label": "更新内容", + "componentForEdit": { + "name": "textarea" + }, + "componentForShow": { + "name": "textarea", + "props": { + "disabled": true + } + } + }, + "platform": { + "bsonType": "array", + "enum": [ + { + "value": "Android", + "text": "安卓" + }, + { + "value": "iOS", + "text": "苹果" + } + ], + "description": "更新平台,Android || iOS || [Android, iOS]", + "label": "平台" + }, + "type": { + "bsonType": "string", + "enum": [ + { + "value": "native_app", + "text": "原生App安装包" + }, + { + "value": "wgt", + "text": "Wgt资源包" + } + ], + "description": "安装包类型,native_app || wgt", + "label": "安装包类型" + }, + "version": { + "bsonType": "string", + "description": "当前包版本号,必须大于当前线上发行版本号", + "label": "版本号" + }, + "min_uni_version": { + "bsonType": "string", + "description": "原生App最低版本", + "label": "原生App最低版本" + }, + "url": { + "bsonType": "string", + "description": "可下载安装包地址", + "label": "包地址" + }, + "stable_publish": { + "bsonType": "bool", + "description": "是否上线发行", + "label": "上线发行" + }, + "is_silently": { + "bsonType": "bool", + "description": "是否静默更新", + "label": "静默更新", + "defaultValue": false + }, + "is_mandatory": { + "bsonType": "bool", + "description": "是否强制更新", + "label": "强制更新", + "defaultValue": false + }, + "create_date": { + "bsonType": "timestamp", + "label": "上传时间", + "forceDefaultValue": { + "$env": "now" + }, + "componentForEdit": { + "name": "uni-dateformat" + } + } + } + }, + "index": [ + { + "IndexName": "appid", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "appid", + "Direction": "1" + } + ], + "MgoIsUnique": true + } + }, + { + "IndexName": "查找上线发行应用", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "appid", + "Direction": "1" + }, + { + "Name": "platform", + "Direction": "1" + }, + { + "Name": "stable_publish", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + } + ] +} \ No newline at end of file diff --git a/collection/opendb-app-versions/package.json b/collection/opendb-app-versions/package.json new file mode 100644 index 0000000..c4aae77 --- /dev/null +++ b/collection/opendb-app-versions/package.json @@ -0,0 +1,17 @@ +{ + "name": "@opendb/opendb-app-versions", + "version": "0.0.1", + "description": "opendb-app-versions 应用版本列表", + "keywords": ["应用版本列表"], + "opendb": { + "title": "应用版本列表", + "type": "collection", + "contributors": [ + { + "name": "DCloud", + "email": "", + "homepage": "https://gitee.com/dcloud/opendb" + } + ] + } +}