package v1

type GetCcIpList struct {
	Uid int64 `json:"uid" form:"uid" validate:"required"`
	HostId int64 `json:"hostId" form:"hostId" validate:"required"`
	WebId int64 `json:"webId" form:"webId" validate:"required"`
}

type CcIpList struct {
	OldIp string `json:"oldIp" form:"oldIp"`
	NewIp string `json:"newIp" form:"newIp"`
	Uid int64 `json:"uid" form:"uid" validate:"required"`
	HostId int64 `json:"hostId" form:"hostId" validate:"required"`
	WebId int64 `json:"webId" form:"webId" validate:"required"`
	Comment string `json:"comment" form:"comment"`
}

type DelCcIpList struct {
	Ips []string `json:"ips" form:"ips"`
	Uid int64 `json:"uid" form:"uid" validate:"required"`
	HostId int64 `json:"hostId" form:"hostId" validate:"required"`
	WebId int64 `json:"webId" form:"webId" validate:"required"`
}

type CcIpListResponse struct {
	Value string `json:"value" form:"value"`
	Type string `json:"type" form:"type"`
	Comment string `json:"comment" form:"comment" gorm:"column:reason"`
}