【代码评审】商城:分销提现时,支持余额自动添加,以及微信提现到余额里
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
@@ -21,9 +21,11 @@ public interface PayTransferApi {
|
||||
Long createTransfer(@Valid PayTransferCreateReqDTO reqDTO);
|
||||
|
||||
/**
|
||||
* 获取转账单详细
|
||||
* 获得转账单
|
||||
*
|
||||
* @param id 转账单编号
|
||||
* @return 转账单详细
|
||||
* @return 转账单
|
||||
*/
|
||||
PayTransferRespDTO getTransfer(Long id);
|
||||
|
||||
}
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
}
|
||||
|
@@ -10,16 +10,21 @@ import cn.iocoder.yudao.module.pay.api.wallet.dto.PayWalletRespDTO;
|
||||
*/
|
||||
public interface PayWalletApi {
|
||||
|
||||
// TODO @luchi:1)改成 addWalletBalance;2)PayWalletCreateReqDto 搞成 userId、userType;3)bizType 使用 integer,不然后续挪到 cloud 不好弄,因为枚举不好序列化
|
||||
/**
|
||||
* 添加钱包
|
||||
*
|
||||
* @param reqDTO 创建请求
|
||||
*/
|
||||
void addWallet(PayWalletCreateReqDto reqDTO);
|
||||
|
||||
// TODO @luchi:不用去 getWalletByUserId 钱包,直接添加余额就好。里面内部去创建。如果删除掉的化,PayWalletRespDTO 也删除哈。
|
||||
/**
|
||||
* 根据用户id获取钱包信息
|
||||
* 根据用户编号,获取钱包信息
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 钱包信息
|
||||
*/
|
||||
PayWalletRespDTO getWalletByUserId(Long userId);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user