mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
package models
 | 
						|
 | 
						|
// Gzip配置
 | 
						|
type HTTPGzip struct {
 | 
						|
	Id         uint32 `field:"id"`         // ID
 | 
						|
	AdminId    uint32 `field:"adminId"`    // 管理员ID
 | 
						|
	UserId     uint32 `field:"userId"`     // 用户ID
 | 
						|
	IsOn       uint8  `field:"isOn"`       // 是否启用
 | 
						|
	Level      uint32 `field:"level"`      // 压缩级别
 | 
						|
	MinLength  string `field:"minLength"`  // 可压缩最小值
 | 
						|
	MaxLength  string `field:"maxLength"`  // 可压缩最大值
 | 
						|
	State      uint8  `field:"state"`      // 状态
 | 
						|
	CreatedAt  uint64 `field:"createdAt"`  // 创建时间
 | 
						|
	CondGroups string `field:"condGroups"` // 条件
 | 
						|
}
 | 
						|
 | 
						|
type HTTPGzipOperator struct {
 | 
						|
	Id         interface{} // ID
 | 
						|
	AdminId    interface{} // 管理员ID
 | 
						|
	UserId     interface{} // 用户ID
 | 
						|
	IsOn       interface{} // 是否启用
 | 
						|
	Level      interface{} // 压缩级别
 | 
						|
	MinLength  interface{} // 可压缩最小值
 | 
						|
	MaxLength  interface{} // 可压缩最大值
 | 
						|
	State      interface{} // 状态
 | 
						|
	CreatedAt  interface{} // 创建时间
 | 
						|
	CondGroups interface{} // 条件
 | 
						|
}
 | 
						|
 | 
						|
func NewHTTPGzipOperator() *HTTPGzipOperator {
 | 
						|
	return &HTTPGzipOperator{}
 | 
						|
}
 |