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 AccSubsidyAddParam extends BaseEntity {
    @ApiModelProperty(value = "用户编号")
    private @NotNull(
            message = "用户编号不能为空"
    ) Long userId;
    @ApiModelProperty(
            value = "充值金额/分"
    )
    private @NotNull(
            message = "金额不能为空"
    ) @Max(
            value = 10000000L,
            message = "超过最大金额限制"
    ) @Min(
            value = 1L,
            message = "小于最小充值金额"
    ) BigDecimal amount;
}
