// ========================================================================== // 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" ) // LearningExamRecord is the golang structure for table learning_exam_record. type LearningExamRecord internal.LearningExamRecord // Fill with you ideas below. type LearningExamRecordListReq struct { Page *model.Page `json:"page"` OrderBy *model.OrderBy `json:"orderBy"` UserId int `json:"userId"` // 用户 Id SkillId int `json:"skillId"` // 技能 Id TestpaperId int `json:"testpaperId"` // 试卷 Id Status int `json:"status"` // 状态 1 通过 2 未通过 } type LearningExamRecordGetRsp struct { LearningExamRecord UserName string `json:"userName"` // 用户名称 SkillName string `json:"skillName"` // 技能名称 TestpaperName string `json:"testpaperName"` // 试卷名称 CorrectRate string `json:"correctRate"` } type LearningExamRecordAddAnswer struct { QuestionId int `json:"questionId"` Answer []string `json:"answer"` } type LearningExamRecordAddReq struct { UserId int `json:"userId" v:"required#请输入用户Id"` // 用户 Id SkillId int `json:"skillId" v:"required#请输入技能Id"` // 技能 Id TestpaperId int `json:"testpaperId" v:"required#请输入试卷Id"` // 试卷 Id Status int `json:"status" v:"required|int-in:1,2#请输入状态|请输入正确的状态类型"` // 状态 1 通过 2 未通过 Detail []LearningExamRecordAddAnswer `json:"detail"` }