新增:权限分组模块
This commit is contained in:
parent
959ec41656
commit
f7fd8dc29e
|
@ -44,9 +44,7 @@ func (l *GetApisLogic) GetApis(req *types.GetApisReq, userinfo *auth.UserInfo) (
|
|||
}
|
||||
var pageCount int = 1
|
||||
if resCount > int64(req.PerPage) {
|
||||
var float64Count = float64(resCount)
|
||||
var float64PerPage = float64(req.PerPage)
|
||||
pageCountFloat := math.Ceil(float64Count / float64PerPage)
|
||||
pageCountFloat := math.Ceil(float64(resCount) / float64(req.PerPage))
|
||||
pageCount = int(pageCountFloat)
|
||||
}
|
||||
|
||||
|
|
|
@ -45,9 +45,7 @@ func (l *GetLdapGroupsLogic) GetLdapGroups(req *types.GetLdapGroupsReq, userinfo
|
|||
}
|
||||
var pageCount int = 1
|
||||
if resCount > int64(req.PerPage) {
|
||||
var float64Count = float64(resCount)
|
||||
var float64PerPage = float64(req.PerPage)
|
||||
pageCountFloat := math.Ceil(float64Count / float64PerPage)
|
||||
pageCountFloat := math.Ceil(float64(resCount) / float64(req.PerPage))
|
||||
pageCount = int(pageCountFloat)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user