feat(核心配置): 迁移BaseSettings至pydantic-settings并新增APP_MODE配置
refactor(角色权限): 新增角色等级映射与版别校验模块 feat(用户认证): 在JWT令牌中增加角色等级与版别信息 feat(仪表盘): 实现基于角色等级与版别的动态视图返回 docs(模型注释): 完善用户模型字段说明并兼容Pydantic v2 本次提交主要包含以下改进: 1. 将BaseSettings从pydantic迁移至pydantic-settings包 2. 新增APP_MODE配置项支持教育版/企业版隔离 3. 创建角色权限中心化定义模块 4. 增强JWT令牌携带用户权限信息 5. 实现仪表盘接口的动态内容返回 6. 优化用户模型字段注释和类型提示
Showing
.venv/bin/email_validator
0 → 100755
This diff is collapsed.
File added
File added
File added
File added
File added
File added
File added
File added
This diff is collapsed.
File added
File added
File added
File added
File added
This diff is collapsed.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
File added
No preview for this file type
app/api/v1/dashboard.py
0 → 100644
No preview for this file type
File added
No preview for this file type
app/models/role.py
0 → 100644
No preview for this file type
No preview for this file type
| fastapi==0.104.1 | ||
| uvicorn==0.23.2 | ||
| pydantic==2.4.2 | ||
| pydantic-settings==2.0.3 | ||
| pymongo==4.6.0 | ||
| motor==3.3.1 | ||
| python-jose==3.3.0 | ||
| ... | ... |
Please register or sign in to comment