跨域bug修复2
This commit is contained in:
@@ -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(科代表需要)")
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user