IP列表可以搜索单个IP

This commit is contained in:
GoEdgeLab
2023-06-12 18:29:11 +08:00
parent 26d461620b
commit d262a91ec0

View File

@@ -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,
}) })