13 lines
335 B
Go
13 lines
335 B
Go
package req
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type DevicePort struct {
|
|
DeviceID uuid.UUID `json:"device_id"`
|
|
PortNumber int `json:"port_number"`
|
|
}
|
|
|
|
type UpdateDevicePort struct {
|
|
DeviceID *uuid.UUID `json:"device_id,omitempty" validate:"omitempty,min=3"`
|
|
PortNumber *int `json:"port_number,omitempty" validate:"omitempty,min=1"`
|
|
} |