mqtt.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package model
  2. type NewBehavior struct {
  3. SoftVer int32 `json:"soft_ver"`
  4. UUID string `json:"uuid"`
  5. FrameId int32 `json:"frameid"`
  6. CowId string `json:"cowid"`
  7. Csq int32 `json:"csq"`
  8. Temp float32 `json:"temp"`
  9. Imei string `json:"imei"`
  10. NccId string `json:"nccid"`
  11. Active int32 `json:"active"`
  12. InActive int32 `json:"inactive"`
  13. Rumina int32 `json:"rumina"`
  14. Intake int32 `json:"intake"`
  15. Gasp int32 `json:"gasp"`
  16. Other int32 `json:"other"`
  17. Remain int32 `json:"Remain"`
  18. }
  19. type Behavior struct {
  20. UUID string `json:"uuid"`
  21. Ecowid int32 `json:"ecowid"`
  22. Frameid int32 `json:"frameid"`
  23. High int32 `json:"High"`
  24. Intake int32 `json:"Intake"`
  25. Rumina int32 `json:"Rumina"`
  26. Other int32 `json:"Other"`
  27. Activitys int32 `json:"activitys"`
  28. Inactive int32 `json:"inactive"`
  29. Sver int32 `json:"Sver"`
  30. Hver int32 `json:"Hver"`
  31. Remain int32 `json:"Remain"`
  32. STATUS int32 `json:"STATUS"`
  33. UpPer int32 `json:"UpPer"`
  34. BAT int32 `json:"BAT"`
  35. Imei string `json:"imei"`
  36. }
  37. type NeckRingWrapper struct {
  38. Type string `json:"type"`
  39. NeckRing struct {
  40. NeckPck []*Behavior `json:"neck"` // neck_pck neck
  41. } `json:"NeckRing"`
  42. }