feat:第三方扣款、退款
This commit is contained in:
1 parent
68419fe9ac
commit
e695b288d0
27 files changed
+705
-86
No files matched your search
+1
@@ -20,6 +20,7 @@ public enum HardTypeEnum {
|
||||
READ_CARD("3", "读卡器"),
|
||||
DOOR("4", "生鲜柜"),
|
||||
MERCHANT_QR_CODE("5", "商户二维码扣款牌"),
|
||||
OTHER("6","其他支付方式(第三方接口对接)")
|
||||
;
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
+1
@@ -18,6 +18,7 @@ public enum HardOrderTypeEnum {
|
||||
FOREIGN_TICKET("3", "外来人员"),
|
||||
STRIDE_DEPT("4", "跨单位"),
|
||||
ZY("5", "正元公务餐"),
|
||||
LB("5", "宁波银行(美好生活)"),
|
||||
;
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.bsd.pjcloud.hard.api.feign;
|
||||
|
||||
import com.bsd.pjcloud.common.core.constant.ServiceNameConstants;
|
||||
import com.bsd.pjcloud.thirdparty.dto.pay.PayDto;
|
||||
import com.bsd.pjcloud.thirdparty.dto.pay.RefundDto;
|
||||
import com.bsd.pjcloud.thirdparty.vo.pay.PayBaseVo;
|
||||
import com.bsd.pjcloud.thirdparty.vo.pay.PayVo;
|
||||
import com.bsd.pjcloud.thirdparty.vo.pay.RefundVo;
|
||||
import com.bsd.pjcloud.wallet.api.constant.WalletTypeEnum;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
@FeignClient(contextId = "remoteHardThirdPayService", value = ServiceNameConstants.HARDWARE_SERVICE)
|
||||
public interface RemoteHardThirdPayService {
|
||||
/**
|
||||
* 第三方支付
|
||||
*/
|
||||
@PostMapping("/hard-third-pay/wallet-refund")
|
||||
PayBaseVo<PayVo> walletPay(@RequestBody PayDto dto, WalletTypeEnum walletType);
|
||||
|
||||
/**
|
||||
* 第三方退款
|
||||
*/
|
||||
@PostMapping("/hard-third-pay/wallet-refund")
|
||||
PayBaseVo<RefundVo> walletRefund(@RequestBody RefundDto dto);
|
||||
|
||||
}
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
com.bsd.pjcloud.hard.api.feign.RemoteHardDoorService
|
||||
com.bsd.pjcloud.hard.api.feign.RemoteHardOrderService
|
||||
com.bsd.pjcloud.hard.api.feign.RemoteHardSpuController
|
||||
com.bsd.pjcloud.hard.api.feign.RemoteHardThirdPayService
|
||||
com.bsd.pjcloud.hard.api.feign.RemoteHardThirdSelfZyService
|
||||
Reference in new issue
Block a user