Files
FastapiAdmin/backend/app/scripts/data/system_dept.json
T
zhangtao c0d32a7eec refactor: 统一将creator_id重命名为created_id并优化模型关系
feat: 新增系统租户和用户初始化数据

style: 优化代码注释和格式

fix: 修复数据权限检查逻辑中的created_id字段判断

perf: 移除不必要的模型关系以提升性能

docs: 更新初始化数据的描述信息

chore: 清理废弃文件和冗余代码
2025-11-24 01:02:27 +08:00

57 lines
1.4 KiB
JSON

[
{
"name": "集团总公司",
"code": "GROUP",
"order": 1,
"status": true,
"parent_id": null,
"leader": "超级管理员",
"phone": "13800138000",
"email": "admin@example.com",
"description": "集团总公司",
"tenant_id": 1,
"children": [
{
"name": "北京分公司",
"code": "BJ",
"order": 1,
"status": true,
"parent_id": null,
"leader": "分公司经理",
"phone": "13900139000",
"email": "manager@example.com",
"description": "北京分公司",
"tenant_id": 1,
"children": [
{
"name": "软件部",
"code": "TECH",
"order": 1,
"status": true,
"parent_id": null,
"leader": "技术总监",
"phone": "13700137000",
"email": "tech@example.com",
"description": "软件部",
"tenant_id": 1,
"children": [
{
"name": "开发组",
"code": "DEV",
"order": 1,
"status": true,
"parent_id": null,
"leader": "开发主管",
"phone": "13600136000",
"email": "dev@example.com",
"description": "开发组",
"tenant_id": 1
}
]
}
]
}
]
}
]