learning_learning_record.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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. }
  19. type LearningLearningRecordGetRsp struct {
  20. LearningLearningRecord
  21. UserName string `json:"userName"` // 用户名称
  22. SkillName string `json:"skillName"` // 技能名称
  23. MaterialName string `json:"materialName"` // 资料名称
  24. }
  25. type LearningLearningRecordAddReq struct {
  26. UserId int `json:"userId" v:"required#请输入用户Id"` // 用户 Id
  27. MaterialId int `json:"materialId" v:"required#请输入资料Id"` // 资料 Id
  28. Status int `json:"status" v:"required|int-in:1#请输入状态|请输入正确的状态类型"` // 状态 1 已学习
  29. }