learning_exam_record.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package learning
  5. import (
  6. "lims_adapter/model"
  7. "lims_adapter/model/learning/internal"
  8. )
  9. // LearningExamRecord is the golang structure for table learning_exam_record.
  10. type LearningExamRecord internal.LearningExamRecord
  11. // Fill with you ideas below.
  12. type LearningExamRecordListReq struct {
  13. Page *model.Page `json:"page"`
  14. OrderBy *model.OrderBy `json:"orderBy"`
  15. UserId int `json:"userId"` // 用户 Id
  16. SkillId int `json:"skillId"` // 技能 Id
  17. TestpaperId int `json:"testpaperId"` // 试卷 Id
  18. Status int `json:"status"` // 状态 1 通过 2 未通过
  19. }
  20. type LearningExamRecordGetRsp struct {
  21. LearningExamRecord
  22. UserName string `json:"userName"` // 用户名称
  23. SkillName string `json:"skillName"` // 技能名称
  24. TestpaperName string `json:"testpaperName"` // 试卷名称
  25. CorrectRate string `json:"correctRate"`
  26. }
  27. type LearningExamRecordAddAnswer struct {
  28. QuestionId int `json:"questionId"`
  29. Answer []string `json:"answer"`
  30. }
  31. type LearningExamRecordAddReq struct {
  32. UserId int `json:"userId" v:"required#请输入用户Id"` // 用户 Id
  33. SkillId int `json:"skillId" v:"required#请输入技能Id"` // 技能 Id
  34. TestpaperId int `json:"testpaperId" v:"required#请输入试卷Id"` // 试卷 Id
  35. Status int `json:"status" v:"required|int-in:1,2#请输入状态|请输入正确的状态类型"` // 状态 1 通过 2 未通过
  36. Detail []LearningExamRecordAddAnswer `json:"detail"`
  37. }