增加了题库不允许重复的业务逻辑2
This commit is contained in:
@@ -2,6 +2,7 @@ package requests
|
||||
|
||||
type QuestionQaRequest struct {
|
||||
GetQuestionQaPage // 获取问答题库列表-分页
|
||||
GetQuestionQaList // 获取问答题库列表
|
||||
AddQuestionQa // 新增问答题库
|
||||
PutQuestionQa // 修改问答题库
|
||||
PutQuestionQaPassword // 修改问答题库密码
|
||||
@@ -25,6 +26,19 @@ type GetQuestionQaPage struct {
|
||||
Order *GetQuestionQaPageOrder `json:"order" form:"order" label:"排序"`
|
||||
}
|
||||
|
||||
// GetQuestionQaList 获取问答题库列表
|
||||
type GetQuestionQaList struct {
|
||||
QaName string `json:"qa_name" form:"qa_name" label:"名称"`
|
||||
QaType int `json:"qa_type" form:"qa_type" label:"题库类型" validate:"required,oneof=1 2 3"` // (1:常规模式 2:固定套题模式 3:多轮固定题型模式)
|
||||
QaStatus *int `json:"qa_status" form:"qa_status" label:"状态"` // (1:正常 2:过期)
|
||||
QaRuleContent string `json:"qa_rule_content" form:"qa_rule_content" label:"规则解释"`
|
||||
QaDisplayType *int `json:"qa_display_type" form:"qa_display_type" label:"展示类型"` // (1:常规 2:飞花令)
|
||||
QaExpireTime string `json:"qa_expire_time" form:"qa_expire_time" label:"过期时间"` // 注意:这里假设LocalTime转换为字符串格式处理
|
||||
CreatedAt string `json:"created_at" form:"created_at" label:"创建时间"` // 注意:这里假设LocalTime转换为字符串格式处理
|
||||
UpdatedAt string `json:"updated_at" form:"updated_at" label:"修改时间"` // 注意:这里假设LocalTime转换为字符串格式处理
|
||||
Order *GetQuestionQaPageOrder `json:"order" form:"order" label:"排序"`
|
||||
}
|
||||
|
||||
// GetQuestionQaPageOrder 获取题目列表-分页-排序条件
|
||||
type GetQuestionQaPageOrder struct {
|
||||
UpdatedAt string `json:"updated_at" form:"updated_at" label:"排序"`
|
||||
|
||||
Reference in New Issue
Block a user