This commit is contained in:
wucongxing8150 2024-10-18 17:01:21 +08:00
parent c971ef5534
commit 8ec3b65494

View File

@ -49,7 +49,7 @@ type AddQuestionQaItem struct {
QuestionType int `json:"question_type" form:"question_type" validate:"required,number,oneof=1 2 3 4" label:"题目类型"` // 题目类型(1:单选 2:多选 3:问答 4:判断)
FirstLabelId string `json:"first_label_id" form:"first_label_id" validate:"required" label:"一级标签id"`
SecondLabelId string `json:"second_label_id" form:"second_label_id" label:"二级标签id"`
Difficulty *int `json:"difficulty" form:"difficulty" validate:"required" label:"难度"`
Difficulty *int `json:"difficulty" form:"difficulty" validate:"omitempty,number,oneof=0 1 2 3" label:"难度"`
Quantity int `json:"quantity" form:"quantity" validate:"required,number,min=1" label:"数量"`
}
@ -77,7 +77,7 @@ type PutQuestionQaItem struct {
QuestionType int `json:"question_type" form:"question_type" validate:"required,number,oneof=1 2 3 4" label:"题目类型"` // 题目类型(1:单选 2:多选 3:问答 4:判断)
FirstLabelId string `json:"first_label_id" form:"first_label_id" validate:"required" label:"一级标签id"`
SecondLabelId string `json:"second_label_id" form:"second_label_id" label:"二级标签id"`
Difficulty *int `json:"difficulty" form:"difficulty" validate:"required" label:"难度"`
Difficulty *int `json:"difficulty" form:"difficulty" validate:"omitempty,number,oneof=0 1 2 3" label:"难度"`
Quantity int `json:"quantity" form:"quantity" validate:"required,number,min=1" label:"数量"`
}