Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-usercenter-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5337476c
authored
Jun 05, 2021
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]组织查询
1 parent
2a404118
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
src/main/java/cn/com/glsx/usercenter/api/feign/OrganizationService.java
src/main/java/cn/com/glsx/usercenter/api/feign/fallback/OrganizationServiceFallbackImpl.java
src/main/java/cn/com/glsx/usercenter/api/feign/OrganizationService.java
View file @
5337476
...
@@ -28,6 +28,18 @@ public interface OrganizationService {
...
@@ -28,6 +28,18 @@ public interface OrganizationService {
@GetMapping
(
value
=
"/getTenantPathsByUserId"
)
@GetMapping
(
value
=
"/getTenantPathsByUserId"
)
R
<
List
<
Organization
>>
getTenantPathsByUserId
(
@RequestParam
(
"userId"
)
Long
userId
);
R
<
List
<
Organization
>>
getTenantPathsByUserId
(
@RequestParam
(
"userId"
)
Long
userId
);
/**
* 根据userIds获取租户机构
*
* @param userIds
* @return
*/
@GetMapping
(
value
=
"/getTenantByUserIds"
)
R
<
List
<
Organization
>>
getTenantByUserIds
(
@RequestParam
(
"userIds"
)
List
<
Long
>
userIds
);
/**
/**
* 获取根组织层级
* 获取根组织层级
*
*
...
...
src/main/java/cn/com/glsx/usercenter/api/feign/fallback/OrganizationServiceFallbackImpl.java
View file @
5337476
...
@@ -24,6 +24,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
...
@@ -24,6 +24,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
}
}
@Override
@Override
public
R
<
List
<
Organization
>>
getTenantByUserIds
(
List
<
Long
>
userIds
)
{
log
.
warn
(
"熔断啦 {}"
,
cause
.
getMessage
());
return
R
.
ok
();
}
@Override
public
R
<
List
<
Organization
>>
getRootOrganizations
()
{
public
R
<
List
<
Organization
>>
getRootOrganizations
()
{
log
.
warn
(
"熔断啦 {}"
,
cause
.
getMessage
());
log
.
warn
(
"熔断啦 {}"
,
cause
.
getMessage
());
return
R
.
ok
();
return
R
.
ok
();
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment