12345678910111213141516171819202122232425262728293031 |
- package v1
- type AddGateWayGroupRequest struct {
- Name string `json:"name" form:"name" binding:"required"`
- Comment string `json:"comment" form:"comment"`
- }
- type SearchGatewayGroupParams struct {
- Name string `form:"name" json:"name"`
- HostId int `form:"host_id" json:"host_id"`
- RuleId int `form:"rule_id" json:"rule_id"`
- Operator int `form:"operator" json:"operator"`
- Current int `form:"current" json:"current" default:"1"`
- PageSize int `form:"pageSize" json:"pageSize" default:"10"`
- Column string `form:"column" json:"column" default:"id"`
- Order string `form:"order" json:"order" default:"desc"`
- }
- type DeleteGatewayGroupRequest struct {
- Id int `json:"id" form:"id" binding:"required"`
- }
- type AddGateWayGroupAdminRequest struct {
- Id int `json:"id" form:"id"`
- Name string `json:"name" form:"name" binding:"required"`
- Comment string `json:"comment" form:"comment"`
- HostId int `json:"host_id" form:"host_id"`
- RuleId int `json:"rule_id" form:"rule_id"`
- BanUdp int `gorm:"null" json:"banUdp" form:"banUdp" default:"0"`
- BanOverseas int `gorm:"null" json:"banOverseas" form:"banOverseas" default:"0"`
- Operator int `gorm:"not null" json:"operator" form:"operator" default:"1"`
- }
|