This commit is contained in:
2024-09-25 16:35:07 +08:00
parent e952657166
commit 43f78fb688
14 changed files with 347 additions and 0 deletions

View File

@ -0,0 +1,11 @@
package model
// IpInfo // IP信息
type IpInfo struct {
IP string `json:"ip"` // IP地址
Country string `json:"country"` // 国家
Region string `json:"region"` // 区域
Province string `json:"province"` // 省份
City string `json:"city"` // 城市
ISP string `json:"ISP"` // ISP
}

View File

@ -0,0 +1,6 @@
package req
// GetIpInfoRequest 获取IP信息请求
type GetIpInfoRequest struct {
IP string `json:"ip" validate:"required"` // IP 地址
}