NAM-APJATEL-BACKEND/model/dto/res/device_res.go

27 lines
829 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"`
PortAmount int `json:"port_amount"`
Status string `json:"status"`
Address string `json:"address"`
Region *string `json:"region"`
Province *string `json:"province"`
City *string `json:"city"`
District *string `json:"district"`
ImageURL *string `json:"image_url"` // Primary image
ImageURLs []string `json:"image_urls"` // All images
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}