Files
SamWaf/model/rules.go
2023-12-25 11:31:03 +08:00

20 lines
876 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"
)
type Rules struct {
baseorm.BaseOrm
HostCode string `json:"host_code"` //主机唯一码
RuleCode string `json:"rule_code"` //规则的唯一码
RuleName string `json:"rule_name"` //规则名称
RuleContent string `json:"rule_content"` //规则内容
RuleContentJSON string `json:"rule_content_json"` //规则JSON内容
RuleVersionName string `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 删除
}