1. 月度分排行:管理端首页支持总分/月度分切换与月份选择,新增排行榜导出CSV 2. 数据报表:新增考勤/作业统计页(日期范围、汇总与每人明细、CSV导出) 3. 操作日志:新增查看页(操作类型/操作人/日期筛选,分页) 4. 系统设置:密码策略可配置(长度/字符种类),全站改密与重置统一校验、前端提示同步;策略通过公开配置下发 5. 学期归档对比:查看归档时展示与上一学期的分数变化与名次升降 6. 历史记录导出支持按学生分表(每人一段,便于发家长) 7. 移动端适配:导航横向滚动、表格触控滚动、字号与弹窗优化 8. 版本升级至4.4(无数据库结构变更)
52 lines
2.0 KiB
Python
52 lines
2.0 KiB
Python
# ===========================================
|
|
# 班级操行分管理系统 - 后端服务
|
|
#
|
|
# 开发者: Canglan
|
|
# 联系方式: admin@sea-studio.top
|
|
# 版权归属: Sea Network Technology Studio
|
|
# 许可证: MIT License
|
|
#
|
|
# 版权所有 © Sea Network Technology Studio
|
|
# ===========================================
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class LoginRequest(BaseModel):
|
|
"""登录请求"""
|
|
username: str = Field(..., min_length=1, max_length=50, description="用户名")
|
|
password: str = Field(..., min_length=1, max_length=50, description="密码")
|
|
|
|
|
|
class ChangePasswordRequest(BaseModel):
|
|
"""修改密码请求"""
|
|
old_password: str = Field(default="", max_length=50, description="原密码")
|
|
new_password: str = Field(..., min_length=1, max_length=100, description="新密码(按系统密码策略校验)")
|
|
force: bool = Field(default=False, description="是否强制修改(首次登录)")
|
|
|
|
|
|
class ForgotPasswordRequest(BaseModel):
|
|
"""忘记密码请求"""
|
|
username: str = Field(..., min_length=1, max_length=50, description="用户名")
|
|
|
|
|
|
class ResetPasswordRequest(BaseModel):
|
|
"""通过邮件令牌重置密码请求"""
|
|
token: str = Field(..., min_length=10, max_length=200, description="重置令牌")
|
|
new_password: str = Field(..., min_length=1, max_length=100, description="新密码(按系统密码策略校验)")
|
|
|
|
|
|
class SendEmailCodeRequest(BaseModel):
|
|
"""发送邮箱绑定验证码请求"""
|
|
email: str = Field(..., min_length=3, max_length=100, description="待绑定的邮箱")
|
|
|
|
|
|
class ConfirmBindEmailRequest(BaseModel):
|
|
"""确认绑定邮箱请求"""
|
|
email: str = Field(..., min_length=3, max_length=100, description="待绑定的邮箱")
|
|
code: str = Field(..., min_length=4, max_length=10, description="邮箱验证码")
|
|
|
|
|
|
class UnbindEmailRequest(BaseModel):
|
|
"""解除绑定邮箱请求"""
|
|
password: str = Field(..., min_length=1, max_length=50, description="当前密码") |