package com.crm.rely.backend.core.entity.web.information;

import com.crm.rely.backend.core.constant.ManagerConstant;
import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import com.crm.rely.backend.core.entity.web.activity.login.type.WebActivityLoginTypeSaveEntity;
import com.crm.rely.backend.core.entity.web.activity.tag.WebActivityTagSaveEntity;
import com.crm.rely.backend.core.entity.web.information.tag.WebInformationTagSaveEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

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

@Data
public class WebInformationUpdateEntity extends BaseUpdateEntity {

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

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

    @NotNull(message = ManagerConstant.LANG_NOT_NULL)
    @NotBlank(message = ManagerConstant.LANG_NOT_NULL)
    private String lang;

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

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

    @NotNull(message = ManagerConstant.DELIVERY_TIME_NOT_NULL)
    private Date deliveryTime;

    @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;

    @NotNull(message = ManagerConstant.TAG_NOT_NULL)
    private List<WebInformationTagSaveEntity> tags;

    private Integer topping;

    private String suwebTitle;
}
