IP名单增加未读数、按未读筛选等操作

This commit is contained in:
GoEdgeLab
2022-01-08 16:48:45 +08:00
parent 62a327befd
commit 51491c0686
14 changed files with 105 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ import (
"github.com/iwind/TeaGo/maps"
)
func FindAllMenuMaps(nodeLogsType string, countUnreadNodeLogs int64) []maps.Map {
func FindAllMenuMaps(nodeLogsType string, countUnreadNodeLogs int64, countUnreadIPItems int64) []maps.Map {
return []maps.Map{
{
"code": "dashboard",
@@ -50,9 +50,10 @@ func FindAllMenuMaps(nodeLogsType string, countUnreadNodeLogs int64) []maps.Map
"code": "waf",
},
{
"name": "IP名单",
"url": "/servers/iplists",
"code": "iplist",
"name": "IP名单",
"url": "/servers/iplists",
"code": "iplist",
"badge": countUnreadIPItems,
},
{
"name": "统计指标",