feat:退款
fix:修复bug
This commit is contained in:
1 parent
bb1def88d9
commit
075a9cc876
26 files changed
+467
-97
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
package com.bsd.pjcloud.wallet.api.dto.recharge;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class WalletRechargeRefundSuccess {
|
||||
|
||||
/**
|
||||
* 订单号
|
||||
*/
|
||||
private String refundNo;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 业务类型
|
||||
*/
|
||||
private String bizType;
|
||||
|
||||
/**
|
||||
* 业务id
|
||||
*/
|
||||
private String bizId;
|
||||
|
||||
}
|
||||
+8
@@ -95,11 +95,19 @@ public class WalletManageEntity extends Model<WalletManageEntity> {
|
||||
|
||||
/**
|
||||
* 饭卡绑定状态
|
||||
*
|
||||
* @see WalleCardStatusEnum
|
||||
*/
|
||||
@Schema(description = "饭卡绑定状态")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@Version
|
||||
@Schema(description = "版本号")
|
||||
private Integer version = 0;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
|
||||
+7
@@ -78,6 +78,13 @@ public class WalletTransactionEntity extends Model<WalletTransactionEntity> {
|
||||
@Schema(description = "余额, 单位分")
|
||||
private Integer balance;
|
||||
|
||||
/**
|
||||
* 乐观锁
|
||||
*/
|
||||
@Version
|
||||
@Schema(description = "乐观锁")
|
||||
private Integer version = 0;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
|
||||
+4
@@ -4,6 +4,7 @@ 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.wallet.api.dto.recharge.WalletRechargePaySuccess;
|
||||
import com.bsd.pjcloud.wallet.api.dto.recharge.WalletRechargeRefundSuccess;
|
||||
import com.bsd.pjcloud.wallet.api.entity.recharge.WalletRechargePackageEntity;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -21,4 +22,7 @@ public interface RemoteWalletRechargePackageService {
|
||||
@PostMapping("/wallet-recharge-package/remote/pay-success")
|
||||
R<Boolean> remotePaySuccess(@RequestBody WalletRechargePaySuccess dto);
|
||||
|
||||
@NoToken
|
||||
@PostMapping("/wallet-recharge-package/remote/refund-success")
|
||||
R<Boolean> remoteRefundSuccess(@RequestBody WalletRechargeRefundSuccess dto);
|
||||
}
|
||||
Reference in new issue
Block a user