修改了新增了题库类型2、3 1

This commit is contained in:
2024-11-04 13:52:43 +08:00
parent b61ede1a03
commit c95aaf9cb8
4 changed files with 25 additions and 11 deletions
+3 -5
View File
@@ -46,11 +46,8 @@ type ItemContentDto struct {
// TokenQuestionContentDto 问答题库-飞花令题目数量规则
type TokenQuestionContentDto struct {
QuestionType int `json:"question_type"` // 题目类型(1:单选 2:多选 3:问答 4:判断)
FirstLabelId string `json:"first_label_id"` // 一级标签id
SecondLabelId string `json:"second_label_id"` // 二级标签id
Difficulty int `json:"difficulty"` // 难度(0:未知 1:低 2:中 3:高)
Quantity int `json:"quantity"` // 数量
QuestionType int `json:"question_type"` // 题目类型(1:单选 2:多选 3:问答 4:判断)
Quantity int `json:"quantity"` // 数量
}
// GetQuestionQaListDto 问答题库列表
@@ -100,6 +97,7 @@ func GetQuestionQaDto(m *model.QuestionQa) *QuestionQaDto {
return &QuestionQaDto{
QaId: fmt.Sprintf("%d", m.QaId),
QaName: m.QaName,
QaType: m.QaType,
QaQuantity: m.QaQuantity,
QaStatus: m.QaStatus,
QaRuleContent: m.QaRuleContent,