milk_daily.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. EarNumber string `json:"earNumber"`
  9. Lact int32 `json:"lact"`
  10. BirthDate string `json:"birthDate"`
  11. CalvingDate string `json:"calvingDate"`
  12. BreedStatus pasturePb.BreedStatus_Kind `json:"breedStatus"`
  13. LactationAge int32 `json:"lactationAge"`
  14. PenId int32 `json:"penId"`
  15. PenName string `json:"penName"`
  16. DayHigh int32 `json:"dayHigh"`
  17. Conductivity float32 `json:"conductivity"`
  18. DayYield float32 `json:"dayYield"`
  19. MilkDuration float32 `json:"milkDuration"`
  20. WeekAvg float32 `json:"weekAvg"`
  21. DayRumina int32 `json:"dayRumina"`
  22. DayIntake int32 `json:"dayIntake"`
  23. DayInactive int32 `json:"dayInactive"`
  24. DayGasp int32 `json:"dayGasp"`
  25. DayActive int32 `json:"dayActive"`
  26. CreatedAt int64 `json:"createdAt"`
  27. UpdatedAt int64 `json:"updatedAt"`
  28. }
  29. func (m *MilkDaily) TableName() string {
  30. return "milk_daily"
  31. }
  32. type MilkDailyModel struct {
  33. CowId int64 `json:"cow_id"`
  34. HeatDate string `json:"heat_date"`
  35. DayActive int32 `json:"day_active"`
  36. DayHigh int32 `json:"day_high"`
  37. DayInactive int32 `json:"day_inactive"`
  38. DayIntake int32 `json:"day_intake"`
  39. DayRumina int32 `json:"day_rumina"`
  40. Nb int32 `json:"nb"`
  41. }