Files
server/app/models/blacklist.go
T
2026-01-16 15:49:34 +08:00

14 lines
408 B
Go

package models
import (
"github.com/goravel/framework/database/orm"
)
type Blacklist struct {
orm.Model
IP string `gorm:"index;not null;size:500;comment:IP地址或IP段,支持单个IP、CIDR格式、IP范围,多个用逗号分隔" json:"ip"`
Remark string `gorm:"size:500;comment:备注" json:"remark"`
Status uint8 `gorm:"index;default:1;comment:状态 1:启用 0:禁用" json:"status"`
}