2025-11-24 18:44:06 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"platform/web/core"
|
|
|
|
|
"platform/web/globals/orm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Whitelist 白名单表
|
|
|
|
|
type Whitelist struct {
|
|
|
|
|
core.Model
|
2025-12-15 14:48:30 +08:00
|
|
|
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,omitempty" gorm:"column:remark"` // 备注
|
2025-11-24 18:44:06 +08:00
|
|
|
}
|