mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-16 05:36:36 +08:00
优化界面/修改用户集群不影响套餐服务
This commit is contained in:
@@ -22,6 +22,17 @@ func (this *IndexAction) RunGet(params struct {
|
||||
this.Data["keyword"] = params.Keyword
|
||||
this.Data["isVerifying"] = params.Verifying
|
||||
|
||||
// 未审核的总数量
|
||||
countVerifyingUsersResp, err := this.RPC().UserRPC().CountAllEnabledUsers(this.AdminContext(), &pb.CountAllEnabledUsersRequest{
|
||||
IsVerifying: true,
|
||||
})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
this.Data["countVerifyingUsers"] = countVerifyingUsersResp.Count
|
||||
|
||||
// 当前匹配的数量
|
||||
countResp, err := this.RPC().UserRPC().CountAllEnabledUsers(this.AdminContext(), &pb.CountAllEnabledUsersRequest{
|
||||
Keyword: params.Keyword,
|
||||
IsVerifying: params.Verifying,
|
||||
|
||||
Reference in New Issue
Block a user