fix:利盟服务返回值中的数据增加使用泛型进行接收
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.dpkj.common.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
@@ -18,7 +19,7 @@ import java.io.Serializable;
|
||||
@ToString
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class LexMarkResultDTO implements Serializable {
|
||||
public class LexMarkResultDTO <T> implements Serializable {
|
||||
|
||||
|
||||
/**
|
||||
@@ -46,21 +47,27 @@ public class LexMarkResultDTO implements Serializable {
|
||||
*/
|
||||
private String cmdName;
|
||||
|
||||
/**
|
||||
* 返回参数
|
||||
*/
|
||||
private Param param;
|
||||
|
||||
/**
|
||||
* 详情描述
|
||||
*/
|
||||
private String desc;
|
||||
|
||||
/**
|
||||
* 利盟服务返回的参数
|
||||
*/
|
||||
@JsonIgnore
|
||||
private String param;
|
||||
|
||||
/**
|
||||
* 实际返回的接受的参数对象(通过param转换过后的)
|
||||
*/
|
||||
private T data;
|
||||
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public static class Param { // 不同的actionName导致返回值不同,需要的参数可以加上
|
||||
public static class Param {
|
||||
|
||||
/**
|
||||
* 请求ID
|
||||
@@ -102,5 +109,7 @@ public class LexMarkResultDTO implements Serializable {
|
||||
*/
|
||||
private String desc;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user