train_sale_apply.go 5.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "dashoo.cn/micro/app/model/train/internal"
  7. "dashoo.cn/opms_libary/request"
  8. "github.com/gogf/gf/os/gtime"
  9. )
  10. // TrainSaleApply is the golang structure for table train_sale_apply.
  11. type TrainSaleApply internal.TrainSaleApply
  12. // Fill with you ideas below.
  13. type TrainSaleApplySearchReq struct {
  14. request.PageReq
  15. CreatedBy int `json:"createdBy"` // 创建人
  16. DistributorId int `json:"distributorId"` // 渠道ID
  17. MainProduct string `json:"mainProduct"` // 主营产品
  18. }
  19. type TrainSaleApplyRes struct {
  20. Id int `json:"id"` // 主键
  21. DistributorId int `json:"distributorId"` // 渠道ID
  22. DistributorName string `json:"distributorName"` // 渠道名称
  23. MainProduct string `json:"mainProduct"` // 主营产品
  24. MainCustomer string `json:"mainCustomer"` // 主要客户
  25. Trainees string `json:"trainees"` // 参训人员
  26. ExpectTrainDate *gtime.Time `json:"expectTrainDate"` // 期望培训日期
  27. ExpectStartTime *gtime.Time `json:"expectStartTime"` // 期望开始时间
  28. ExpectEndTime *gtime.Time `json:"expectEndTime"` // 期望结束时间
  29. TrainInstructor string `json:"trainInstructor"` // 培训讲师
  30. TrainDate *gtime.Time `json:"trainDate"` // 培训日期
  31. SpecificStartTime *gtime.Time `json:"specificStartTime"` // 开始时间
  32. SpecificEndTime *gtime.Time `json:"specificEndTime"` // 结束时间
  33. TrainTitle string `json:"trainTitle"` // 培训主题
  34. InstructorRequire string `json:"instructorRequire"` // 讲师要求
  35. FocusPoint string `json:"focusPoint"` // 关注要点
  36. ApplyType string `json:"applyType"` // 申请状态(10 已提交 20 已确认 30 总结完成)
  37. }
  38. type TrainSaleApplyCreateReq struct {
  39. DistributorId int `json:"distributorId" v:"required|min:1#|渠道ID不能为空"` // 渠道ID
  40. DistributorName string `json:"distributorName" v:"required#渠道不能为空"` // 渠道名称
  41. MainProduct string `json:"mainProduct" v:"required#主营产品不能为空"` // 主营产品
  42. MainCustomer string `json:"mainCustomer" v:"required#主要客户不能为空"` // 主要客户
  43. Trainees string `json:"trainees" v:"required#参训人员不能为空"` // 参训人员
  44. ExpectTrainDate *gtime.Time `json:"expectTrainDate" v:"required#期望培训日期不能为空"` // 期望培训日期
  45. ExpectStartTime *gtime.Time `json:"expectStartTime" v:"required#期望开始时间不能为空"` // 期望开始时间
  46. ExpectEndTime *gtime.Time `json:"expectEndTime" v:"required#期望结束时间不能为空"` // 期望结束时间
  47. TrainTitle string `json:"trainTitle" v:"required#培训主题不能为空"` // 培训主题
  48. InstructorRequire string `json:"instructorRequire" v:"required#讲师要求不能为空"` // 讲师要求
  49. FocusPoint string `json:"focusPoint" v:"required#关注要点不能为空"` // 关注要点
  50. }
  51. type TrainSaleApplyUpdateReq struct {
  52. Id int `json:"id" v:"required|min:1#|主ID不能为空"` // 主键
  53. DistributorId int `json:"distributorId" v:"required|min:1#|渠道ID不能为空"` // 渠道ID
  54. DistributorName string `json:"distributorName" v:"required#渠道不能为空"` // 渠道名称
  55. MainProduct string `json:"mainProduct" v:"required#主营产品不能为空"` // 主营产品
  56. MainCustomer string `json:"mainCustomer" v:"required#主要客户不能为空"` // 主要客户
  57. Trainees string `json:"trainees" v:"required#参训人员不能为空"` // 参训人员
  58. ExpectTrainDate *gtime.Time `json:"expectTrainDate" v:"required#期望培训日期不能为空"` // 期望培训日期
  59. ExpectStartTime *gtime.Time `json:"expectStartTime" v:"required#期望开始时间不能为空"` // 期望开始时间
  60. ExpectEndTime *gtime.Time `json:"expectEndTime" v:"required#期望结束时间不能为空"` // 期望结束时间
  61. TrainTitle string `json:"trainTitle" v:"required#培训主题不能为空"` // 培训主题
  62. InstructorRequire string `json:"instructorRequire" v:"required#讲师要求不能为空"` // 讲师要求
  63. FocusPoint string `json:"focusPoint" v:"required#关注要点不能为空"` // 关注要点
  64. TrainInstructor string `json:"trainInstructor" v:"required#培训讲师不能为空"` // 培训讲师
  65. TrainDate *gtime.Time `json:"trainDate" v:"required#培训日期不能为空"` // 培训日期
  66. SpecificStartTime *gtime.Time `json:"specificStartTime" v:"required#开始时间不能为空"` // 开始时间
  67. SpecificEndTime *gtime.Time `json:"specificEndTime" v:"required#结束时间不能为空"` // 结束时间
  68. ApplyType string `json:"applyType" v:"required#申请状态不能为空"` // 申请状态(10 已提交 20 已确认 30 总结完成)
  69. }