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 CashWalletReq implements MoneyChange {
    /**
     * 支付通道 huifu
     */
    @NotBlank(message = "支付通道不能为空")
    private String channel;

    @NotBlank(message = "uid不能为空")
    private String uid;

    @NotBlank(message = "filter不能为空")
    private String filter;

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

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

}
