mrz
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from fastapi import APIRouter,Depends,Query
|
||||
from dao.statistics_dao import *
|
||||
from schema.statistics_schema import *
|
||||
from schema.student_schema import *
|
||||
from util.database import get_db
|
||||
|
||||
StatisticsAPI = APIRouter(tags=['统计分析模块'])
|
||||
|
||||
@@ -40,7 +40,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:'求职中',
|
||||
|
||||
Reference in New Issue
Block a user