This commit is contained in:
2024-10-09 16:40:59 +08:00
parent f862bd28e1
commit a8e0d18794
3 changed files with 12 additions and 18 deletions
+8 -8
View File
@@ -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"`
}