Initial commit

This commit is contained in:
ZLI263
2025-11-23 11:20:51 +08:00
commit 355e056ae7
1025 changed files with 123077 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
{
"bsonType": "object",
"required": ["name", "menu_id"],
"permission": {
"read": true,
"create": "'CREATE_OPENDB_ADMIN_MENUS' in auth.permission",
"update": "'UPDATE_OPENDB_ADMIN_MENUS' in auth.permission",
"delete": "'DELETE_OPENDB_ADMIN_MENUS' in auth.permission"
},
"properties": {
"_id": {
"description": "存储文档 ID系统自动生成"
},
"menu_id": {
"bsonType": "string",
"description": "菜单项的ID不可重复",
"trim": "both"
},
"name": {
"bsonType": "string",
"description": "菜单名称",
"trim": "both"
},
"icon": {
"bsonType": "string",
"description": "菜单图标",
"trim": "both"
},
"url": {
"bsonType": "string",
"description": "菜单url",
"trim": "both"
},
"sort": {
"bsonType": "int",
"description": "菜单序号(越大越靠后)"
},
"parent_id": {
"bsonType": "string",
"description": "父级菜单Id",
"parentKey": "menu_id"
},
"permission": {
"bsonType": "array",
"description": "菜单权限列表"
},
"enable": {
"bsonType": "bool",
"description": "是否启用菜单true启用、false禁用"
},
"create_date": {
"bsonType": "timestamp",
"description": "菜单创建时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
}