feat:付款码支付
This commit is contained in:
1 parent
92c5c630bb
commit
4f50cc2952
53 files changed
+630
-2298
No files matched your search
+9
-1
@@ -3,6 +3,7 @@ package com.bsd.pjcloud.thirdparty.api.feign;
|
||||
import com.bsd.pjcloud.common.core.constant.ServiceNameConstants;
|
||||
import com.bsd.pjcloud.common.core.util.R;
|
||||
import com.bsd.pjcloud.common.feign.annotation.NoToken;
|
||||
import com.bsd.pjcloud.thirdparty.dto.appplus.ThirdMicropayDto;
|
||||
import com.bsd.pjcloud.wallet.api.entity.mch.MchManageEntity;
|
||||
import com.bsd.pjcloud.wallet.api.vo.MchManageVo;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
@@ -17,7 +18,14 @@ public interface RemoterThirdAppPlusPayService {
|
||||
* 编辑商户的回调
|
||||
*/
|
||||
@NoToken
|
||||
@PostMapping("/remoter/change-mch")
|
||||
@PostMapping("/pay-remoter/change-mch")
|
||||
R<Boolean> remoterChangeMch(@RequestBody MchManageVo dto);
|
||||
|
||||
/**
|
||||
* 付款码支付
|
||||
*/
|
||||
@NoToken
|
||||
@PostMapping("/pay-remoter/micropay")
|
||||
R<String> remoterMicropay(@RequestBody ThirdMicropayDto dto);
|
||||
|
||||
}
|
||||
+1
@@ -15,6 +15,7 @@ public enum AppPlusPlatformTypeEnum {
|
||||
|
||||
WECHAT("10", "微信"),
|
||||
ALI_PAY("20", "支付宝"),
|
||||
ZAX_APP_WALLET("30", "资安信-钱包"),
|
||||
;
|
||||
|
||||
private final String type;
|
||||
|
||||
+2
-1
@@ -13,7 +13,8 @@ import java.util.Arrays;
|
||||
@Getter
|
||||
public enum ThirdPayOrderBizTypeEnum {
|
||||
|
||||
MINI_APP_WALLET_RECHARGE("10", "小程序用户钱包充值"),
|
||||
MINI_APP_RECHARGE("10", "小程序用户钱包充值"),
|
||||
YXFJ_PAY("20", "云消费机付款码支付"),
|
||||
;
|
||||
|
||||
private final String type;
|
||||
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto.appplus;
|
||||
|
||||
import com.bsd.pjcloud.thirdparty.constant.miniplatform.AppPlusPlatformTypeEnum;
|
||||
import com.bsd.pjcloud.thirdparty.constant.pay.ThirdPayOrderBizTypeEnum;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ThirdMicropayDto {
|
||||
|
||||
/**
|
||||
* 充值业务类型
|
||||
*/
|
||||
@NotNull(message = "充值业务类型不能为空")
|
||||
private ThirdPayOrderBizTypeEnum bizType;
|
||||
|
||||
/**
|
||||
* 充值业务id
|
||||
*/
|
||||
@NotEmpty(message = "充值业务id不能为空")
|
||||
private String bizId;
|
||||
|
||||
/**
|
||||
* 平台
|
||||
*/
|
||||
@NotNull(message = "小程序平台标识不能为空")
|
||||
private AppPlusPlatformTypeEnum miniPlatformType;
|
||||
|
||||
/**
|
||||
* 金额(分)
|
||||
*/
|
||||
private Integer amount;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 用户商户id
|
||||
*/
|
||||
private Long mchId;
|
||||
|
||||
/**
|
||||
* 用户唯一标识
|
||||
*/
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 付款码支付code
|
||||
*/
|
||||
private String devicePayCode;
|
||||
|
||||
}
|
||||
+1
-1
@@ -22,7 +22,7 @@ public class ThirdMiniAppPayDto {
|
||||
private String bizId;
|
||||
|
||||
/**
|
||||
* 小程序平台
|
||||
* 平台
|
||||
*/
|
||||
@NotNull(message = "小程序平台标识不能为空")
|
||||
private AppPlusPlatformTypeEnum miniPlatformType;
|
||||
|
||||
+5
@@ -46,4 +46,9 @@ public class ThirdAppPlusPayDto {
|
||||
*/
|
||||
private Integer amount;
|
||||
|
||||
/**
|
||||
* 付款码支付code
|
||||
*/
|
||||
private String devicePayCode;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user