第四版_完整

This commit is contained in:
jianqi
2026-09-14 15:23:26 +08:00
parent 06c329fdd1
commit c2909191d2
14 changed files with 84 additions and 64 deletions
+1 -6
View File
@@ -5,15 +5,10 @@ from typing import Optional, List
# ---------- 请求模型 ----------
class StatsScoreRequest(BaseModel):
choose: int = Field(..., ge=0, le=3)
email: EmailStr
full_name: Optional[str] = Field(None, max_length=100)
# ---------- 响应模型 ----------
# 多维度班级统计
class StatsResponse(BaseModel):
class ClassGenderDistributionItem(BaseModel):
cls_id: str
total_cnt: int
man_cnt: int