learning_testpaper.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. // LearningTestpaper is the golang structure for table learning_testpaper.
  10. type LearningTestpaper internal.LearningTestpaper
  11. // Fill with you ideas below.
  12. type LearningTestpaperListReq struct {
  13. Page *model.Page `json:"page"`
  14. OrderBy *model.OrderBy `json:"orderBy"`
  15. SkillId int `json:"skillId"`
  16. Enable *int `json:"enable"` // 是否启用 0 未启用 1 启用
  17. }
  18. type LearningTestpaperGetReq struct {
  19. Id int `json:"id" v:"required#请输入试卷Id"` // 试卷Id
  20. }
  21. type LearningTestpaperGetRsp struct {
  22. LearningTestpaper
  23. Question []*LearningQuestionGetRsp `json:"question"` // 包含的试题
  24. ExamRecord []*LearningExamRecordGetRsp `json:"examRecord"` // 考试记录
  25. }
  26. type LearningTestpaperAddReq struct {
  27. SkillId int `json:"skillId" v:"required#请输入技能名称"` // 技能 Id
  28. Name string `json:"name" v:"required#请输入试卷名称"` // 试卷名称
  29. TimeLimit int `json:"timeLimit" v:"required#请输入答题时间"` // 答题时间/分钟
  30. PassLimit int `json:"passLimit"` // 合格标准/题数
  31. Question []int `json:"question" v:"required#请输入问题列表"` // 问题
  32. }
  33. type LearningTestpaperUpdateReq struct {
  34. Id int `json:"id" v:"required#请输入试卷Id"` // 试卷Id
  35. SkillId int `json:"skillId"` // 技能 Id
  36. Name string `json:"name"` // 试卷名称
  37. Enable *int `json:"enable"` // 是否启用 0 未启用 1 启用
  38. TimeLimit int `json:"timeLimit"` // 答题时间/分钟
  39. PassLimit int `json:"passLimit"` // 合格标准/题数
  40. Question []int `json:"question"` // 问题
  41. }
  42. type LearningTestpaperDeleteReq struct {
  43. Id []int `json:"id" v:"required#请输入试卷Id"`
  44. }
  45. type LearningTestpaperMy struct {
  46. LearningTestpaper
  47. SkillName string `json:"skillName"`
  48. LearntAll bool `json:"learntAll"` // 是否学完所有课程
  49. }