add collection opendb-banner

This commit is contained in:
handongxun 2020-08-28 15:06:12 +08:00
parent 61bd91ab32
commit 618f7e78a1
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{
"schema": {
"bsonType": "object",
"required": ["category_id", "image_url"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"category_id": {
"bsonType": "string",
"description": "分类"
},
"title": {
"bsonType": "string",
"description": "标题"
},
"description": {
"bsonType": "string",
"description": "描述"
},
"image_url": {
"bsonType": "string",
"description": "图片url"
},
"sort": {
"bsonType": "int",
"description": "排序"
},
"status": {
"bsonType": "int",
"minimum": 0,
"maximum": 1,
"description": "状态: 0 禁用1 正常"
},
"open_type": {
"bsonType": "string",
"description": "点击动作"
},
"open_url": {
"bsonType": "string",
"description": "点击跳转目标"
}
}
},
"index": []
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/opendb-banner",
"version": "0.0.1",
"description": "opendb-banner",
"keywords": ["banner"],
"opendb": {
"title": "Banner",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}