🎨 新增机器人白名单
This commit is contained in:
14
model/user/ip_check.go
Normal file
14
model/user/ip_check.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user