记录和显示最近常用的服务

This commit is contained in:
GoEdgeLab
2021-05-03 15:15:31 +08:00
parent 8698f302d5
commit 589764104e
7 changed files with 70 additions and 4 deletions

View File

@@ -146,5 +146,15 @@ func (this *IndexAction) RunGet(params struct {
this.Data["provinceStats"] = provinceStatMaps
this.Data["cityStats"] = cityStatMaps
// 记录最近使用
_, err = this.RPC().LatestItemRPC().IncreaseLatestItem(this.AdminContext(), &pb.IncreaseLatestItemRequest{
ItemType: "server",
ItemId: params.ServerId,
})
if err != nil {
this.ErrorPage(err)
return
}
this.Show()
}