gateWayGroupIp.go 1.1 KB

123456789101112131415161718192021222324252627
  1. package v1
  2. type GetGateWayGroupIpByGatewayGroupIdRequest struct {
  3. GatewayGroupId int `form:"gatewayGroupId" json:"gatewayGroupId" binding:"required"`
  4. }
  5. type GateWayGroupIpRequest struct {
  6. Id int `json:"id" form:"id"`
  7. GatewayGroupId int `json:"gatewayGroupId" form:"gatewayGroupId" binding:"required"`
  8. Ip string `json:"ip" form:"ip" binding:"required"`
  9. Tag string `json:"tag" form:"tag"`
  10. OriginPlace string `json:"originPlace" form:"originPlace"`
  11. Comment string `json:"comment" form:"comment"`
  12. }
  13. type DeleteGateWayGroupIpRequest struct {
  14. Id int `json:"id" form:"id" binding:"required"`
  15. }
  16. type SearchGatewayGroupIpParams struct {
  17. Ip string `form:"ip" json:"ip"`
  18. GatewayGroupId int `form:"gatewayGroupId" json:"gatewayGroupId"`
  19. Operator int `form:"operator" json:"operator"`
  20. Current int `form:"current" json:"current" default:"1"`
  21. PageSize int `form:"pageSize" json:"pageSize" default:"10"`
  22. Column string `form:"column" json:"column" default:"id"`
  23. Order string `form:"order" json:"order" default:"desc"`
  24. }