neck_ring_error.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package model
  2. import pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
  3. type NeckRingError struct {
  4. Id int64 `json:"id"`
  5. PastureId int64 `json:"pastureId"`
  6. Uuid string `json:"uuid"`
  7. NeckRingNumber string `json:"neckRingNumber"` // 脖环号 (对应老表字段EID1)
  8. ActiveDate string `json:"activeDate"` // 采集时间-天(YYYY-MM-DD对应老表字段heatdate)
  9. Hours int32 `json:"hours"` // 采集时间-小时(hours)
  10. Frameid int32 `json:"frameid"` // 采集时长(对应老表frameid)
  11. Rumina int32 `json:"rumina"` // 反刍时长(rumaina)
  12. Intake int32 `json:"intake"` // 采食时长(intake)
  13. Inactive int32 `json:"inactive"` // 静止时间(inactive)
  14. Gasp int32 `json:"gasp"` // 喘息时长(Other)
  15. High int32 `json:"high"` // 活动量(activitys)
  16. Active int32 `json:"active"` // 运动时长(High)
  17. Other int32 `json:"other"` // 其他时长
  18. FirmwareVersion int32 `json:"firmwareVersion"` // 固件版本(对应老表Version)
  19. HardwareVersion int32 `json:"hardwareVersion"` // 硬件版本
  20. Remain int32 `json:"remain"` // 脖环剩余数据量,57之后为上一次上报结果
  21. Voltage int32 `json:"voltage"` // 电池电压
  22. RestartReason int32 `json:"restartReason"` // 脖环重启原因 (对应老表HIB)
  23. Upper int32 `json:"upper"` // 脖环正向比例发射功率
  24. ActiveDateType pasturePb.ActiveTimeType_Kind `json:"ActiveDateTimeType"`
  25. IsShow pasturePb.IsShow_Kind `json:"isShow"`
  26. Imei string `json:"imei"` // 4G模组IMEI(imei)
  27. ReceiveNumber string `json:"receiveNumber"` // 接收器编号
  28. CreatedAt int64 `json:"createdAt"`
  29. UpdatedAt int64 `json:"updatedAt"`
  30. }
  31. func (s *NeckRingError) TableName() string {
  32. return "neck_ring_error"
  33. }