learning_learning_record.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. // LearningLearningRecord is the golang structure for table learning_learning_record.
  10. type LearningLearningRecord internal.LearningLearningRecord
  11. // Fill with you ideas below.
  12. type LearningLearningRecordListReq struct {
  13. Page *model.Page `json:"page"`
  14. OrderBy *model.OrderBy `json:"orderBy"`
  15. UserId int `json:"userId"` // 用户 Id
  16. MaterialId int `json:"materialId"` // 资料 Id
  17. Status int `json:"status"` // 状态 1 已学习
  18. MaterialType int `json:"materialType"` // 资料类型 1 资料 2 视频
  19. }
  20. type LearningLearningRecordGetRsp struct {
  21. LearningLearningRecord
  22. UserName string `json:"userName"` // 用户名称
  23. SkillName string `json:"skillName"` // 技能名称
  24. MaterialName string `json:"materialName"` // 资料名称
  25. MaterialType int `json:"materialType"` // 资料类型 1 资料 2 视频
  26. }
  27. type LearningLearningRecordAddReq struct {
  28. UserId int `json:"userId" v:"required#请输入用户Id"` // 用户 Id
  29. MaterialId int `json:"materialId" v:"required#请输入资料Id"` // 资料 Id
  30. Status int `json:"status" v:"required|int-in:1#请输入状态|请输入正确的状态类型"` // 状态 1 已学习
  31. }