fix:利盟服务返回值中的数据增加使用泛型进行接收

This commit is contained in:
2025-02-08 17:20:50 +08:00
parent fc1e02264d
commit ed61a25ac4
3 changed files with 51 additions and 17 deletions

View File

@@ -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;
}
}