This commit is contained in:
Joe
2026-01-16 15:49:34 +08:00
commit 550d3e1f42
380 changed files with 62024 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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"`
}