model.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package crontab
  2. type WeekHabit struct {
  3. NeckRingNumber string
  4. HighHabit int32
  5. RuminaHabit int32
  6. ChewHabit int32
  7. InactiveHabit int32
  8. IntakeHabit int32
  9. OtherHabit int32
  10. }
  11. type ActivityVolume struct {
  12. NeckRingNumber string
  13. AvgFilter float64
  14. StdFilter int32
  15. Nb int32
  16. }
  17. type CowEstrusOriginal struct {
  18. CowId int64
  19. Lact int32
  20. CalvingAge int64
  21. CreateTime string
  22. Cft float32
  23. High int32
  24. }
  25. type CowEstrus struct {
  26. CowId int64
  27. ActiveDate string
  28. HadJust int32
  29. }
  30. type EstrusStartData struct {
  31. CowId int64
  32. FirstTime string
  33. }
  34. type EstrusIsPeakData struct {
  35. CowId int64
  36. FirstTime string
  37. ActiveDate string
  38. }
  39. type XToday struct {
  40. LastMaxHabitId int64
  41. CurrMaxHabitId int64
  42. High int32
  43. Rumina int32
  44. ActiveLow int32
  45. ActiveMiddle int32
  46. ActiveHigh int32
  47. XRuminaDisc int32
  48. XChangeDiscount int32
  49. WeeklyActive int32
  50. }
  51. type FilterData struct {
  52. NeckRingNumber string
  53. FilterHigh int32
  54. FilterRumina int32
  55. FilterChew int32
  56. ChangeFilter int32
  57. RuminaFilter int32
  58. ChewFilter int32
  59. }
  60. type SumHabit struct {
  61. NeckRingNumber string
  62. SumRumina int32
  63. SumIntake int32
  64. SumInactive int32
  65. SumActive int32
  66. SumMaxHigh int32
  67. SumMinHigh int32
  68. SumMinChew int32
  69. }
  70. type ChangeFilterData struct {
  71. Id int64
  72. NeckRingNumber string
  73. ChangeHigh int32
  74. ChangeFilter int32
  75. RuminaFilter int32
  76. ChangeRumina int32
  77. ChewFilter int32
  78. ChangeChew int32
  79. XlcDisCount float64
  80. HeatDate string
  81. Frameid int32
  82. }
  83. type SecondFilterData struct {
  84. NeckRingNumber string
  85. ChangeFilter float64
  86. RuminaFilter float64
  87. ChewFilter float64
  88. }