package com.crm.rely.backend.core.entity.system.google;

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

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class SysGoogleGroupEmailAddEntity extends BaseAddEntity {

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

    @NotNull(message = Constants.EMAIL_NOT_NULL_ERROR)
    @NotBlank(message = Constants.EMAIL_NOT_NULL_ERROR)
    private String groupEmail;

}
