package com.crm.rely.backend.core.entity.system.email.template;

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

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

@Data
public class SysEmailTemplateBaseEntity extends BaseUpdateEntity {

    @NotBlank(message = ManagerConstant.EMAIL_CODE_NOT_NULL)
    @NotNull(message = ManagerConstant.EMAIL_CODE_NOT_NULL)
    private String code;

    @NotBlank(message = ManagerConstant.EMAIL_NAME_NOT_NULL)
    @NotNull(message = ManagerConstant.EMAIL_NAME_NOT_NULL)
    private String name;

    @NotBlank(message = ManagerConstant.EMAIL_SUBJECT_NOT_NULL)
    @NotNull(message = ManagerConstant.EMAIL_SUBJECT_NOT_NULL)
    private String subject;

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

    @NotBlank(message = ManagerConstant.EMAIL_TYPE_NOT_NULL)
    @NotNull(message = ManagerConstant.EMAIL_TYPE_NOT_NULL)
    private String type;

    private List<Long> emailConfigId;

    private Integer notificationObject;
}
