package com.ruoyi.order.util.payment.wx.vo;
|
|
import lombok.Data;
|
|
/**
|
* 退款回调结果实体
|
*/
|
@Data
|
public class RefundCallbackResult {
|
private boolean success; // 处理是否成功
|
private String msg; // 结果描述
|
private String orderNo; // 原订单号
|
private String refundNo; // 退款订单号
|
private String refundId; // 微信退款ID
|
private String totalFee; // 原订单金额(分)
|
private String refundFee; // 退款金额(分)
|
private String refundStatus; // 退款状态
|
|
// 成功响应
|
public static RefundCallbackResult success() {
|
return success("处理成功");
|
}
|
|
public static RefundCallbackResult success(String msg) {
|
RefundCallbackResult result = new RefundCallbackResult();
|
result.setSuccess(true);
|
result.setMsg(msg);
|
return result;
|
}
|
|
// 失败响应
|
public static RefundCallbackResult fail(String msg) {
|
RefundCallbackResult result = new RefundCallbackResult();
|
result.setSuccess(false);
|
result.setMsg(msg);
|
return result;
|
}
|
}
|