优化表结构,重构模型,重新实现基于白银网关的提取节点流程
This commit is contained in:
14
web/models/whitelist.go
Normal file
14
web/models/whitelist.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"platform/web/core"
|
||||
"platform/web/globals/orm"
|
||||
)
|
||||
|
||||
// Whitelist 白名单表
|
||||
type Whitelist struct {
|
||||
core.Model
|
||||
UserID int32 `json:"user_id" gorm:"column:user_id"` // 用户ID
|
||||
IP orm.Inet `json:"ip" gorm:"column:ip;not null"` // IP地址
|
||||
Remark *string `json:"remark" gorm:"column:remark"` // 备注
|
||||
}
|
||||
Reference in New Issue
Block a user