新增支付接口:支持支付宝pc沙箱支付流程、新增微信native预留接口

This commit is contained in:
gaoqr
2025-05-21 16:40:54 +08:00
parent 3fcd0abbf7
commit f94bf9f38e
28 changed files with 1198 additions and 113 deletions
@@ -0,0 +1,63 @@
package com.cf.imes.framework.common.exception;
import com.cf.imes.framework.common.exception.enums.ServiceErrorCodeRange;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 支付系统异常 Exception
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class PayException extends RuntimeException {
/**
* 业务错误码
*
* @see ServiceErrorCodeRange
*/
private Integer code;
/**
* 错误提示
*/
private String message;
public PayException(Throwable cause) {
super(cause);
}
/**
* 空构造方法,避免反序列化问题
*/
public PayException() {
}
public PayException(ErrorCode errorCode) {
this.code = errorCode.getCode();
this.message = errorCode.getMsg();
}
public PayException(Integer code, String message) {
this.code = code;
this.message = message;
}
public Integer getCode() {
return code;
}
public PayException setCode(Integer code) {
this.code = code;
return this;
}
@Override
public String getMessage() {
return message;
}
public PayException setMessage(String message) {
this.message = message;
return this;
}
}