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