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 535d9e30
authored
Jun 05, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
用户组织feign开放接口
1 parent
ef269a4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/main/java/cn/com/glsx/usercenter/api/feign/ApiUserService.java
src/main/java/cn/com/glsx/usercenter/api/feign/UserService.java
src/main/java/cn/com/glsx/usercenter/api/feign/ApiUserService.java
View file @
535d9e3
...
@@ -12,16 +12,16 @@ import java.util.List;
...
@@ -12,16 +12,16 @@ import java.util.List;
@FeignClient
(
@FeignClient
(
name
=
"${feign.usercenter.name}"
,
name
=
"${feign.usercenter.name}"
,
path
=
"${feign.usercenter.path}"
+
"/api/user"
,
path
=
"${feign.usercenter.path}"
+
"/api/user"
,
contextId
=
"feign
u
ser"
,
contextId
=
"feign
ApiU
ser"
,
fallbackFactory
=
UserServiceFallbackFactory
.
class
,
fallbackFactory
=
UserServiceFallbackFactory
.
class
,
decode404
=
true
decode404
=
true
)
)
public
interface
ApiUserService
{
public
interface
ApiUserService
{
@GetMapping
(
value
=
"/
api/
findByAccount"
)
@GetMapping
(
value
=
"/findByAccount"
)
R
<
List
<
User
>>
findByAccount
(
@RequestParam
(
"account"
)
String
account
);
R
<
List
<
User
>>
findByAccount
(
@RequestParam
(
"account"
)
String
account
);
@GetMapping
(
value
=
"/
api/
findByUsername"
)
@GetMapping
(
value
=
"/findByUsername"
)
R
<
List
<
User
>>
findByUsername
(
@RequestParam
(
"username"
)
String
username
);
R
<
List
<
User
>>
findByUsername
(
@RequestParam
(
"username"
)
String
username
);
}
}
src/main/java/cn/com/glsx/usercenter/api/feign/UserService.java
View file @
535d9e3
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
@FeignClient
(
@FeignClient
(
name
=
"${feign.usercenter.name}"
,
name
=
"${feign.usercenter.name}"
,
path
=
"${feign.usercenter.path}"
+
"/fuser"
,
path
=
"${feign.usercenter.path}"
+
"/fuser"
,
contextId
=
"feign
u
ser"
,
contextId
=
"feign
U
ser"
,
fallbackFactory
=
UserServiceFallbackFactory
.
class
,
fallbackFactory
=
UserServiceFallbackFactory
.
class
,
decode404
=
true
decode404
=
true
)
)
...
...
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