6
0

learning_material.go 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. // LearningMaterial is the golang structure for table learning_material.
  10. type LearningMaterial internal.LearningMaterial
  11. // Fill with you ideas below.
  12. type LearningMaterialListReq struct {
  13. Page *model.Page `json:"page"`
  14. OrderBy *model.OrderBy `json:"orderBy"`
  15. SkillId int `json:"skillId"`
  16. Name string `json:"name"`
  17. }
  18. type LearningMaterialGetReq struct {
  19. Id int `json:"id"` // 资料Id
  20. Name string `json:"name"` // 资料名称
  21. }
  22. type LearningMaterialGetRsp struct {
  23. LearningMaterial
  24. File []*LearningMaterialFile `json:"file"`
  25. LearningRecord []*LearningLearningRecordGetRsp `json:"learningRecord"`
  26. }
  27. type LearningMaterialAddReqFile struct {
  28. Name string `json:"name"` // 文件名
  29. Url string `json:"url"` // 文件地址
  30. Size string `json:"size"` // 文件大小
  31. Extend string `json:"extend"` // 文件扩展名
  32. }
  33. type LearningMaterialAddReq struct {
  34. SkillId int `json:"skillId" v:"required#请输入技能Id"` // 技能 Id
  35. Name string `json:"name" v:"required#请输入资料名称"` // 资料名称
  36. Type int `json:"type" v:"required|int-in:1,2#请输入资料类型|请输入正确的资料类型"` // 资料类型 1 资料 2 视频
  37. SortNo int `json:"sortNo"` // 排序
  38. Enable int `json:"enable" v:"int-in:0,1#请输入正确的启用类型"` // 是否启用
  39. Content string `json:"content" v:"required#请输入资料内容"` // 资料内容
  40. File []*LearningMaterialAddReqFile `json:"file"` // 附件
  41. }
  42. type LearningMaterialUpdateReq struct {
  43. Id int `json:"id" v:"required#请输入资料Id"` // Id
  44. SkillId int `json:"skillId"` // 技能 Id
  45. Name string `json:"name"` // 资料名称
  46. Type *int `json:"type" v:"int-in:1,2#请输入正确的资料类型"` // 资料类型 1 资料 2 视频
  47. SortNo *int `json:"sortNo"` // 排序
  48. Enable *int `json:"enable" v:"int-in:0,1#请输入正确的启用类型"` // 是否启用
  49. Content string `json:"content"` // 资料内容
  50. File []*LearningMaterialAddReqFile `json:"file"` // 附件
  51. }
  52. type LearningMaterialDeleteReq struct {
  53. Id []int `json:"id" v:"required#请输入资料Id"`
  54. }