update permissionAllMethod
This commit is contained in:
parent
b841ef7d8a
commit
72f30fce59
|
@ -28,6 +28,7 @@ type PermissionAllQuery struct {
|
||||||
Page int64
|
Page int64
|
||||||
Limit int64
|
Limit int64
|
||||||
Sort interface{}
|
Sort interface{}
|
||||||
|
RoleID string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate ...
|
// Validate ...
|
||||||
|
|
|
@ -128,10 +128,12 @@ func All(queryParams model.PermissionAllQuery) (r model.PermissionAll) {
|
||||||
Page: queryParams.Page,
|
Page: queryParams.Page,
|
||||||
Limit: queryParams.Limit,
|
Limit: queryParams.Limit,
|
||||||
Sort: queryParams.Sort,
|
Sort: queryParams.Sort,
|
||||||
|
RoleID: queryParams.RoleID,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assign condition
|
// Assign condition
|
||||||
query.SetDefaultLimit()
|
query.SetDefaultLimit()
|
||||||
|
query.AssignRoleID(cond)
|
||||||
|
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Reference in New Issue