milk_daily.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package model
  2. import pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
  3. type MilkDaily struct {
  4. Id int64 `json:"id"`
  5. PastureId int64 `json:"pastureId"`
  6. HeatDate string `json:"heatDate"`
  7. CowId int64 `json:"cowId"`
  8. Lact int32 `json:"lact"`
  9. BreedStatus pasturePb.BreedStatus_Kind `json:"breedStatus"`
  10. LactationAge int32 `json:"lactationAge"`
  11. PenId int32 `json:"penId"`
  12. PenName string `json:"penName"`
  13. Conductivity float32 `json:"conductivity"`
  14. DayYield float32 `json:"dayYield"`
  15. MilkDuration float32 `json:"milkDuration"`
  16. DayHigh int32 `json:"dayHigh"`
  17. WeekAvg float32 `json:"weekAvg"`
  18. DayRumina int32 `json:"dayRumina"`
  19. DayIntake int32 `json:"dayIntake"`
  20. DayInactive int32 `json:"dayInactive"`
  21. DayGasp int32 `json:"dayGasp"`
  22. DayActive int32 `json:"dayActive"`
  23. CreatedAt int64 `json:"createdAt"`
  24. UpdatedAt int64 `json:"updatedAt"`
  25. }
  26. func (m *MilkDaily) TableName() string {
  27. return "milk_daily"
  28. }
  29. type MilkDailyModel struct {
  30. CowId int64 `json:"cow_id"`
  31. HeatDate string `json:"heat_date"`
  32. DayActive int32 `json:"day_active"`
  33. DayHigh int32 `json:"day_high"`
  34. DayInactive int32 `json:"day_inactive"`
  35. DayIntake int32 `json:"day_intake"`
  36. DayRumina int32 `json:"day_rumina"`
  37. Nb int32 `json:"nb"`
  38. }