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 8bfd49e5
authored
Sep 15, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
假性离线
1 parent
8001d27b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
0 deletions
src/main/java/cn/com/glsx/stdinterface/api/FakeOfflineChangeClient.java
src/main/java/cn/com/glsx/stdinterface/dto/FakeOfflineChangeFrequentlyDTO.java
src/main/java/cn/com/glsx/stdinterface/api/FakeOfflineChangeClient.java
0 → 100644
View file @
8bfd49e
package
cn
.
com
.
glsx
.
stdinterface
.
api
;
import
cn.com.glsx.stdinterface.dto.FakeOfflineChangeFrequentlyDTO
;
import
com.glsx.plat.core.web.R
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* @author xiangyanlin
* @date 2022/9/15
*/
@Component
@FeignClient
(
name
=
"ne-shield-standard-interfaces"
,
path
=
"/nesi/fakeOfflineChange"
,
contextId
=
"feignApiFakeOfflineChange"
,
decode404
=
true
)
public
interface
FakeOfflineChangeClient
{
/**
* 保存
* @param fakeOfflineChangeFrequentlyDTO 实例
* @return 服务返回
*/
@PostMapping
(
value
=
"/save"
)
R
<
Void
>
save
(
@RequestBody
FakeOfflineChangeFrequentlyDTO
fakeOfflineChangeFrequentlyDTO
);
/**
* 更新状态
*/
@PostMapping
(
value
=
"/updateStatus"
)
R
<
Void
>
updateStatus
();
}
src/main/java/cn/com/glsx/stdinterface/dto/FakeOfflineChangeFrequentlyDTO.java
0 → 100644
View file @
8bfd49e
package
cn
.
com
.
glsx
.
stdinterface
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
@Data
public
class
FakeOfflineChangeFrequentlyDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
Long
id
;
private
Long
createdBy
;
private
Long
updatedBy
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
createdDate
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
updatedDate
;
/**
* 设备号
*/
private
String
sn
;
/**
* 车架号
*/
private
String
vin
;
/**
* 假性离线时间
*/
private
Date
fakeOfflineTime
;
/**
* 1生效,0失效
*/
private
Integer
status
;
}
\ No newline at end of file
\ No newline at end of file
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