mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-22 04:25:19 +08:00
IP名单增加未读数、按未读筛选等操作
This commit is contained in:
@@ -113,6 +113,7 @@ func (this *AllowListAction) RunGet(params struct {
|
||||
"ipTo": item.IpTo,
|
||||
"createdTime": timeutil.FormatTime("Y-m-d", item.CreatedAt),
|
||||
"expiredTime": expiredTime,
|
||||
"lifeSeconds": item.ExpiredAt - time.Now().Unix(),
|
||||
"reason": item.Reason,
|
||||
"type": item.Type,
|
||||
"isExpired": item.ExpiredAt > 0 && item.ExpiredAt < time.Now().Unix(),
|
||||
|
||||
@@ -113,6 +113,7 @@ func (this *DenyListAction) RunGet(params struct {
|
||||
"ipTo": item.IpTo,
|
||||
"createdTime": timeutil.FormatTime("Y-m-d", item.CreatedAt),
|
||||
"expiredTime": expiredTime,
|
||||
"lifeSeconds": item.ExpiredAt - time.Now().Unix(),
|
||||
"reason": item.Reason,
|
||||
"type": item.Type,
|
||||
"isExpired": item.ExpiredAt > 0 && item.ExpiredAt < time.Now().Unix(),
|
||||
|
||||
Reference in New Issue
Block a user