24 lines
792 B
Go
24 lines
792 B
Go
package res
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type DeviceResponse struct {
|
|
ID uuid.UUID `json:"id"`
|
|
DeviceCode string `json:"device_code"`
|
|
DeviceType string `json:"device_type"`
|
|
Longitude float64 `json:"longitude"`
|
|
Latitude float64 `json:"latitude"`
|
|
Address string `json:"address"`
|
|
PortAmount int `json:"port_amount"`
|
|
Status string `json:"status"` // Always include, even if null
|
|
Province *string `json:"province"` // Always include, even if null
|
|
City *string `json:"city"` // Always include, even if null
|
|
District *string `json:"district"` // Always include, even if null
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|