19 lines
456 B
Go
19 lines
456 B
Go
package req
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type OLTDTO struct {
|
|
OLTName string `json:"olt_name" validate:"required,min=3,max=100"`
|
|
}
|
|
|
|
type UpdateOLTDTO struct {
|
|
OLTName *string `json:"olt_name,omitempty" validate:"omitempty,min=3,max=100"`
|
|
}
|
|
|
|
type AssignDeviceToOLTDTO struct {
|
|
DeviceID uuid.UUID `json:"device_id" validate:"required"`
|
|
}
|
|
|
|
type UnassignDeviceFromOLTDTO struct {
|
|
DeviceID uuid.UUID `json:"device_id" validate:"required"`
|
|
} |