| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- // ==========================================================================
- // 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"
- )
- // LearningTestpaper is the golang structure for table learning_testpaper.
- type LearningTestpaper internal.LearningTestpaper
- // Fill with you ideas below.
- type LearningTestpaperListReq struct {
- Page *model.Page `json:"page"`
- OrderBy *model.OrderBy `json:"orderBy"`
- SkillId int `json:"skillId"`
- Enable *int `json:"enable"` // 是否启用 0 未启用 1 启用
- }
- type LearningTestpaperGetReq struct {
- Id int `json:"id" v:"required#请输入试卷Id"` // 试卷Id
- }
- type LearningTestpaperGetRsp struct {
- LearningTestpaper
- Question []*LearningQuestionGetRsp `json:"question"` // 包含的试题
- ExamRecord []*LearningExamRecordGetRsp `json:"examRecord"` // 考试记录
- }
- type LearningTestpaperAddReq struct {
- SkillId int `json:"skillId" v:"required#请输入技能名称"` // 技能 Id
- Name string `json:"name" v:"required#请输入试卷名称"` // 试卷名称
- TimeLimit int `json:"timeLimit" v:"required#请输入答题时间"` // 答题时间/分钟
- PassLimit int `json:"passLimit"` // 合格标准/题数
- Question []int `json:"question" v:"required#请输入问题列表"` // 问题
- }
- type LearningTestpaperUpdateReq struct {
- Id int `json:"id" v:"required#请输入试卷Id"` // 试卷Id
- SkillId int `json:"skillId"` // 技能 Id
- Name string `json:"name"` // 试卷名称
- Enable *int `json:"enable"` // 是否启用 0 未启用 1 启用
- TimeLimit int `json:"timeLimit"` // 答题时间/分钟
- PassLimit int `json:"passLimit"` // 合格标准/题数
- Question []int `json:"question"` // 问题
- }
- type LearningTestpaperDeleteReq struct {
- Id []int `json:"id" v:"required#请输入试卷Id"`
- }
- type LearningTestpaperMy struct {
- LearningTestpaper
- SkillName string `json:"skillName"`
- LearntAll bool `json:"learntAll"` // 是否学完所有课程
- }
|