fix: 补充字段
This commit is contained in:
@@ -2,13 +2,15 @@ package cn.code.nl.framework.common.pojo;
|
|||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 基础DTO对象
|
* 基础DTO对象
|
||||||
* @Author: liyongde
|
* @Author: liyongde
|
||||||
* @Date: 2026/7/24 8:49
|
* @Date: 2026/7/24 8:49
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class AcsBaseReqDTO {
|
public class AcsBaseReqDTO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 请求号: traceId
|
* 请求号: traceId
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2,13 +2,15 @@ package cn.code.nl.framework.common.pojo;
|
|||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* acs返回基础对象
|
* acs返回基础对象
|
||||||
* @Author: liyongde
|
* @Author: liyongde
|
||||||
* @Date: 2026/7/24 10:27
|
* @Date: 2026/7/24 10:27
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class AcsBaseRespDTO {
|
public class AcsBaseRespDTO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 是否整体成功
|
* 是否整体成功
|
||||||
*/
|
*/
|
||||||
@@ -23,4 +25,15 @@ public class AcsBaseRespDTO {
|
|||||||
* 响应消息
|
* 响应消息
|
||||||
*/
|
*/
|
||||||
private String msg;
|
private String msg;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求号: traceId
|
||||||
|
*/
|
||||||
|
private String traceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 时间
|
||||||
|
*/
|
||||||
|
private Long timestamp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import cn.code.nl.framework.common.pojo.AcsBaseRespDTO;
|
|||||||
import cn.code.nl.framework.common.pojo.CommonResult;
|
import cn.code.nl.framework.common.pojo.CommonResult;
|
||||||
import cn.code.nl.framework.common.util.json.JsonUtils;
|
import cn.code.nl.framework.common.util.json.JsonUtils;
|
||||||
import cn.code.nl.framework.common.util.spring.SpringUtils;
|
import cn.code.nl.framework.common.util.spring.SpringUtils;
|
||||||
|
import cn.hutool.core.util.IdUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
@@ -103,6 +104,8 @@ public class AcsUtil {
|
|||||||
AcsBaseRespDTO response = new AcsBaseRespDTO();
|
AcsBaseRespDTO response = new AcsBaseRespDTO();
|
||||||
response.setSuccess(true);
|
response.setSuccess(true);
|
||||||
response.setCode("200");
|
response.setCode("200");
|
||||||
|
response.setTraceId(IdUtil.simpleUUID());
|
||||||
|
response.setTimestamp(System.currentTimeMillis());
|
||||||
return JsonUtils.convertObject(response, responseType);
|
return JsonUtils.convertObject(response, responseType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user