feat: (rbac) role search total

This commit is contained in:
xushuhui 2022-04-21 10:33:28 +08:00
parent 66b9995b07
commit 5d8a92a336
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ func (h Rbac) SearchRole(w http.ResponseWriter, r *http.Request, ps httprouter.P
Source: enum.BuildRoles["admin"], Source: enum.BuildRoles["admin"],
}) })
response.Hits.Hits = list response.Hits.Hits = list
response.Hits.Total = response.GetTotal() + 1
h.WriteOKJSON(w, response) h.WriteOKJSON(w, response)
return return