REM:
1. 修正JSON返回空字段问题
This commit is contained in:
HuangXin 2020-09-11 11:56:26 +08:00
parent bef1a8881d
commit 630f5b9968
2 changed files with 4 additions and 0 deletions

View File

@ -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.

View File

@ -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.