17 lines
580 B
Go
17 lines
580 B
Go
package req
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type TowerDTO struct {
|
|
DeviceID uuid.UUID `json:"dev_id"`
|
|
TowerCode string `json:"tower_code"`
|
|
Longitude float64 `json:"longitude"`
|
|
Latitude float64 `json:"latitude"`
|
|
}
|
|
|
|
type UpdateTowerDTO struct {
|
|
DeviceID *string `json:"device_id,omitempty" validate:"omitempty,min=3"`
|
|
TowerCode *string `json:"tower_code,omitempty" validate:"omitempty,alphanum"`
|
|
Longitude *float64 `json:"longitude,omitempty" validate:"omitempty,longitude"`
|
|
Latitude *float64 `json:"latitude,omitempty" validate:"omitempty,latitude"`
|
|
} |