package com.cool.store.request.wallet;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>
 * 钱包提现Request
 * </p>
 *
 * @author wangff
 * @since 2025/11/18
 */
@Data
public class WalletWithDrawerRequest extends StoreShopRequest {
    @ApiModelProperty("提现金额")
    @Digits(integer = 10, fraction = 2, message = "金额整数位最多10位，小数位最多2位")
    @NotNull(message = "提现金额不能为空")
    private BigDecimal amount;

    @ApiModelProperty("支付密码(sm3加密后字符串)")
    @NotBlank(message = "支付密码不能为空")
    private String payPwd;

    @ApiModelProperty("钱包类型 1.平安 2.网商")
    @NotNull(message = "钱包类型不能为空")
    private Integer walletType;
}
