response.go 520 B

1234567891011121314151617181920212223242526
  1. package main
  2. // Common response fields
  3. type Common struct {
  4. Code int `json:"code"`
  5. Message string `json:"message"`
  6. }
  7. type DeviceInfoData struct {
  8. Identifier string `json:"identifier"`
  9. Name string `json:"name"`
  10. Description string `json:"description"`
  11. Version string `json:"version"`
  12. }
  13. type DeviceInfoResponse struct {
  14. Common
  15. Data DeviceInfoData `json:"data"`
  16. }
  17. type DeviceStatusData map[string][]interface{}
  18. type DeviceStatusResponse struct {
  19. Common
  20. Data DeviceStatusData `json:"data"`
  21. }