作者 yangfu

用户列表修改

... ... @@ -295,6 +295,11 @@ func (svr AuthService) GetFavoriteMenus(userInfoCommand *command.UserInfoCommand
//GetUserMenus 获取用户菜单
func (svr AuthService) GetUserMenus(userMenusCommand *command.UserMenusCommand) (interface{}, error) {
if userMenusCommand.Operator.UserId == 0 {
return map[string]interface{}{
"accessMenus": struct{}{},
}, nil
}
creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(
userMenusCommand.Operator)
resultMenu, err := creationUserGateway.UserAccessMenus(allied_creation_user.ReqUserAccessMenus{
... ...
... ... @@ -86,7 +86,7 @@ func (orgsService *OrgsService) OrgList(orgListQuery *query.OrgListQuery) (inter
CompanyId: int(orgListQuery.Operator.CompanyId),
DepName: orgListQuery.DepName,
IsOrg: 0,
Limit: 0,
Limit: 1000,
Offset: 0,
OrgCode: orgListQuery.OrgCode,
ParentId: parentOrgId,
... ... @@ -162,6 +162,7 @@ func (orgsService OrgsService) DepartmentsUsers(departmentsUsersQuery *query.Dep
users, err := creationUserGateway.UserSearch(allied_creation_user.ReqUserSearch{
CompanyId: departmentsUsersQuery.Operator.CompanyId,
OrganizationId: departmentsUsersQuery.Operator.OrgId,
Limit: 100,
})
if err != nil {
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
... ...
... ... @@ -112,6 +112,7 @@ func CheckAccessToken2() web.FilterFunc {
"/v1/auth/refresh-token": "",
"/v1/app/cooperation-projects/person/search": "",
"/v1/common/dictionary/search": "",
"/v1/common/app-sharing": "",
}
var err error
if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil {
... ...