mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			35 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			35 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package models
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 防火墙规则集
							 | 
						||
| 
								 | 
							
								type HTTPFirewallRuleSet struct {
							 | 
						||
| 
								 | 
							
									Id          uint32 `field:"id"`          // ID
							 | 
						||
| 
								 | 
							
									IsOn        uint8  `field:"isOn"`        // 是否启用
							 | 
						||
| 
								 | 
							
									Code        string `field:"code"`        // 代号
							 | 
						||
| 
								 | 
							
									Name        string `field:"name"`        // 名称
							 | 
						||
| 
								 | 
							
									Description string `field:"description"` // 描述
							 | 
						||
| 
								 | 
							
									CreatedAt   uint64 `field:"createdAt"`   // 创建时间
							 | 
						||
| 
								 | 
							
									Rules       string `field:"rules"`       // 规则列表
							 | 
						||
| 
								 | 
							
									Connector   string `field:"connector"`   // 规则之间的关系
							 | 
						||
| 
								 | 
							
									State       uint8  `field:"state"`       // 状态
							 | 
						||
| 
								 | 
							
									AdminId     uint32 `field:"adminId"`     // 管理员ID
							 | 
						||
| 
								 | 
							
									UserId      uint32 `field:"userId"`      // 用户ID
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type HTTPFirewallRuleSetOperator struct {
							 | 
						||
| 
								 | 
							
									Id          interface{} // ID
							 | 
						||
| 
								 | 
							
									IsOn        interface{} // 是否启用
							 | 
						||
| 
								 | 
							
									Code        interface{} // 代号
							 | 
						||
| 
								 | 
							
									Name        interface{} // 名称
							 | 
						||
| 
								 | 
							
									Description interface{} // 描述
							 | 
						||
| 
								 | 
							
									CreatedAt   interface{} // 创建时间
							 | 
						||
| 
								 | 
							
									Rules       interface{} // 规则列表
							 | 
						||
| 
								 | 
							
									Connector   interface{} // 规则之间的关系
							 | 
						||
| 
								 | 
							
									State       interface{} // 状态
							 | 
						||
| 
								 | 
							
									AdminId     interface{} // 管理员ID
							 | 
						||
| 
								 | 
							
									UserId      interface{} // 用户ID
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func NewHTTPFirewallRuleSetOperator() *HTTPFirewallRuleSetOperator {
							 | 
						||
| 
								 | 
							
									return &HTTPFirewallRuleSetOperator{}
							 | 
						||
| 
								 | 
							
								}
							 |