package com.crm.rely.backend.core.entity.user.department;

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;

/**
 * @program: crm-backend
 * @description:
 * @author: houn
 * @create: 2019-07-25 13:57
 */
@Data
public class UserDepartmentAddEntity extends BaseAddEntity {

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

    private Integer subIndex;

}
