mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-04 22:17:59 +08:00
35 lines
876 B
Go
35 lines
876 B
Go
![]() |
/**
|
||
|
* Copyright (c) Mainflux
|
||
|
*
|
||
|
* Mainflux server is licensed under an Apache license, version 2.0.
|
||
|
* All rights not explicitly granted in the Apache license, version 2.0 are reserved.
|
||
|
* See the included LICENSE file for more details.
|
||
|
*/
|
||
|
|
||
|
package models
|
||
|
|
||
|
type (
|
||
|
DeviceLocation struct {
|
||
|
Name string `json:"name"`
|
||
|
Latitude int `json:"latitude"`
|
||
|
Longitude int `json:"longitude"`
|
||
|
Elevation int `json:"elevation"`
|
||
|
}
|
||
|
|
||
|
Device struct {
|
||
|
Id string `json:"id"`
|
||
|
Name string `json:"name"`
|
||
|
|
||
|
Description string `json:"description"`
|
||
|
Visibility string `json:"visibility"`
|
||
|
Status string `json:"status"`
|
||
|
Tags []string `json:"tags"`
|
||
|
Location DeviceLocation `json:"location"`
|
||
|
|
||
|
Created string `json:"created"`
|
||
|
Updated string `json:"updated"`
|
||
|
|
||
|
Metadata map[string]interface{} `json:"metadata"`
|
||
|
}
|
||
|
)
|