parent
c125e5fa43
commit
dac28e2ccf
|
@ -122,7 +122,7 @@ public class DisposeInfoController {
|
||||||
@ApiOperation("获取平台版本信息")
|
@ApiOperation("获取平台版本信息")
|
||||||
public ProtocolRespDTO<GetPlatformVerInfoRsp> getPlatformVersionInfo() {
|
public ProtocolRespDTO<GetPlatformVerInfoRsp> getPlatformVersionInfo() {
|
||||||
GetPlatformVerInfoRsp rspInfo = GetPlatformVerInfoRsp.builder()
|
GetPlatformVerInfoRsp rspInfo = GetPlatformVerInfoRsp.builder()
|
||||||
.platformVersion(projectGitVersionInfo)
|
.platVer(projectGitVersionInfo)
|
||||||
.build();
|
.build();
|
||||||
rspInfo.setStatus(ErrorCode.ERR_OK.getCode());
|
rspInfo.setStatus(ErrorCode.ERR_OK.getCode());
|
||||||
rspInfo.setMessage(new String[]{ErrorCode.ERR_OK.getMsg()});
|
rspInfo.setMessage(new String[]{ErrorCode.ERR_OK.getMsg()});
|
||||||
|
@ -137,7 +137,7 @@ public class DisposeInfoController {
|
||||||
@RequestBody ProtocolReqDTO<IdArraysReq> mr
|
@RequestBody ProtocolReqDTO<IdArraysReq> mr
|
||||||
) {
|
) {
|
||||||
GetDeviceVerInfoRsp rspInfo = GetDeviceVerInfoRsp.builder()
|
GetDeviceVerInfoRsp rspInfo = GetDeviceVerInfoRsp.builder()
|
||||||
.deviceVersion(new ArrayList<>())
|
.items(new ArrayList<>())
|
||||||
.build();
|
.build();
|
||||||
List<Long> reqIds = Arrays.stream(mr.getMsgContent().getId()).map(Long::parseLong).collect(Collectors.toList());
|
List<Long> reqIds = Arrays.stream(mr.getMsgContent().getId()).map(Long::parseLong).collect(Collectors.toList());
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ public class DisposeInfoController {
|
||||||
dv.setMessage(new String[]{ErrorCode.ERR_NOSUCHDEVICE.getMsg()});
|
dv.setMessage(new String[]{ErrorCode.ERR_NOSUCHDEVICE.getMsg()});
|
||||||
}
|
}
|
||||||
|
|
||||||
rspInfo.getDeviceVersion().add(dv);
|
rspInfo.getItems().add(dv);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return ProtocolRespDTO.result(ErrorCode.ERR_OK, rspInfo);
|
return ProtocolRespDTO.result(ErrorCode.ERR_OK, rspInfo);
|
||||||
|
|
|
@ -19,7 +19,7 @@ import lombok.NoArgsConstructor;
|
||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@JsonPropertyOrder({"ipAddr", "ipPort", "version", "status", "message"})
|
@JsonPropertyOrder({"id", "ipAddr", "ipPort", "version", "status", "message"})
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public class DeviceVersionDetail extends BaseIdResp {
|
public class DeviceVersionDetail extends BaseIdResp {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -15,10 +15,10 @@ import java.util.List;
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@JsonPropertyOrder({"deviceVersion", "status", "message"})
|
@JsonPropertyOrder({"items", "status", "message"})
|
||||||
public class GetDeviceVerInfoRsp {
|
public class GetDeviceVerInfoRsp {
|
||||||
/**
|
/**
|
||||||
* The Device version.
|
* The Device version.
|
||||||
*/
|
*/
|
||||||
private List<DeviceVersionDetail> deviceVersion;
|
private List<DeviceVersionDetail> items;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,10 @@ import lombok.EqualsAndHashCode;
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@JsonPropertyOrder({"platformVersion", "status", "message"})
|
@JsonPropertyOrder({"platVer", "status", "message"})
|
||||||
public class GetPlatformVerInfoRsp extends BaseRespStatus {
|
public class GetPlatformVerInfoRsp extends BaseRespStatus {
|
||||||
/**
|
/**
|
||||||
* The Platform version.
|
* The Platform version.
|
||||||
*/
|
*/
|
||||||
private ProjectGitVersionInfo platformVersion;
|
private ProjectGitVersionInfo platVer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue