2020-09-23 20:58:34 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
|
|
|
|
"required": [
|
2020-10-21 18:00:23 +08:00
|
|
|
|
"permission_id",
|
|
|
|
|
"permission_name"
|
2020-09-23 20:58:34 +08:00
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "存储文档 ID,系统自动生成"
|
|
|
|
|
},
|
2020-10-12 17:29:20 +08:00
|
|
|
|
"permission_id": {
|
2020-09-23 20:58:34 +08:00
|
|
|
|
"bsonType": "string",
|
2020-10-21 18:00:23 +08:00
|
|
|
|
"description": "权限唯一标识,不可修改,不允许重复",
|
|
|
|
|
"label": "权限标识",
|
|
|
|
|
"component": {
|
|
|
|
|
"name": "input"
|
|
|
|
|
}
|
2020-09-23 20:58:34 +08:00
|
|
|
|
},
|
2020-10-12 17:29:20 +08:00
|
|
|
|
"permission_name": {
|
2020-09-23 20:58:34 +08:00
|
|
|
|
"bsonType": "string",
|
2020-10-21 18:00:23 +08:00
|
|
|
|
"description": "权限名称",
|
|
|
|
|
"label": "权限名称",
|
|
|
|
|
"component": {
|
|
|
|
|
"name": "input"
|
|
|
|
|
}
|
2020-09-23 20:58:34 +08:00
|
|
|
|
},
|
|
|
|
|
"comment": {
|
|
|
|
|
"bsonType": "string",
|
2020-10-21 18:00:23 +08:00
|
|
|
|
"description": "备注",
|
|
|
|
|
"label": "备注",
|
|
|
|
|
"component": {
|
|
|
|
|
"name": "textarea"
|
|
|
|
|
}
|
2020-09-23 20:58:34 +08:00
|
|
|
|
},
|
|
|
|
|
"create_date": {
|
|
|
|
|
"bsonType": "timestamp",
|
2020-10-21 18:00:23 +08:00
|
|
|
|
"description": "创建时间",
|
|
|
|
|
"forceDefaultValue": {
|
|
|
|
|
"$env": "now"
|
|
|
|
|
}
|
2020-09-23 20:58:34 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-10-21 18:00:23 +08:00
|
|
|
|
"index": [{
|
|
|
|
|
"IndexName": "permission_id",
|
|
|
|
|
"MgoKeySchema": {
|
|
|
|
|
"MgoIndexKeys": [{
|
|
|
|
|
"Name": "permission_id",
|
|
|
|
|
"Direction": "1"
|
|
|
|
|
}],
|
|
|
|
|
"MgoIsUnique": true
|
2020-09-23 20:58:34 +08:00
|
|
|
|
}
|
2020-10-21 18:00:23 +08:00
|
|
|
|
}]
|
|
|
|
|
}
|