跨域bug修复2

This commit is contained in:
2026-04-14 15:56:57 +08:00
parent 74053bdbdc
commit fd3535f884
14 changed files with 65 additions and 65 deletions

View File

@@ -52,7 +52,6 @@ class AddAdminRequest(BaseModel):
real_name: str = Field(..., min_length=1, max_length=50, description="真实姓名")
password: Optional[str] = Field(None, description="密码(不填则自动生成)")
role_type: str = Field(..., description="角色类型")
class_id: int = Field(..., description="班级ID")
subject_id: Optional[int] = Field(None, description="科目ID科代表需要")

View File

@@ -19,8 +19,6 @@ class StudentInfo(BaseModel):
student_id: int
student_no: str
name: str
class_id: int
class_name: Optional[str] = None
total_points: int
parent_phone: Optional[str] = None
status: int
@@ -74,6 +72,5 @@ class StudentRanking(BaseModel):
student_id: int
student_no: str
name: str
class_name: str
total_points: int
rank_in_class: int