package com.seer.teach.pay.admin.withdrawal.controller.request;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 分页请求基类
 */
@Schema(name = "PayWithdrawalApplyReq", description = "提现申请")
@Data
public class PayWithdrawalApplyReq {

    @NotNull(message = "提现申请银行账户ID不能为空")
    @Schema(description = "提现到对应的银行账户ID")
    private Integer bankAccountId;

    @NotNull(message = "提现申请金额不能为空")
    @Min(value = 0, message = "提现申请金额不能小于0")
    @Schema(description = "提现申请金额")
    private BigDecimal applyAmount;
}