sun-pc-linux 7 months ago
parent
commit
1325f2bfa4
2 changed files with 5 additions and 5 deletions
  1. 1 1
      src/api/api.http
  2. 4 4
      src/db/model/examHistory.go

+ 1 - 1
src/api/api.http

@@ -1,4 +1,4 @@
-@host = 127.0.0.1:6123/crsvc
+@host = 45.152.67.125:8805/cr
 
 
 ###

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

@@ -10,9 +10,9 @@ type ExamHistory struct {
 	Id     primitive.ObjectID `bson:"_id" json:"_id"`
 	UserId string             `bson:"userId" json:"userId"`
 	// $title:正确/错误
-	ExamRecord []map[string]string `bson:"userId" json:"examRecord"`
-	TotalScore float64             `bson:"userId" json:"totalScore"`
-	Correct    int                 `bson:"userId" json:"correct"`
-	Mistake    int                 `bson:"userId" json:"mistake"`
+	ExamRecord []map[string]string `bson:"examRecord" json:"examRecord"`
+	TotalScore float64             `bson:"totalScore" json:"totalScore"`
+	Correct    int                 `bson:"correct" json:"correct"`
+	Mistake    int                 `bson:"mistake" json:"mistake"`
 	CreateTime time.Time           `bson:"createTime" json:"createTime"`
 }