|
@@ -7,8 +7,9 @@ import (
|
|
|
)
|
|
|
|
|
|
type ExamHistory struct {
|
|
|
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
|
|
|
- UserId string `bson:"userId,omitempty" json:"userId"`
|
|
|
+ Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
|
|
|
+ UserId string `bson:"userId,omitempty" json:"userId"`
|
|
|
+ ProduceName string `bson:"produceName,omitempty" json:"produceName"`
|
|
|
// $title:正确/错误
|
|
|
ExamRecord []*Record `bson:"examRecord,omitempty" json:"examRecord"`
|
|
|
TotalScore int `bson:"totalScore,omitempty" json:"totalScore"`
|
|
@@ -18,7 +19,6 @@ type ExamHistory struct {
|
|
|
}
|
|
|
|
|
|
type Record struct {
|
|
|
- Title string `bson:"title,omitempty" json:"title"`
|
|
|
- ProduceName string `bson:"produceName,omitempty" json:"produceName"`
|
|
|
- Result string `bson:"result,omitempty" json:"result"`
|
|
|
+ Title string `bson:"title,omitempty" json:"title"`
|
|
|
+ Result string `bson:"result,omitempty" json:"result"`
|
|
|
}
|