|  | @@ -15,13 +15,14 @@ type Response struct {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  // Filter 查询参数
 | 
	
		
			
				|  |  |  type Filter struct {
 | 
	
		
			
				|  |  | -	Limit   int64  `json:"limit,omitempty"`
 | 
	
		
			
				|  |  | -	Offset  int64  `json:"offset,omitempty"`
 | 
	
		
			
				|  |  | -	ExtName string `json:"name,omitempty"`   // ExtName 用于 Search
 | 
	
		
			
				|  |  | -	Search  string `json:"search,omitempty"` // Search 用于 Toolbar search
 | 
	
		
			
				|  |  | -	Sort    string `json:"sort,omitempty"`   // Field ID
 | 
	
		
			
				|  |  | -	Order   string `json:"order,omitempty"`  // ASC/DESC
 | 
	
		
			
				|  |  | -	Filter  string `json:"filter,omitempty"` // Filter 用于 filter control
 | 
	
		
			
				|  |  | +	Limit   int64                  `json:"limit,omitempty"`
 | 
	
		
			
				|  |  | +	Offset  int64                  `json:"offset,omitempty"`
 | 
	
		
			
				|  |  | +	ExtName string                 `json:"name,omitempty"`   // ExtName 用于 Search
 | 
	
		
			
				|  |  | +	Search  string                 `json:"search,omitempty"` // Search 用于 Toolbar search
 | 
	
		
			
				|  |  | +	Sort    string                 `json:"sort,omitempty"`   // Field ID
 | 
	
		
			
				|  |  | +	Order   string                 `json:"order,omitempty"`  // ASC/DESC
 | 
	
		
			
				|  |  | +	Filter  string                 `json:"filter,omitempty"` // Filter 用于 filter control
 | 
	
		
			
				|  |  | +	Custom  map[string]interface{} `json:"custom,omitempty"` // Custom 自定义查询条件, 使用 bson, 支持 MongoDB json 查询语法
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	lookASName []string
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -149,6 +150,10 @@ func (q *Filter) Build(itemInfo ii.ItemInfo, items ii.Items) (mo.Pipeline, error
 | 
	
		
			
				|  |  |  	} else if q.Search != "" {
 | 
	
		
			
				|  |  |  		doc = append(doc, mo.E{Key: q.ExtName, Value: q.Search})
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  | +	// 自定义查询条件
 | 
	
		
			
				|  |  | +	for ck, cv := range q.Custom {
 | 
	
		
			
				|  |  | +		doc = append(doc, mo.E{Key: ck, Value: cv})
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	for _, ele := range doc {
 | 
	
		
			
				|  |  |  		// 检查请求参数中的字段是否包含在 XML 配置文件中
 |