NAM-APJATEL-BACKEND/model/dto/req/backbone_dto.go

15 lines
495 B
Go

package req
import "github.com/google/uuid"
type BackboneDTO struct {
DeviceStartID uuid.UUID `json:"dev_start_id"`
DeviceEndID uuid.UUID `json:"dev_end_id"`
CoreAmount int `json:"core_amount"`
}
type UpdateBackboneDTO struct {
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"`
}