package io.renren.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 部门管理实体类
 * </p>
 *
 * @author yinhao
 * @date 2021/6/9 14:25
 */

@Data
@TableName("sys_department")
public class SysDepartmentEntity implements Serializable {
    private static final long serialVersionUID = 8550812117941991504L;

    /**
     * 主键
     */
    private Integer id;

    /**
     * 部门名称
     */
    @NotBlank(message="部门名称不能为空")
    private String departmentName;

    /**
     * 部门识别码
     */
    @NotBlank(message = "部门识别码不能为空")
    private String departmentCode;

    /**
     * 部门领导
     */
    private String leader;

}
