2020-08-28 15:06:12 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"required": ["bannerfile"],
|
|
|
|
|
"permission": {
|
|
|
|
|
"read": true
|
|
|
|
|
},
|
2020-08-28 15:06:12 +08:00
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "ID,系统自动生成"
|
|
|
|
|
},
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"bannerfile": {
|
2021-01-30 19:49:07 +08:00
|
|
|
|
"bsonType": "file",
|
|
|
|
|
"fileMediaType": "image",
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"title": "图片文件",
|
|
|
|
|
"description": "图片文件信息,包括文件名、url等"
|
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",
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"title": "点击目标地址",
|
|
|
|
|
"format": "url",
|
|
|
|
|
"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",
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"description": "注意标题文字颜色和背景图靠色导致看不清的问题",
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"maxLength": 20,
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"title": "标题",
|
|
|
|
|
"trim": "both"
|
2020-08-28 15:06:12 +08:00
|
|
|
|
},
|
|
|
|
|
"sort": {
|
|
|
|
|
"bsonType": "int",
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"description": "数字越小,排序越前",
|
|
|
|
|
"title": "排序"
|
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都存在一个表里时可用这个字段区分",
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"title": "分类id"
|
2020-08-28 15:06:12 +08:00
|
|
|
|
},
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"status": {
|
|
|
|
|
"bsonType": "bool",
|
|
|
|
|
"defaultValue": true,
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"title": "生效状态"
|
2020-10-24 18:17:56 +08:00
|
|
|
|
},
|
|
|
|
|
"description": {
|
2020-08-28 15:06:12 +08:00
|
|
|
|
"bsonType": "string",
|
2020-10-24 18:17:56 +08:00
|
|
|
|
"description": "维护者自用描述",
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"title": "备注",
|
|
|
|
|
"trim": "both"
|
2020-08-28 15:06:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-02-01 11:49:15 +08:00
|
|
|
|
"index": [{
|
|
|
|
|
"IndexName": "sort_",
|
|
|
|
|
"MgoKeySchema": {
|
|
|
|
|
"MgoIndexKeys": [{
|
|
|
|
|
"Name": "sort",
|
|
|
|
|
"Direction": "1"
|
|
|
|
|
}],
|
|
|
|
|
"MgoIsUnique": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"IndexName": "status_",
|
|
|
|
|
"MgoKeySchema": {
|
|
|
|
|
"MgoIndexKeys": [{
|
|
|
|
|
"Name": "status",
|
|
|
|
|
"Direction": "1"
|
|
|
|
|
}],
|
|
|
|
|
"MgoIsUnique": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"IndexName": "category_id_",
|
|
|
|
|
"MgoKeySchema": {
|
|
|
|
|
"MgoIndexKeys": [{
|
|
|
|
|
"Name": "category_id",
|
|
|
|
|
"Direction": "1"
|
|
|
|
|
}],
|
|
|
|
|
"MgoIsUnique": false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
2020-08-28 15:06:12 +08:00
|
|
|
|
}
|