base_distributor_target.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package base
  5. import (
  6. "dashoo.cn/micro/app/model/base/internal"
  7. "dashoo.cn/opms_libary/request"
  8. )
  9. // BaseDistributorTarget is the golang structure for table base_distributor_target.
  10. type BaseDistributorTarget internal.BaseDistributorTarget
  11. // Fill with you ideas below.
  12. type BaseDistributorTargetListReq struct {
  13. request.PageReq
  14. DistId int `json:"distId"` // 所属经销商
  15. Year int `json:"year"` // 年度
  16. }
  17. type BaseDistributorTargetListRsp struct {
  18. BaseDistributorTarget
  19. BaseDistributorTargetStatistic
  20. }
  21. type BaseDistributorTargetAddReq struct {
  22. DistId int `json:"distId" v:"required#请输入所属经销商"` // 所属经销商
  23. Year int `json:"year" v:"required#请输入年份"` // 年度
  24. Q1 float64 `json:"q1"` // q1指标(万元)
  25. Q2 float64 `json:"q2"` // q2指标(万元)
  26. Q3 float64 `json:"q3"` // q3指标(万元)
  27. Q4 float64 `json:"q4"` // q4指标(万元)
  28. Remark string `json:"remark"` // 备注
  29. }
  30. type BaseDistributorTargetUpdateReq struct {
  31. Id int `json:"id" v:"required#请输入Id"`
  32. Q1 *float64 `json:"q1"` // q1指标(万元)
  33. Q2 *float64 `json:"q2"` // q2指标(万元)
  34. Q3 *float64 `json:"q3"` // q3指标(万元)
  35. Q4 *float64 `json:"q4"` // q4指标(万元)
  36. Remark *string `json:"remark"`
  37. }
  38. type BaseDistributorTargetStatistic struct {
  39. Q1Amount float64 `json:"q1Amount"`
  40. Q2Amount float64 `json:"q2Amount"`
  41. Q3Amount float64 `json:"q3Amount"`
  42. Q4Amount float64 `json:"q4Amount"`
  43. TotalAmount float64 `json:"totalAmount"`
  44. }