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 7b229bee
authored
Jul 08, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
用户组织feign开放接口
1 parent
9446c34d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 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 @
7b229be
...
@@ -66,7 +66,7 @@ public interface OrganizationService {
...
@@ -66,7 +66,7 @@ public interface OrganizationService {
R
<
List
<
Organization
>>
getSubOrganizations
(
@RequestParam
(
"orgId"
)
Long
orgId
);
R
<
List
<
Organization
>>
getSubOrganizations
(
@RequestParam
(
"orgId"
)
Long
orgId
);
/**
/**
* 根据用户id获取组织
层级
* 根据用户id获取组织
*
*
* @param userIds
* @param userIds
* @return
* @return
...
@@ -75,6 +75,15 @@ public interface OrganizationService {
...
@@ -75,6 +75,15 @@ public interface OrganizationService {
R
<
List
<
Organization
>>
getOrgsByUserIds
(
@RequestParam
(
"userIds"
)
Collection
<
Long
>
userIds
);
R
<
List
<
Organization
>>
getOrgsByUserIds
(
@RequestParam
(
"userIds"
)
Collection
<
Long
>
userIds
);
/**
/**
* 根据用户id获取组织-不带权限过滤
*
* @param userIds
* @return
*/
@GetMapping
(
value
=
"/getAllUserOrgsByUserIds"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
R
<
List
<
Organization
>>
getAllUserOrgsByUserIds
(
@RequestParam
(
"userIds"
)
Collection
<
Long
>
userIds
);
/**
* 获取特定层级的机构
* 获取特定层级的机构
*
*
* @param level
* @param level
...
...
src/main/java/cn/com/glsx/usercenter/api/feign/fallback/OrganizationServiceFallbackImpl.java
View file @
7b229be
...
@@ -55,6 +55,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
...
@@ -55,6 +55,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
}
}
@Override
@Override
public
R
<
List
<
Organization
>>
getAllUserOrgsByUserIds
(
Collection
<
Long
>
userIds
)
{
log
.
warn
(
"熔断啦 {}"
,
cause
.
getMessage
());
return
R
.
ok
();
}
@Override
public
R
<
List
<
Organization
>>
getSpecialLevelOrganizations
(
Integer
level
)
{
public
R
<
List
<
Organization
>>
getSpecialLevelOrganizations
(
Integer
level
)
{
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