package com.bonus.canteen.core.account.domain.param;

import com.bonus.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AccWithdrawParam extends BaseEntity {
    @ApiModelProperty(value = "用户编号")
    private @NotNull(
            message = "用户编号不能为空"
    ) Long userId;
    @ApiModelProperty(
            value = "提现金额/分"
    )
    private @NotNull(
            message = "提现金额不能为空"
    )  @Min(
            value = 0L,
            message = "提现不能小于0"
    ) BigDecimal amount;
}
