package v1

type TcpLimitRequest struct {
	ConnCount    int    `json:"conn_count" form:"conn_count" default:"0"`
	ConnDuration string `json:"conn_duration" form:"conn_duration"  default:"0s"`
	MaxConnCount int    `json:"max_conn_count" form:"max_conn_count" default:"0"`
}

type TcpLimitDeleteRequest struct {
	WafTcpLimitId int `json:"waf_tcp_limit_id" form:"waf_tcp_limit_id"`
}

type TcpLimitSendRequest struct {
	WafTcpLimitId int    `json:"waf_tcp_limit_id" form:"waf_tcp_limit_id"`
	Tag           string `json:"tag" form:"tag" binding:"required"`
	ConnCount     int    `json:"conn_count" form:"conn_count" default:"0"`
	ConnDuration  string `json:"conn_duration" form:"conn_duration"  default:"0s"`
	MaxConnCount  int    `json:"max_conn_count" form:"max_conn_count" default:"0"`
	RuleId        int    `json:"waf_common_limit_id" form:"waf_common_limit_id"`
	Comment       string `form:"comment" json:"comment"`
}
