package v1

type UdpLimitRequest struct {
	QosPacketCount    int    `form:"qos_packet_count" json:"qos_packet_count"`
	QosPacketDuration string `form:"qos_packet_duration" json:"qos_packet_duration" default:"0s"`
	MaxConnCount      int    `form:"max_conn_count" json:"max_conn_count"`
}

type UdpLimitDeleteRequest struct {
	WafUdpLimitId int `json:"waf_udp_limit_id" form:"waf_udp_limit_id"`
}

type UdpLimitSendRequest struct {
	WafUdpLimitId     int    `json:"waf_udp_limit_id" form:"waf_udp_limit_id"`
	Tag               string `json:"tag" form:"tag" binding:"required"`
	QosPacketCount    int    `form:"qos_packet_count" json:"qos_packet_count" default:"0"`
	QosPacketDuration string `form:"qos_packet_duration" json:"qos_packet_duration" default:"0s"`
	MaxConnCount      int    `form:"max_conn_count" json:"max_conn_count" default:"0"`
	RuleId            int    `json:"waf_common_limit_id" form:"waf_common_limit_id"`
	Comment           string `form:"comment" json:"comment"`
}
