sun-pc-linux 8 сар өмнө
parent
commit
a060e9e94f

+ 1 - 1
src/db/model/examHistory.go

@@ -11,7 +11,7 @@ type ExamHistory struct {
 	UserId string             `bson:"userId,omitempty" json:"userId"`
 	// $title:正确/错误
 	ExamRecord []*Record `bson:"examRecord,omitempty" json:"examRecord"`
-	TotalScore float64   `bson:"totalScore,omitempty" json:"totalScore"`
+	TotalScore int       `bson:"totalScore,omitempty" json:"totalScore"`
 	Correct    int       `bson:"correct,omitempty" json:"correct"`
 	Mistake    int       `bson:"mistake,omitempty" json:"mistake"`
 	CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`