Merge remote-tracking branch 'origin/conding' into conding
This commit is contained in:
@@ -41,7 +41,7 @@ class StudentResponse(BaseModel):
|
||||
progress:int
|
||||
|
||||
@field_serializer('progress')
|
||||
def int_to_string(cls,progress:int):
|
||||
def int_to_string(self,progress:int):
|
||||
d1 ={
|
||||
0:'学习中',
|
||||
1:'求职中',
|
||||
@@ -69,7 +69,7 @@ class StugetResponse(BaseModel):
|
||||
progress: int = 0
|
||||
|
||||
@field_serializer('progress')
|
||||
def int_to_string(cls, progress: int):
|
||||
def int_to_string(self, progress: int):
|
||||
d1 = {
|
||||
0: '学习中',
|
||||
1: '求职中',
|
||||
|
||||
Reference in New Issue
Block a user