// Package ip defines the GET /tools/ip endpoint contract. package ip import "github.com/gogf/gf/v2/frame/g" // IPReq returns the caller's IP information. type IPReq struct { g.Meta `path:"/tools/ip" method:"get" tags:"Open/Tools" summary:"Client IP info"` } // IPRes is the response of IPReq. type IPRes struct { IP string `json:"ip"` Internal bool `json:"internal"` // whether the IP is a private/internal address }