This commit is contained in:
zyj
2025-09-13 10:22:49 +08:00
commit 002419a7ed
28 changed files with 1888 additions and 0 deletions

34
models/ip.go Normal file
View File

@@ -0,0 +1,34 @@
package models
type Ip struct {
ID int64 `gorm:"id;primary_key;auto_increment"`
As string `gorm:"as"`
Asname string `gorm:"asname"`
City string `gorm:"city"`
Continent string `gorm:"continent"`
ContinentCode string `gorm:"continent_code"`
Country string `gorm:"country"`
CountryCode string `gorm:"country_code"`
Currency string `gorm:"currency"`
District string `gorm:"district"`
Hosting int64 `gorm:"hosting"`
Isp string `gorm:"isp"`
Lat string `gorm:"lat"`
Lon string `gorm:"lon"`
Mobile int64 `gorm:"mobile"`
Offset string `gorm:"offset"`
Org string `gorm:"org"`
Proxy int64 `gorm:"proxy"`
Query string `gorm:"query"`
Region string `gorm:"region"`
RegionName string `gorm:"region_name"`
Timezone string `gorm:"timezone"`
Zip string `gorm:"zip"`
UpdateTime int64 `gorm:"update_time"`
CreateTime int64 `gorm:"create_time"`
}
// 实现 TableName 方法指定表名
func (Ip) TableName() string {
return "j_ip"
}