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 75f0674e
authored
Oct 22, 2024
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增 查找组织机构详情 接口
1 parent
76913351
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
.gitignore
src/main/java/cn/com/glsx/usercenter/api/feign/OrganizationService.java
src/main/java/cn/com/glsx/usercenter/api/feign/fallback/OrganizationServiceFallbackImpl.java
.gitignore
0 → 100644
View file @
75f0674
/target/
/.idea/
src/main/java/cn/com/glsx/usercenter/api/feign/OrganizationService.java
View file @
75f0674
...
@@ -26,6 +26,15 @@ import java.util.Set;
...
@@ -26,6 +26,15 @@ import java.util.Set;
public
interface
OrganizationService
{
public
interface
OrganizationService
{
/**
/**
* 查找组织机构详情
*
* @param orgId
* @return
*/
@GetMapping
(
value
=
"/findOrgById"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
R
<
Organization
>
findOrgById
(
@RequestParam
(
"orgId"
)
Long
orgId
);
/**
* 查找组织机构
* 查找组织机构
*
*
* @param request
* @param request
...
...
src/main/java/cn/com/glsx/usercenter/api/feign/fallback/OrganizationServiceFallbackImpl.java
View file @
75f0674
...
@@ -21,6 +21,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
...
@@ -21,6 +21,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
private
Throwable
cause
;
private
Throwable
cause
;
@Override
@Override
public
R
<
Organization
>
findOrgById
(
Long
orgId
)
{
log
.
warn
(
"熔断啦 {}"
,
cause
.
getMessage
());
return
R
.
ok
();
}
@Override
public
R
<
List
<
Organization
>>
findOrgs
(
FindOrgRequest
request
)
{
public
R
<
List
<
Organization
>>
findOrgs
(
FindOrgRequest
request
)
{
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