22 lines
992 B
Go
22 lines
992 B
Go
package req
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type TowerDTO struct {
|
|
DeviceID *uuid.UUID `json:"dev_id,omitempty"`
|
|
DeviceName *string `json:"device_name,omitempty"`
|
|
TowerCode string `json:"tower_code" validate:"required"`
|
|
Longitude float64 `json:"longitude" validate:"required"`
|
|
Latitude float64 `json:"latitude" validate:"required"`
|
|
ExternalTower *bool `json:"external_tower,omitempty"` // Make nullable
|
|
}
|
|
|
|
type UpdateTowerDTO struct {
|
|
DeviceID *uuid.UUID `json:"device_id,omitempty"`
|
|
DeviceName *string `json:"device_name,omitempty"`
|
|
TowerCode *string `json:"tower_code,omitempty"`
|
|
Longitude *float64 `json:"longitude,omitempty" validate:"omitempty,longitude"`
|
|
Latitude *float64 `json:"latitude,omitempty" validate:"omitempty,latitude"`
|
|
ExternalTower *bool `json:"external_tower,omitempty"` // Make nullable
|
|
ImageURL *string `json:"image_url,omitempty"`
|
|
} |