1
This commit is contained in:
@@ -20,8 +20,8 @@ type GetQuestionPage struct {
|
||||
QuestionStatus *int `json:"question_status" form:"question_status" label:"状态"`
|
||||
QuestionSource int `json:"question_source" form:"question_source" validate:"required,oneof=1 2" label:"题目来源"` // 题目来源(1:本题库 2:外部数据)
|
||||
Difficulty *int `json:"difficulty" form:"difficulty" label:"难度"`
|
||||
FirstLabelId *string `json:"first_label_id" form:"first_label_id" label:"一级标签id"`
|
||||
SecondLabelId *string `json:"second_label_id" form:"second_label_id" label:"二级标签id"`
|
||||
FirstLabelId string `json:"first_label_id" form:"first_label_id" label:"一级标签id"`
|
||||
SecondLabelId string `json:"second_label_id" form:"second_label_id" label:"二级标签id"`
|
||||
CreatedAt string `json:"created_at" form:"created_at" label:"创建时间"`
|
||||
UpdatedAt string `json:"updated_at" form:"updated_at" label:"修改时间"`
|
||||
Order *GetQuestionPageOrder `json:"order" form:"order" label:"排序"`
|
||||
@@ -107,10 +107,10 @@ type DeleteQuestion struct {
|
||||
|
||||
// GetQuestionCount 获取题目数量
|
||||
type GetQuestionCount struct {
|
||||
QuestionType *int `json:"question_type" form:"question_type" validate:"omitempty,oneof=1 2 3 4" label:"题目类型"` // 题目类型(1:单选 2:多选 3:问答 4:判断)
|
||||
QuestionStatus *int `json:"question_status" form:"question_status" label:"状态"`
|
||||
QuestionSource *int `json:"question_source" form:"question_source" validate:"omitempty,oneof=1 2" label:"题目来源"` // 题目来源(1:本题库 2:外部数据)
|
||||
Difficulty *int `json:"difficulty" form:"difficulty" label:"难度"`
|
||||
FirstLabelId *string `json:"first_label_id" form:"first_label_id" label:"一级标签id"`
|
||||
SecondLabelId *string `json:"second_label_id" form:"second_label_id" label:"二级标签id"`
|
||||
QuestionType *int `json:"question_type" form:"question_type" validate:"omitempty,oneof=1 2 3 4" label:"题目类型"` // 题目类型(1:单选 2:多选 3:问答 4:判断)
|
||||
QuestionStatus *int `json:"question_status" form:"question_status" label:"状态"`
|
||||
QuestionSource *int `json:"question_source" form:"question_source" validate:"omitempty,oneof=1 2" label:"题目来源"` // 题目来源(1:本题库 2:外部数据)
|
||||
Difficulty *int `json:"difficulty" form:"difficulty" label:"难度"`
|
||||
FirstLabelId string `json:"first_label_id" form:"first_label_id" label:"一级标签id"`
|
||||
SecondLabelId string `json:"second_label_id" form:"second_label_id" label:"二级标签id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user