update: opendb-app-publish

This commit is contained in:
DCloud_LXH 2022-03-07 11:51:20 +08:00
parent 5ecc606f8f
commit d08073fbd8

View File

@ -3,12 +3,10 @@
"bsonType": "object", "bsonType": "object",
"required": [ "required": [
"appid", "appid",
"name", "name"
"alias",
"status"
], ],
"permission": { "permission": {
"read": true, "read": false,
"create": false, "create": false,
"update": false, "update": false,
"delete": false "delete": false
@ -59,18 +57,6 @@
} }
} }
}, },
"alias": {
"bsonType": "string",
"trim": "both",
"description": "英文,唯一。用于 url 发布页链接到对应 app 的映射关系",
"label": "应用别名",
"componentForEdit": {
"name": "uni-easyinput",
"props": {
"disabled": true
}
}
},
"description": { "description": {
"bsonType": "string", "bsonType": "string",
"description": "应用描述", "description": "应用描述",
@ -85,22 +71,6 @@
} }
} }
}, },
"status": {
"bsonType": "int",
"description": "是否已发行0 下架 1 发行",
"label": "应用发行",
"defaultValue": 0,
"enum": [
{
"value": 0,
"text": "下架"
},
{
"value": 1,
"text": "发行"
}
]
},
"screenshot": { "screenshot": {
"bsonType": "array", "bsonType": "array",
"description": "应用截图", "description": "应用截图",
@ -278,5 +248,30 @@
} }
} }
}, },
"index":[] "index": [
{
"IndexName": "appid",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "appid",
"Direction": "1"
}
],
"MgoIsUnique": true
}
},
{
"IndexName": "name",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "name",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
} }