update permissionAllMethod
This commit is contained in:
parent
b841ef7d8a
commit
72f30fce59
|
@ -25,9 +25,10 @@ type PermissionUpdateOptions struct {
|
|||
|
||||
// PermissionAllQuery ...
|
||||
type PermissionAllQuery struct {
|
||||
Page int64
|
||||
Limit int64
|
||||
Sort interface{}
|
||||
Page int64
|
||||
Limit int64
|
||||
Sort interface{}
|
||||
RoleID string
|
||||
}
|
||||
|
||||
// Validate ...
|
||||
|
|
|
@ -125,13 +125,15 @@ func All(queryParams model.PermissionAllQuery) (r model.PermissionAll) {
|
|||
cond = bson.M{}
|
||||
)
|
||||
query := model.CommonQuery{
|
||||
Page: queryParams.Page,
|
||||
Limit: queryParams.Limit,
|
||||
Sort: queryParams.Sort,
|
||||
Page: queryParams.Page,
|
||||
Limit: queryParams.Limit,
|
||||
Sort: queryParams.Sort,
|
||||
RoleID: queryParams.RoleID,
|
||||
}
|
||||
|
||||
// Assign condition
|
||||
query.SetDefaultLimit()
|
||||
query.AssignRoleID(cond)
|
||||
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
|
|
Loading…
Reference in New Issue