package com.sckw.payment.model.vo.req;

import com.sckw.payment.model.vo.res.MoneyChange;
import jakarta.validation.constraints.Digits;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 新增账目
 *
 * @author xucaiqin
 * @date 2023-08-29 09:14:04
 */
@Getter
@Setter
public class AddWalletReq implements MoneyChange {
    /**
     * 支付通道 huifu
     */
    @NotBlank(message = "支付通道不能为空")
    private String channel;

    @NotBlank(message = "合作企业不能为空")
    private String entId;

    @Positive(message = "充值金额必须大于0")
    @Digits(message = "小数位数过长", integer = 10, fraction = 2)
    private BigDecimal money;

    @Size(message = "备注不能超过200")
    private String remark;

}
