【代码评审】商城:分销提现时,支持余额自动添加,以及微信提现到余额里

This commit is contained in:
YunaiV
2024-10-13 12:37:22 +08:00
parent 602bd5f93c
commit 081ef0502c
28 changed files with 149 additions and 139 deletions

View File

@@ -13,6 +13,7 @@ import jakarta.validation.constraints.NotNull;
@Data
public class PayTransferNotifyReqDTO {
// TODO 芋艿:要不要改成 orderId 待定;
/**
* 商户转账单号
*/
@@ -24,4 +25,5 @@ public class PayTransferNotifyReqDTO {
*/
@NotNull(message = "转账订单编号不能为空")
private Long payTransferId;
}

View File

@@ -21,9 +21,11 @@ public interface PayTransferApi {
Long createTransfer(@Valid PayTransferCreateReqDTO reqDTO);
/**
* 获转账单详细
* 获转账单
*
* @param id 转账单编号
* @return 转账单详细
* @return 转账单
*/
PayTransferRespDTO getTransfer(Long id);
}

View File

@@ -1,5 +1,6 @@
package cn.iocoder.yudao.module.pay.api.transfer.dto;
import cn.iocoder.yudao.module.pay.enums.transfer.PayTransferStatusEnum;
import lombok.Data;
@Data
@@ -12,7 +13,6 @@ public class PayTransferRespDTO {
/**
* 转账单号
*
*/
private String no;
@@ -24,9 +24,8 @@ public class PayTransferRespDTO {
/**
* 转账状态
*
* 枚举 {@link PayTransferStatusRespEnum}
* 枚举 {@link PayTransferStatusEnum}
*/
private Integer status;
}

View File

@@ -10,16 +10,21 @@ import cn.iocoder.yudao.module.pay.api.wallet.dto.PayWalletRespDTO;
*/
public interface PayWalletApi {
// TODO @luchi1改成 addWalletBalance2PayWalletCreateReqDto 搞成 userId、userType3bizType 使用 integer不然后续挪到 cloud 不好弄,因为枚举不好序列化
/**
* 添加钱包
*
* @param reqDTO 创建请求
*/
void addWallet(PayWalletCreateReqDto reqDTO);
// TODO @luchi不用去 getWalletByUserId 钱包直接添加余额就好。里面内部去创建。如果删除掉的化PayWalletRespDTO 也删除哈。
/**
* 根据用户id获取钱包信息
* 根据用户编号,获取钱包信息
*
* @param userId 用户id
* @return 钱包信息
*/
PayWalletRespDTO getWalletByUserId(Long userId);
}