mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 01:20:25 +08:00
33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
|
|
package models
|
||
|
|
|
||
|
|
// 防火墙规则分组
|
||
|
|
type HTTPFirewallRuleGroup struct {
|
||
|
|
Id uint32 `field:"id"` // ID
|
||
|
|
IsOn uint8 `field:"isOn"` // 是否启用
|
||
|
|
Name string `field:"name"` // 名称
|
||
|
|
Description string `field:"description"` // 描述
|
||
|
|
Code string `field:"code"` // 代号
|
||
|
|
AdminId uint32 `field:"adminId"` // 管理员ID
|
||
|
|
UserId uint32 `field:"userId"` // 用户ID
|
||
|
|
State uint8 `field:"state"` // 状态
|
||
|
|
Sets string `field:"sets"` // 规则集列表
|
||
|
|
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
||
|
|
}
|
||
|
|
|
||
|
|
type HTTPFirewallRuleGroupOperator struct {
|
||
|
|
Id interface{} // ID
|
||
|
|
IsOn interface{} // 是否启用
|
||
|
|
Name interface{} // 名称
|
||
|
|
Description interface{} // 描述
|
||
|
|
Code interface{} // 代号
|
||
|
|
AdminId interface{} // 管理员ID
|
||
|
|
UserId interface{} // 用户ID
|
||
|
|
State interface{} // 状态
|
||
|
|
Sets interface{} // 规则集列表
|
||
|
|
CreatedAt interface{} // 创建时间
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewHTTPFirewallRuleGroupOperator() *HTTPFirewallRuleGroupOperator {
|
||
|
|
return &HTTPFirewallRuleGroupOperator{}
|
||
|
|
}
|