mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	IP列表可以搜索单个IP
This commit is contained in:
		@@ -21,6 +21,7 @@ func (this *IndexAction) Init() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (this *IndexAction) RunGet(params struct {
 | 
					func (this *IndexAction) RunGet(params struct {
 | 
				
			||||||
 | 
						Ip         string
 | 
				
			||||||
	Keyword    string
 | 
						Keyword    string
 | 
				
			||||||
	GlobalOnly bool
 | 
						GlobalOnly bool
 | 
				
			||||||
	Unread     bool
 | 
						Unread     bool
 | 
				
			||||||
@@ -40,6 +41,7 @@ func (this *IndexAction) RunGet(params struct {
 | 
				
			|||||||
		Unread:     true,
 | 
							Unread:     true,
 | 
				
			||||||
		EventLevel: params.EventLevel,
 | 
							EventLevel: params.EventLevel,
 | 
				
			||||||
		ListType:   params.ListType,
 | 
							ListType:   params.ListType,
 | 
				
			||||||
 | 
							Ip:         params.Ip,
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		this.ErrorPage(err)
 | 
							this.ErrorPage(err)
 | 
				
			||||||
@@ -53,6 +55,7 @@ func (this *IndexAction) RunGet(params struct {
 | 
				
			|||||||
		Unread:     params.Unread,
 | 
							Unread:     params.Unread,
 | 
				
			||||||
		EventLevel: params.EventLevel,
 | 
							EventLevel: params.EventLevel,
 | 
				
			||||||
		ListType:   params.ListType,
 | 
							ListType:   params.ListType,
 | 
				
			||||||
 | 
							Ip:         params.Ip,
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		this.ErrorPage(err)
 | 
							this.ErrorPage(err)
 | 
				
			||||||
@@ -68,6 +71,7 @@ func (this *IndexAction) RunGet(params struct {
 | 
				
			|||||||
		Unread:     params.Unread,
 | 
							Unread:     params.Unread,
 | 
				
			||||||
		EventLevel: params.EventLevel,
 | 
							EventLevel: params.EventLevel,
 | 
				
			||||||
		ListType:   params.ListType,
 | 
							ListType:   params.ListType,
 | 
				
			||||||
 | 
							Ip:         params.Ip,
 | 
				
			||||||
		Offset:     page.Offset,
 | 
							Offset:     page.Offset,
 | 
				
			||||||
		Size:       page.Size,
 | 
							Size:       page.Size,
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user