mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-09 22:09:05 +00:00
style 返回字段修改
This commit is contained in:
@@ -26,4 +26,7 @@ public class DaxPayResult<T extends DaxPayResponseModel> {
|
||||
|
||||
/** 数据签名 */
|
||||
private String sign;
|
||||
|
||||
/** 追踪ID */
|
||||
private String traceId;
|
||||
}
|
||||
|
@@ -1,9 +1,7 @@
|
||||
package cn.bootx.platform.daxpay.result;
|
||||
|
||||
import cn.bootx.platform.common.core.code.CommonCode;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.slf4j.MDC;
|
||||
|
||||
/**
|
||||
* 支付通用返回参数
|
||||
@@ -14,6 +12,4 @@ import org.slf4j.MDC;
|
||||
@Schema(title = "支付通用返回参数")
|
||||
public class CommonResult {
|
||||
|
||||
@Schema(description = "追踪ID")
|
||||
private String traceId = MDC.get(CommonCode.TRACE_ID);
|
||||
}
|
||||
|
@@ -1,7 +1,12 @@
|
||||
package cn.bootx.platform.daxpay.result;
|
||||
|
||||
import cn.bootx.platform.common.core.code.CommonCode;
|
||||
import cn.bootx.platform.common.core.rest.ResResult;
|
||||
import lombok.*;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
import org.slf4j.MDC;
|
||||
|
||||
/**
|
||||
* 支付通用响应参数
|
||||
@@ -17,6 +22,9 @@ public class DaxResult<T> extends ResResult<T> {
|
||||
/** 数据签名 */
|
||||
private String sign;
|
||||
|
||||
/** 追踪ID */
|
||||
private String traceId = MDC.get(CommonCode.TRACE_ID);
|
||||
|
||||
public DaxResult(int successCode, T data, String success) {
|
||||
super(successCode, data, success);
|
||||
}
|
||||
|
Reference in New Issue
Block a user