|
@@ -7,8 +7,24 @@ import (
|
|
|
)
|
|
|
|
|
|
type ExamHistory struct {
|
|
|
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
|
|
|
- UserId string `bson:"userId,omitempty" json:"userId"`
|
|
|
- Content string `bson:"content,omitempty" json:"content"`
|
|
|
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
|
|
|
+ Id primitive.ObjectID `bson:"_id" json:"_id"`
|
|
|
+ UserId string `bson:"userId" json:"userId"`
|
|
|
+
|
|
|
+ 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"`
|
|
|
+ CreateTime time.Time `bson:"createTime" json:"createTime"`
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|