mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-06 20:47:46 +00:00
feat 微信和支付宝聚合支付处理
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
package cn.bootx.platform.daxpay.sdk.model.assist;
|
||||
|
||||
import cn.bootx.platform.daxpay.sdk.net.DaxPayResponseModel;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* 微信Jsapi预支付签名返回信息
|
||||
* @author xxm
|
||||
* @since 2024/2/10
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class WxJsapiSignModel extends DaxPayResponseModel {
|
||||
|
||||
/** 公众号ID */
|
||||
private String appId;
|
||||
/** 时间戳(秒) */
|
||||
private String timeStamp;
|
||||
/** 随机串 */
|
||||
private String nonceStr;
|
||||
/** 预支付ID, 已经是 prepay_id=xxx 格式 */
|
||||
private String prePayId;
|
||||
/** 微信签名方式 */
|
||||
private String signType;
|
||||
/** 微信签名 */
|
||||
private String paySign;
|
||||
|
||||
|
||||
}
|
@@ -1,44 +0,0 @@
|
||||
package cn.bootx.platform.daxpay.sdk.param.assist;
|
||||
|
||||
import cn.bootx.platform.daxpay.sdk.model.assist.WxJsapiSignModel;
|
||||
import cn.bootx.platform.daxpay.sdk.net.DaxPayRequest;
|
||||
import cn.bootx.platform.daxpay.sdk.response.DaxPayResult;
|
||||
import cn.hutool.core.lang.TypeReference;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 微信预付订单再次签名参数
|
||||
* @author xxm
|
||||
* @since 2024/2/10
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class WxJsapiSignParam extends DaxPayRequest<WxJsapiSignModel>{
|
||||
|
||||
/** 预付订单ID */
|
||||
private String prepayId;
|
||||
|
||||
|
||||
/**
|
||||
* 方法请求路径
|
||||
*
|
||||
* @return 请求路径
|
||||
*/
|
||||
@Override
|
||||
public String path() {
|
||||
return "/unipay/assist/getWxJsapiPrePay";
|
||||
}
|
||||
|
||||
/**
|
||||
* 将请求返回结果反序列化为实体类
|
||||
*
|
||||
* @param json json字符串
|
||||
* @return 反序列后的对象
|
||||
*/
|
||||
@Override
|
||||
public DaxPayResult<WxJsapiSignModel> toModel(String json) {
|
||||
return JSONUtil.toBean(json, new TypeReference<DaxPayResult<WxJsapiSignModel>>() {}, false);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user