From 4264ef71f14ec6308ca1295022e0d3d512c27e44 Mon Sep 17 00:00:00 2001 From: Hoang Date: Tue, 23 Nov 2021 11:48:40 +0700 Subject: [PATCH] update AllMethod --- permission/handle.go | 1 + role/handle.go | 1 + user/handle.go | 1 + 3 files changed, 3 insertions(+) diff --git a/permission/handle.go b/permission/handle.go index f04f53f..662c1a2 100644 --- a/permission/handle.go +++ b/permission/handle.go @@ -150,6 +150,7 @@ func All(queryParams model.PermissionAllQuery) (r model.PermissionAll) { wg.Wait() + r.Limit = query.Limit return } diff --git a/role/handle.go b/role/handle.go index 19a60aa..8d03ae0 100644 --- a/role/handle.go +++ b/role/handle.go @@ -129,6 +129,7 @@ func All(queryParams model.RoleAllQuery) (r model.RoleAll) { wg.Wait() + r.Limit = query.Limit return } diff --git a/user/handle.go b/user/handle.go index b6062bd..6dc9b0f 100644 --- a/user/handle.go +++ b/user/handle.go @@ -143,6 +143,7 @@ func All(queryParams model.UserAllQuery) (r model.UserAll) { wg.Wait() + r.Limit = query.Limit return }