package com.crm.rely.backend.core.entity.web.activity.give;

import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import com.crm.rely.backend.core.entity.web.activity.give.agent.WebActivityGiveAgentSaveEntity;
import com.crm.rely.backend.core.entity.web.activity.give.type.WebActivityGiveLoginTypeSaveEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class WebActivityGiveAddEntity extends BaseAddEntity {
    @NotNull
    private List<String> countrys;
    @NotNull
    @NotBlank
    private String title;
    @NotNull
    @NotBlank
    private String subTitle;
    @NotNull
    @NotBlank
    private String coverUrl;
    @NotNull
    @NotBlank
    private String content;
    @NotNull
    private Date startTime;
    @NotNull
    private Date endTime;
    @NotNull
    private Integer hot;
    @NotNull
    private Integer valid;
    @NotNull
    private Date revokeDate;

    /**
     * 赠送金额 usd
     */
    @NotNull
    private BigDecimal giveRate;
    @NotNull
    private BigDecimal amountLimit;

    @NotNull
    private List<WebActivityGiveLoginTypeSaveEntity> loginTypes;


    @NotNull
    private List<WebActivityGiveAgentSaveEntity> agentIbNos;
}
