opendb/collection/opendb-banner/collection.json
2020-12-23 20:20:34 +08:00

57 lines
1.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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