package com.crm.rely.backend.core.entity.follow.cpt;

import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
public class FollowCptInfoUpdateEntity extends BaseUpdateEntity {
    /**
     * 比赛名称
     */
    @NotNull(message = "name_not_null")
    @NotBlank(message = "name_not_null")
    @Size(min = 0, max = 50, message = "parameter_error")
    private String name;
    /**
     * 比赛编号
     */
    @NotNull(message = "parameter_error")
    @NotBlank(message = "parameter_error")
    @Size(min = 0, max = 50, message = "parameter_error")
    private String infoCode;
    /**
     * 比赛开始时间
     */
    @NotNull(message = "param_date_range_not_null")
    private Date startDate;
    /**
     * 比赛结束时间
     */
    @NotNull(message = "param_date_range_not_null")
    private Date endDate;
    /**
     * 报名开始时间
     */
    @NotNull(message = "param_date_range_not_null")
    private Date signStartDate;
    /**
     * 报名结束时间
     */
    @NotNull(message = "param_date_range_not_null")
    private Date signEndDate;
    /**
     * 报名截至时间
     */
    @NotNull(message = "param_date_range_not_null")
    private Date signDeadLine;
    /**
     * 初始奖池
     */
    @Min(value = 0, message = "parameter_error")
    private Float initialLottery;

    @NotNull(message = "parameter_error")
    @NotBlank(message = "parameter_error")
    private String signScope;
    /**
     * 最小入金限制
     */
    @Min(value = 0, message = "parameter_error")
    private Float minDepositLimit;
    /**
     * 新增账户添加的奖金
     */
    @Min(value = 0, message = "parameter_error")
    private Float lotteryPerLogin;

    private String pageAddress;

}
