2020-07-31 18:34:27 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
2020-10-26 15:37:29 +08:00
|
|
|
|
"required": ["name"],
|
2020-10-27 17:19:55 +08:00
|
|
|
|
"permission": {
|
2020-10-28 20:21:38 +08:00
|
|
|
|
"read": true,
|
|
|
|
|
"create": false,
|
|
|
|
|
"update": false,
|
|
|
|
|
"delete": false
|
2020-10-27 17:19:55 +08:00
|
|
|
|
},
|
2020-07-31 18:34:27 +08:00
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "存储文档 ID(文章 ID),系统自动生成"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"bsonType": "string",
|
2020-10-26 15:37:29 +08:00
|
|
|
|
"description": "类别名称",
|
|
|
|
|
"label": "名称"
|
2020-07-31 18:34:27 +08:00
|
|
|
|
},
|
|
|
|
|
"description": {
|
|
|
|
|
"bsonType": "string",
|
2020-10-26 15:37:29 +08:00
|
|
|
|
"description": "类别描述",
|
|
|
|
|
"label": "描述"
|
2020-07-31 18:34:27 +08:00
|
|
|
|
},
|
|
|
|
|
"icon": {
|
|
|
|
|
"bsonType": "string",
|
2020-10-26 15:37:29 +08:00
|
|
|
|
"description": "类别图标地址",
|
|
|
|
|
"label": "图标地址",
|
|
|
|
|
"pattern": "^(http://|https://|/|./|@/)\\S"
|
2020-07-31 18:34:27 +08:00
|
|
|
|
},
|
|
|
|
|
"sort": {
|
|
|
|
|
"bsonType": "int",
|
2020-10-26 15:37:29 +08:00
|
|
|
|
"description": "类别显示顺序",
|
|
|
|
|
"label": "排序"
|
2020-07-31 18:34:27 +08:00
|
|
|
|
},
|
|
|
|
|
"article_count": {
|
|
|
|
|
"bsonType": "int",
|
|
|
|
|
"description": "该类别下文章数量"
|
|
|
|
|
},
|
|
|
|
|
"create_date": {
|
|
|
|
|
"bsonType": "timestamp",
|
2020-10-27 17:19:55 +08:00
|
|
|
|
"description": "创建时间",
|
|
|
|
|
"defaultValue": {
|
|
|
|
|
"$env": "now"
|
|
|
|
|
}
|
2020-07-31 18:34:27 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data": [],
|
|
|
|
|
"index": []
|
|
|
|
|
}
|