🎨 新增机器人白名单

This commit is contained in:
2025-12-08 11:47:53 +08:00
parent 598d5e439a
commit eaa5cdc100
3 changed files with 18 additions and 2 deletions

14
model/user/ip_check.go Normal file
View File

@@ -0,0 +1,14 @@
package user
import "git.echol.cn/loser/lckt/global"
type IpCheck struct {
global.GVA_MODEL
Addrs string `json:"addrs" gorm:"type:text"` // 允许的地区列表,逗号分隔
ToUrl string `json:"toUrl" gorm:"type:varchar(255)"` // 跳转地址
Status bool `json:"status"` // 是否启用
}
func (IpCheck) TableName() string {
return "user_ip_checks"
}