| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- // ==========================================================================
- // 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"`
- Image string `json:"image"`
- 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"` // 题目
- NameImage string `json:"nameImage"` // 题目图片
- Type int `json:"type" v:"required|int-in:1,2,3#请输入题型|请输入正确的题型"` // 题型 1 单选 2 多选 3 判断
- Enable int `json:"enable"` // 是否启用
- Content []LearningQuestionOption `json:"content" v:"required#请输入题目内容"` // 题目内容
- Explanation string `json:"explanation"` // 题目解析
- ExplanationImage string `json:"explanationImage"` // 题目解析图片
- }
- type LearningQuestionUpdateReq struct {
- Id int `json:"id" v:"required#请输入题目Id"` // Id
- SkillId int `json:"skillId"` // 技能 Id
- Name *string `json:"name"` // 题目
- NameImage *string `json:"nameImage"` // 题目图片
- Type *int `json:"type" v:"int-in:1,2,3#请输入正确的题型"` // 题型 1 单选 2 多选 3 判断
- Enable *int `json:"enable"` // 是否启用 0 未启用 1 启用
- Content []LearningQuestionOption `json:"content"` // 题目内容
- Explanation *string `json:"explanation"` // 题目解析
- ExplanationImage *string `json:"explanationImage"` // 题目解析图片
- }
- type LearningQuestionDeleteReq struct {
- Id []int `json:"id" v:"required#请输入题目Id"`
- }
- type LearningQuestionBatchUploadReq struct {
- SkillId int `json:"skillId"` // 技能 Id
- ExcelUrl string `json:"excelUrl" v:"required#请输入excel地址"` // excel 文件地址
- }
|