Commit 8bfd49e5 by 向延琳

假性离线

1 parent 8001d27b
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();
}
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!