切换导航条
此项目
正在载入...
登录
allied-creation
/
allied-creation-gateway
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
tangxuhui
3 years ago
提交
ece7bbc6375052c620cf0a760f7ed9f22cf0a3b2
2 个父辈
5d8ee985
69fe2493
Merge branch 'dev' of
http://gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway
into dev
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
8 行增加
和
1 行删除
pkg/application/auth/service/service.go
pkg/application/web/orgs/service/orgs.go
pkg/port/beego/middleware/jwt.go
pkg/application/auth/service/service.go
查看文件 @
ece7bbc
...
...
@@ -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
{
...
...
pkg/application/web/orgs/service/orgs.go
查看文件 @
ece7bbc
...
...
@@ -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
:
100
0
,
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
:
1000
,
})
if
err
!=
nil
{
return
nil
,
application
.
ThrowError
(
application
.
BUSINESS_ERROR
,
err
.
Error
())
...
...
pkg/port/beego/middleware/jwt.go
查看文件 @
ece7bbc
...
...
@@ -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
{
...
...
请
注册
或
登录
后发表评论