chore: uni-id-roles、uni-id-permissions

This commit is contained in:
wangyaqi 2020-10-12 17:29:20 +08:00
parent 2afef8d21e
commit a11e1c8492
3 changed files with 13 additions and 8 deletions

View File

@ -2,24 +2,23 @@
"schema": { "schema": {
"bsonType": "object", "bsonType": "object",
"required": [ "required": [
"role_id", "permission_id"
"permission"
], ],
"properties": { "properties": {
"_id": { "_id": {
"description": "存储文档 ID系统自动生成" "description": "存储文档 ID系统自动生成"
}, },
"role_id": { "permission_id": {
"bsonType": "string", "bsonType": "string",
"description": "角色唯一标识,不可修改,不允许重复" "description": "权限唯一标识,不可修改,不允许重复"
}, },
"role_name": { "permission_name": {
"bsonType": "string", "bsonType": "string",
"description": "角色名称" "description": "权限名称"
}, },
"comment": { "comment": {
"bsonType": "string", "bsonType": "string",
"description": "用户昵称" "description": "备注"
}, },
"create_date": { "create_date": {
"bsonType": "timestamp", "bsonType": "timestamp",

View File

@ -17,9 +17,13 @@
"bsonType": "string", "bsonType": "string",
"description": "角色名称" "description": "角色名称"
}, },
"permission": {
"bsonType": "array",
"description": "角色拥有的权限列表"
},
"comment": { "comment": {
"bsonType": "string", "bsonType": "string",
"description": "用户昵称" "description": "备注"
}, },
"create_date": { "create_date": {
"bsonType": "timestamp", "bsonType": "timestamp",

View File

@ -1,5 +1,7 @@
{ {
"uni-id-users": {}, "uni-id-users": {},
"uni-id-roles": {},
"uni-id-permissions": {},
"uni-id-address": {}, "uni-id-address": {},
"uni-id-device": {}, "uni-id-device": {},
"uni-id-log": {}, "uni-id-log": {},