// ========================================================================== // This is auto-generated by gf cli tool. Fill this file as you wish. // ========================================================================== package learning import ( "lims_adapter/model" "lims_adapter/model/learning/internal" ) // LearningQuestion is the golang structure for table learning_question. type LearningQuestion internal.LearningQuestion // Fill with you ideas below. type LearningQuestionGetReq struct { Id int `json:"id" v:"required#请输入题目Id"` // 题目 ID } type LearningQuestionOption struct { Name string `json:"name"` Content string `json:"content"` IsCorrect bool `json:"isCorrect"` } type LearningQuestionGetRsp struct { LearningQuestion Content interface{} `json:"content"` } type LearningQuestionListReq struct { Page *model.Page `json:"page"` OrderBy *model.OrderBy `json:"orderBy"` SkillId int `json:"skillId"` Name string `json:"name"` } type LearningQuestionAddReq struct { SkillId int `json:"skillId" v:"required#请输入技能Id"` // 技能 Id Name string `json:"name" v:"required#请输入题目内容"` // 题目内容 Type int `json:"type" v:"required#请输入题型 in:1,2,3#请输入正确的题型"` // 题型 1 单选 2 多选 3 判断 Enable int `json:"enable"` // 是否启用 Content []LearningQuestionOption `json:"content" v:"required#请输入题目内容"` // 题目内容 Explanation string `json:"explanation"` // 题目解析 } type LearningQuestionUpdateReq struct { Id int `json:"id" v:"required#请输入题目Id"` // Id SkillId int `json:"skillId"` // 技能 Id Name string `json:"name"` // 题目内容 Type int `json:"type" v:"in:1,2,3#请输入正确的题型"` // 题型 1 单选 2 多选 3 判断 Enable *int `json:"enable"` // 是否启用 0 未启用 1 启用 Content []LearningQuestionOption `json:"content"` // 题目内容 Explanation string `json:"explanation"` // 题目解析 } type LearningQuestionDeleteReq struct { Id int `json:"id" v:"required#请输入题目Id"` }