Files
SamWaf/model/rules.go
T
2026-05-12 17:00:04 +08:00

20 lines
1.0 KiB
Go

package model
import (
"SamWaf/model/baseorm"
)
type Rules struct {
baseorm.BaseOrm
HostCode string `gorm:"size:64" json:"host_code"` //主机唯一码
RuleCode string `gorm:"size:64" json:"rule_code"` //规则的唯一码
RuleName string `gorm:"size:255" json:"rule_name"` //规则名称
RuleContent string `gorm:"type:text" json:"rule_content"` //规则内容
RuleContentJSON string `gorm:"type:text" json:"rule_content_json"` //规则JSON内容
RuleVersionName string `gorm:"size:100" json:"rule_version_name"` //规则版本名
RuleVersion int `json:"rule_version"` //规则版本号
IsPublicRule int `json:"is_public_rule"` //是否为公共规则
IsManualRule int `json:"is_manual_rule"` //是否为手工写规则 1:手工编写 0 :UI界面形式
RuleStatus int `json:"rule_status"` //规则是否开启 1,开启 0,关闭不生效 999 删除
}