package v1

type UdpForwardingDataRequest struct {
	Id                int    `form:"id" json:"id"`
	CdnWebId          int    `form:"cdnWebId" json:"cdnWebId"`
	Port              string   `form:"port" json:"port" validate:"required,isPortStringValid"`
	BackendList       []string `form:"backendList" json:"backendList" validate:"required,dive,hostport"`
	Comment           string   `form:"comment" json:"comment" validate:"max=50"`
	Proxy             bool     `form:"proxy" json:"proxy" default:"false"`
}
type DeleteUdpForwardingRequest struct {
	Uid   int   `form:"uid" json:"uid" validate:"required"`
	HostId   int   `form:"hostId" json:"hostId" validate:"required"`
	Ids   []int `form:"ids" json:"ids" validate:"required,min=1,dive,required"`
}

type UdpForwardingRequest struct {
	HostId            int `form:"hostId" json:"hostId" validate:"required"`
	Uid               int `form:"uid" json:"uid" validate:"required"`
	UdpForwardingData UdpForwardingDataRequest `form:"data" json:"data" validate:"required"`
}
