Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces-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 68157830
authored
Apr 08, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
里程标椎服务
1 parent
895aaf82
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
0 deletions
src/main/java/cn/com/glsx/stdinterface/api/JourneyClient.java
src/main/java/cn/com/glsx/stdinterface/factory/JourneyFallbackFactory.java
src/main/java/cn/com/glsx/stdinterface/fallback/JourneyFallbackImpl.java
src/main/java/cn/com/glsx/stdinterface/api/JourneyClient.java
0 → 100644
View file @
6815783
package
cn
.
com
.
glsx
.
stdinterface
.
api
;
import
cn.com.glsx.stdinterface.factory.FreqRecordFallbackFactory
;
import
org.springframework.cloud.openfeign.FeignClient
;
/**
* 新e盾|里程
* @author xiangyanlin
* @date 2022/4/7
*/
@FeignClient
(
name
=
"ne-shield-standard-interfaces"
,
path
=
"/nesi/journey"
,
fallbackFactory
=
FreqRecordFallbackFactory
.
class
,
decode404
=
true
)
public
interface
JourneyClient
{
}
src/main/java/cn/com/glsx/stdinterface/factory/JourneyFallbackFactory.java
0 → 100644
View file @
6815783
package
cn
.
com
.
glsx
.
stdinterface
.
factory
;
import
cn.com.glsx.stdinterface.api.JourneyClient
;
import
cn.com.glsx.stdinterface.fallback.JourneyFallbackImpl
;
import
feign.hystrix.FallbackFactory
;
/**
* 里程
* @author xiangyanlin
* @date 2022/4/8
*/
public
class
JourneyFallbackFactory
implements
FallbackFactory
<
JourneyClient
>
{
@Override
public
JourneyClient
create
(
Throwable
throwable
)
{
JourneyFallbackImpl
fallback
=
new
JourneyFallbackImpl
();
fallback
.
setCause
(
throwable
);
return
fallback
;
}
}
src/main/java/cn/com/glsx/stdinterface/fallback/JourneyFallbackImpl.java
0 → 100644
View file @
6815783
package
cn
.
com
.
glsx
.
stdinterface
.
fallback
;
import
cn.com.glsx.stdinterface.api.JourneyClient
;
import
lombok.Setter
;
/**
* @author xiangyanlin
* @date 2022/4/7
*/
public
class
JourneyFallbackImpl
implements
JourneyClient
{
@Setter
private
Throwable
cause
;
}
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