2026-06-25 a26b31cc9f3ee9b21b1a754e80fa7359e8a7a8f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package cn.iocoder.yudao.module.pay.service.wallet.bo;
 
import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.pay.enums.wallet.PayWalletBizTypeEnum;
import lombok.Data;
 
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
 
/**
 * 创建钱包流水 BO
 *
 * @author jason
 */
@Data
public class WalletTransactionCreateReqBO {
 
    /**
     * 钱包编号
     *
     */
    @NotNull(message = "钱包编号不能为空")
    private Long walletId;
 
    /**
     * 交易金额,单位分
     *
     * 正值表示余额增加,负值表示余额减少
     */
    @NotNull(message = "交易金额不能为空")
    private Integer price;
 
    /**
     * 交易后余额,单位分
     */
    @NotNull(message = "交易后余额不能为空")
    private Integer balance;
 
    /**
     * 关联业务分类
     *
     * 枚举 {@link PayWalletBizTypeEnum#getType()}
     */
    @NotNull(message = "关联业务分类不能为空")
    @InEnum(PayWalletBizTypeEnum.class)
    private Integer bizType;
 
    /**
     * 关联业务编号
     */
    @NotEmpty(message = "关联业务编号不能为空")
    private String bizId;
 
    /**
     * 流水说明
     */
    @NotEmpty(message = "流水说明不能为空")
    private String title;
}