Files
SamWaf/model/firewall_ip_block.go
2025-12-01 16:32:42 +08:00

23 lines
868 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package model
import (
"SamWaf/model/baseorm"
)
// FirewallIPBlock 防火墙IP封禁记录表操作系统级别的防火墙封禁
type FirewallIPBlock struct {
baseorm.BaseOrm
HostCode string `json:"host_code"` // 网站唯一码(主要键)
IP string `json:"ip"` // 被封禁的IP地址支持单个IP或CIDR格式
Reason string `json:"reason"` // 封禁原因
BlockType string `json:"block_type"` // 封禁类型manual-手动封禁, auto-自动封禁, temp-临时封禁
Status string `json:"status"` // 状态active-已生效, inactive-已失效, pending-待生效
ExpireTime int64 `json:"expire_time"` // 过期时间时间戳0表示永久
Remarks string `json:"remarks"` // 备注
}
// TableName 表名
func (FirewallIPBlock) TableName() string {
return "firewall_ip_block"
}