2020-08-28 15:06:12 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"required": [
|
|
|
|
|
"image_url"
|
|
|
|
|
],
|
2020-08-28 15:06:12 +08:00
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "ID,系统自动生成"
|
|
|
|
|
},
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"image_url": {
|
2020-08-28 15:06:12 +08:00
|
|
|
|
"bsonType": "string",
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"description": "图片url。可以是在线地址,也支持本地地址",
|
2020-12-23 20:20:34 +08:00
|
|
|
|
"label": "图片url",
|
|
|
|
|
"trim":"both"
|
2020-08-28 15:06:12 +08:00
|
|
|
|
},
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"open_url": {
|
2020-08-28 15:06:12 +08:00
|
|
|
|
"bsonType": "string",
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"description": "点击跳转目标地址。如果是web地址则使用内置web-view打开;如果是本地页面则跳转本地页面;如果是schema地址则打开本地的app",
|
|
|
|
|
"label": "点击目标地址",
|
2020-12-23 20:20:34 +08:00
|
|
|
|
"pattern": "^(http://|https://|/|./|@/)\\S",
|
|
|
|
|
"trim":"both"
|
2020-08-28 15:06:12 +08:00
|
|
|
|
},
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"title": {
|
2020-08-28 15:06:12 +08:00
|
|
|
|
"bsonType": "string",
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"description": "标题。为避免背景图和前景文字靠色导致看不清,建议使用把标题作为图片的一部分来处理。如可以保证不靠色,则可以使用本字段,或者额外扩展title_color、title_bgcolor等字段",
|
|
|
|
|
"maxLength": 20,
|
2020-12-23 20:20:34 +08:00
|
|
|
|
"label": "标题",
|
|
|
|
|
"trim":"both"
|
2020-08-28 15:06:12 +08:00
|
|
|
|
},
|
|
|
|
|
"sort": {
|
|
|
|
|
"bsonType": "int",
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"description": "排序",
|
|
|
|
|
"label": "排序"
|
2020-08-28 15:06:12 +08:00
|
|
|
|
},
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"category_id": {
|
2020-08-28 15:06:12 +08:00
|
|
|
|
"bsonType": "string",
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"description": "多个栏目的banner都存在一个表里时可用这个字段区分",
|
|
|
|
|
"label": "分类id"
|
2020-08-28 15:06:12 +08:00
|
|
|
|
},
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"status": {
|
|
|
|
|
"bsonType": "bool",
|
|
|
|
|
"description": "状态: false 禁用,true 正常",
|
|
|
|
|
"defaultValue": true,
|
|
|
|
|
"label": "状态"
|
|
|
|
|
},
|
|
|
|
|
"description": {
|
2020-08-28 15:06:12 +08:00
|
|
|
|
"bsonType": "string",
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"description": "维护者自用描述",
|
2020-12-23 20:20:34 +08:00
|
|
|
|
"label": "备注",
|
|
|
|
|
"trim":"both"
|
2020-08-28 15:06:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"index": []
|
|
|
|
|
}
|