17 lines
610 B
Go
17 lines
610 B
Go
package req
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type FishboneDTO struct {
|
|
BackboneID uuid.UUID `json:"bb_id"`
|
|
DeviceStartID uuid.UUID `json:"dev_start_id"`
|
|
DeviceEndID uuid.UUID `json:"dev_end_id"`
|
|
CoreAmount int `json:"core_amount"`
|
|
}
|
|
|
|
type UpdateFishboneDTO struct {
|
|
BackboneID *uuid.UUID `json:"bb_id,omitempty" validate:"omitempty,min=3"`
|
|
DeviceStartID *uuid.UUID `json:"dev_start_id,omitempty" validate:"omitempty,min=3"`
|
|
DeviceEndID *uuid.UUID `json:"dev_end_id,omitempty" validate:"omitempty,min=3"`
|
|
CoreAmount *int `json:"core_amount,omitempty" validate:"omitempty,min=1"`
|
|
} |