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 dd077c76
authored
Jun 10, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
用户组织feign开放接口
1 parent
efed2738
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 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 @
dd077c7
...
...
@@ -35,9 +35,8 @@ public interface OrganizationService {
* @param userIds
* @return
*/
@GetMapping
(
value
=
"/getTenantPathsByUserId"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
R
<
List
<
Organization
>>
getTenantPathsByUserId
(
@RequestParam
(
"userIds"
)
List
<
Long
>
userIds
);
@GetMapping
(
value
=
"/getTenantPathsByUserIds"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
R
<
List
<
Organization
>>
getTenantPathsByUserIds
(
@RequestParam
(
"userIds"
)
List
<
Long
>
userIds
);
/**
* 获取根组织层级
...
...
src/main/java/cn/com/glsx/usercenter/api/feign/fallback/OrganizationServiceFallbackImpl.java
View file @
dd077c7
...
...
@@ -24,7 +24,7 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
}
@Override
public
R
<
List
<
Organization
>>
getTenantPathsByUserId
(
List
<
Long
>
userIds
)
{
public
R
<
List
<
Organization
>>
getTenantPathsByUserId
s
(
List
<
Long
>
userIds
)
{
log
.
warn
(
"熔断啦 {}"
,
cause
.
getMessage
());
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