Files
EdgeAPI/internal/db/models/http_firewall_rule_group_model.go

37 lines
1.3 KiB
Go
Raw Permalink Normal View History

2020-09-23 10:12:57 +08:00
package models
import "github.com/iwind/TeaGo/dbs"
// HTTPFirewallRuleGroup 防火墙规则分组
2020-09-23 10:12:57 +08:00
type HTTPFirewallRuleGroup struct {
Id uint32 `field:"id"` // ID
2022-03-22 21:45:07 +08:00
IsOn bool `field:"isOn"` // 是否启用
Name string `field:"name"` // 名称
Description string `field:"description"` // 描述
Code string `field:"code"` // 代号
2022-03-22 22:11:32 +08:00
IsTemplate bool `field:"isTemplate"` // 是否为预置模板
AdminId uint32 `field:"adminId"` // 管理员ID
UserId uint32 `field:"userId"` // 用户ID
State uint8 `field:"state"` // 状态
Sets dbs.JSON `field:"sets"` // 规则集列表
CreatedAt uint64 `field:"createdAt"` // 创建时间
2020-09-23 10:12:57 +08:00
}
type HTTPFirewallRuleGroupOperator struct {
Id interface{} // ID
IsOn interface{} // 是否启用
Name interface{} // 名称
Description interface{} // 描述
Code interface{} // 代号
IsTemplate interface{} // 是否为预置模板
2020-09-23 10:12:57 +08:00
AdminId interface{} // 管理员ID
UserId interface{} // 用户ID
State interface{} // 状态
Sets interface{} // 规则集列表
CreatedAt interface{} // 创建时间
}
func NewHTTPFirewallRuleGroupOperator() *HTTPFirewallRuleGroupOperator {
return &HTTPFirewallRuleGroupOperator{}
}