diff --git a/src/main/java/com/dispose/pojo/dto/protocol/device/info/GetDeviceInfoRsp.java b/src/main/java/com/dispose/pojo/dto/protocol/device/info/GetDeviceInfoRsp.java index 66c9d3f6..197ac6b2 100644 --- a/src/main/java/com/dispose/pojo/dto/protocol/device/info/GetDeviceInfoRsp.java +++ b/src/main/java/com/dispose/pojo/dto/protocol/device/info/GetDeviceInfoRsp.java @@ -1,6 +1,7 @@ package com.dispose.pojo.dto.protocol.device.info; import com.dispose.pojo.dto.protocol.base.BaseRespStatus; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import lombok.AllArgsConstructor; import lombok.Builder; @@ -21,6 +22,7 @@ import java.util.List; @NoArgsConstructor @AllArgsConstructor @JsonPropertyOrder({"items", "status", "message"}) +@JsonInclude(JsonInclude.Include.NON_NULL) public class GetDeviceInfoRsp extends BaseRespStatus { /** * The Items. diff --git a/src/main/java/com/dispose/pojo/dto/protocol/task/TaskStopRsp.java b/src/main/java/com/dispose/pojo/dto/protocol/task/TaskStopRsp.java index 47c865f7..63129daf 100644 --- a/src/main/java/com/dispose/pojo/dto/protocol/task/TaskStopRsp.java +++ b/src/main/java/com/dispose/pojo/dto/protocol/task/TaskStopRsp.java @@ -1,6 +1,7 @@ package com.dispose.pojo.dto.protocol.task; import com.dispose.pojo.dto.protocol.base.BaseRespStatus; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import lombok.AllArgsConstructor; import lombok.Builder; @@ -21,6 +22,7 @@ import java.util.List; @NoArgsConstructor @AllArgsConstructor @JsonPropertyOrder({"items", "status", "message"}) +@JsonInclude(JsonInclude.Include.NON_NULL) public class TaskStopRsp extends BaseRespStatus { /** * The Items.