device.go 512 B

1234567891011121314151617
  1. package dao
  2. import "time"
  3. type Device struct {
  4. ID int `json:"id"`
  5. Sn string `json:"sn"`
  6. RegionId int `json:"regionId"`
  7. Name string `json:"name"`
  8. Genre string `json:"genre"`
  9. State int `json:"state"`
  10. IsSun bool `json:"isSun"`
  11. LoopNumber int `json:"loopNumber"`
  12. OnlineTime time.Time `json:"onlineTime"`
  13. DeviceLoops []DeviceLoop `json:"deviceLoops"`
  14. Sun Sun `json:"sun"`
  15. }