优化界面/修改用户集群不影响套餐服务

This commit is contained in:
刘祥超
2022-05-25 11:44:05 +08:00
parent 1a19c7520a
commit f47a3b0586
4 changed files with 16 additions and 3 deletions

View File

@@ -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,