忽略未知字段
This commit is contained in:
parent
43e9e9862f
commit
7a7af0a496
|
|
@ -4,6 +4,11 @@ package com.ruoyi.device.domain.impl.machine.command;
|
||||||
* 命令类型枚举
|
* 命令类型枚举
|
||||||
*/
|
*/
|
||||||
public enum CommandType {
|
public enum CommandType {
|
||||||
|
/**
|
||||||
|
* 开机
|
||||||
|
*/
|
||||||
|
POWER_ON,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 起飞
|
* 起飞
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
package com.ruoyi.device.domain.impl.tuohengmqtt.model;
|
package com.ruoyi.device.domain.impl.tuohengmqtt.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class DroneRealTimeData {
|
public class DroneRealTimeData {
|
||||||
|
|
||||||
@JsonProperty("msg")
|
@JsonProperty("msg")
|
||||||
|
|
@ -16,6 +18,7 @@ public class DroneRealTimeData {
|
||||||
private DroneInfo data;
|
private DroneInfo data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public static class DroneInfo {
|
public static class DroneInfo {
|
||||||
@JsonProperty("date")
|
@JsonProperty("date")
|
||||||
private String date;
|
private String date;
|
||||||
|
|
@ -136,5 +139,8 @@ public class DroneRealTimeData {
|
||||||
|
|
||||||
@JsonProperty("battery")
|
@JsonProperty("battery")
|
||||||
private String battery;
|
private String battery;
|
||||||
|
|
||||||
|
@JsonProperty("flowRate")
|
||||||
|
private String flowRate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue