mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-01 16:21:20 +00:00
refactor: 清理冗余代码与初始化数据,优化配置与调度器
本次提交包含多项优化和清理工作: 1. 新增订单类型枚举BUY,调整定时任务状态显示逻辑 2. 优化Redis连接配置,重构认证逻辑减少重复代码 3. 移除大量初始化演示数据、过期的租户与角色配置 4. 简化调度器状态存储,不再写入配置表而是内存缓存 5. 修复插件开关状态存储逻辑,调整字典数据标签与值 6. 优化WebSocket聊天处理,完善错误处理流程 7. 清理冗余导入与废弃的操作日志过滤逻辑
This commit is contained in:
@@ -63,89 +63,25 @@
|
||||
"updated_id": null
|
||||
},
|
||||
{
|
||||
"tenant_id": 1,
|
||||
"username": "product",
|
||||
"password": "$pbkdf2-sha256$600000$XX20aO1v73xS0JnoewXNtw==$PEaVHV1N5L7PfYQw2lCAQOc4hAEyCiwsGR48/jgVBjU=",
|
||||
"name": "产品经理",
|
||||
"mobile": "13800138003",
|
||||
"email": "product@example.com",
|
||||
"gender": "1",
|
||||
"avatar": "https://service.fastapiadmin.com/api/v1/static/image/avatar.png",
|
||||
"is_superuser": false,
|
||||
"last_login": null,
|
||||
"gitee_login": null,
|
||||
"github_login": null,
|
||||
"wx_login": null,
|
||||
"qq_login": null,
|
||||
"dept_id": 5,
|
||||
"status": 0,
|
||||
"description": "产品经理",
|
||||
"created_id": 1,
|
||||
"updated_id": null
|
||||
},
|
||||
{
|
||||
"tenant_id": 1,
|
||||
"username": "hr",
|
||||
"password": "$pbkdf2-sha256$600000$XX20aO1v73xS0JnoewXNtw==$PEaVHV1N5L7PfYQw2lCAQOc4hAEyCiwsGR48/jgVBjU=",
|
||||
"name": "HR专员",
|
||||
"mobile": "13800138004",
|
||||
"email": "hr@example.com",
|
||||
"gender": "1",
|
||||
"avatar": "https://service.fastapiadmin.com/api/v1/static/image/avatar.png",
|
||||
"is_superuser": false,
|
||||
"last_login": null,
|
||||
"gitee_login": null,
|
||||
"github_login": null,
|
||||
"wx_login": null,
|
||||
"qq_login": null,
|
||||
"dept_id": 6,
|
||||
"status": 0,
|
||||
"description": "人力资源专员",
|
||||
"created_id": 1,
|
||||
"updated_id": null
|
||||
},
|
||||
{
|
||||
"tenant_id": 3,
|
||||
"username": "zhang_admin",
|
||||
"tenant_id": 2,
|
||||
"username": "test_admin",
|
||||
"password": "$pbkdf2-sha256$600000$E8jfd18sWu7N9DWsx/nYKg==$9DNKCv+dm1QDvYXwpQlZH6e7trYp1WCPdsvSyzXwuo0=",
|
||||
"name": "张明",
|
||||
"mobile": "13800001001",
|
||||
"email": "zhang@star-tech.dev",
|
||||
"name": "测试管理员",
|
||||
"mobile": "13800138001",
|
||||
"email": "test@fastapiadmin.com",
|
||||
"status": 0,
|
||||
"is_superuser": false,
|
||||
"description": "星辰科技管理员"
|
||||
"description": "测试租户管理员"
|
||||
},
|
||||
{
|
||||
"tenant_id": 3,
|
||||
"username": "wang_dev",
|
||||
"tenant_id": 2,
|
||||
"username": "test_user",
|
||||
"password": "$pbkdf2-sha256$600000$E8jfd18sWu7N9DWsx/nYKg==$9DNKCv+dm1QDvYXwpQlZH6e7trYp1WCPdsvSyzXwuo0=",
|
||||
"name": "王华",
|
||||
"mobile": "13800001002",
|
||||
"email": "wang@star-tech.dev",
|
||||
"name": "测试用户",
|
||||
"mobile": "13800138002",
|
||||
"email": "test2@fastapiadmin.com",
|
||||
"status": 0,
|
||||
"is_superuser": false,
|
||||
"description": "星辰科技研发工程师"
|
||||
},
|
||||
{
|
||||
"tenant_id": 4,
|
||||
"username": "li_admin",
|
||||
"password": "$pbkdf2-sha256$600000$E8jfd18sWu7N9DWsx/nYKg==$9DNKCv+dm1QDvYXwpQlZH6e7trYp1WCPdsvSyzXwuo0=",
|
||||
"name": "李芳",
|
||||
"mobile": "13800002001",
|
||||
"email": "li@inno.work",
|
||||
"status": 0,
|
||||
"is_superuser": false,
|
||||
"description": "创新工坊创始人"
|
||||
},
|
||||
{
|
||||
"tenant_id": 4,
|
||||
"username": "zhao_eng",
|
||||
"password": "$pbkdf2-sha256$600000$E8jfd18sWu7N9DWsx/nYKg==$9DNKCv+dm1QDvYXwpQlZH6e7trYp1WCPdsvSyzXwuo0=",
|
||||
"name": "赵强",
|
||||
"mobile": "13800002002",
|
||||
"email": "zhao@inno.work",
|
||||
"status": 0,
|
||||
"is_superuser": false,
|
||||
"description": "创新工坊技术合伙人"
|
||||
"description": "测试租户普通用户"
|
||||
}
|
||||
]
|
||||
]
|
||||
Reference in New Issue
Block a user