// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. package iplists import ( "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils" "github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb" ) type ReadAllAction struct { actionutils.ParentAction } func (this *ReadAllAction) RunPost(params struct{}) { defer this.CreateLogInfo("将IP名单置为已读") _, err := this.RPC().IPItemRPC().UpdateIPItemsRead(this.AdminContext(), &pb.UpdateIPItemsReadRequest{}) if err != nil { this.ErrorPage(err) return } this.Success() }