package com.crm.rely.backend.core.entity.web.activity.custom.deposit.raffle;

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

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

@Data
public class WebActivityCustomDepositRaffleAddEntity extends BaseAddEntity {

    @NotNull(message = ManagerConstant.TITLE_NOT_NULL)
    @NotBlank(message = ManagerConstant.TITLE_NOT_NULL)
    private String title;

    @NotNull(message = ManagerConstant.TITLE_NOT_NULL)
    @NotBlank(message = ManagerConstant.TITLE_NOT_NULL)
    private String coverImage;

    @NotNull(message = ManagerConstant.SUB_TITLE_NOT_NULL)
    @NotBlank(message = ManagerConstant.SUB_TITLE_NOT_NULL)
    private String subTitle;

    @NotNull(message = ManagerConstant.CONTENT_NOT_NULL)
    @NotBlank(message = ManagerConstant.CONTENT_NOT_NULL)
    private String content;

    @NotNull(message = Constants.PARAMETER_ERROR)
    @NotBlank(message = Constants.PARAMETER_ERROR)
    private String account;

    @NotNull(message = ManagerConstant.START_TIME_NOT_NULL)
    private Date startTime;

    @NotNull(message = ManagerConstant.END_TIME_NOT_NULL)
    private Date endTime;

    @NotNull(message = ManagerConstant.VALID_NOT_NULL)
    private Integer valid;
}
