chore: uni-id-roles add title

This commit is contained in:
wangyaqi 2020-10-26 19:54:40 +08:00
parent 9352f77ca1
commit 6be766bcb2

View File

@ -2,32 +2,38 @@
"schema": { "schema": {
"bsonType": "object", "bsonType": "object",
"required": [ "required": [
"role_id", "role_id"
"permission"
], ],
"properties": { "properties": {
"_id": { "_id": {
"description": "存储文档 ID系统自动生成" "description": "存储文档 ID系统自动生成"
}, },
"role_id": { "role_id": {
"title": "唯一ID",
"bsonType": "string", "bsonType": "string",
"description": "角色唯一标识,不可修改,不允许重复" "description": "角色唯一标识,不可修改,不允许重复"
}, },
"role_name": { "role_name": {
"title": "名称",
"bsonType": "string", "bsonType": "string",
"description": "角色名称" "description": "角色名称"
}, },
"permission": { "permission": {
"title": "权限",
"bsonType": "array", "bsonType": "array",
"description": "角色拥有的权限列表" "description": "角色拥有的权限列表"
}, },
"comment": { "comment": {
"title": "备注",
"bsonType": "string", "bsonType": "string",
"description": "备注" "description": "备注"
}, },
"create_date": { "create_date": {
"bsonType": "timestamp", "bsonType": "timestamp",
"description": "创建时间" "description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
} }
} }
}, },