mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-04 02:40:25 +08:00
优化代码
This commit is contained in:
@@ -16,14 +16,14 @@ func (this *OptionsAction) RunPost(params struct {
|
||||
usersResp, err := this.RPC().UserRPC().ListEnabledUsers(this.AdminContext(), &pb.ListEnabledUsersRequest{
|
||||
Keyword: params.Keyword,
|
||||
Offset: 0,
|
||||
Size: 10000, // TODO 改进 <plan-user-selector> 组件
|
||||
Size: 100,
|
||||
})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
|
||||
userMaps := []maps.Map{}
|
||||
var userMaps = []maps.Map{}
|
||||
for _, user := range usersResp.Users {
|
||||
userMaps = append(userMaps, maps.Map{
|
||||
"id": user.Id,
|
||||
|
||||
Reference in New Issue
Block a user