package cn.common.repository.entity;

import cn.common.common.entity.BaseEntity;
import cn.common.common.utils.spring.SnowflakeIdWorker;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.*;


/**
 * 权限模块->部门实体
 * @title: AuthDepartment.java
 * @author create by Singer - Singer email:singer-coder@qq.com
 * @date 2019/4/24 11:15
 */
@Data
@TableName("auth_department")
public class AuthDepartment extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 8710483866928580355L;

    /**
     * 部门主键ID
     */
    private String departmentId = SnowflakeIdWorker.uniqueMainId();


    /**
     * 部门名称
     */
    private String departmentName;


    /**
     * 上级部门
     */
    private String parentId;

    /**
     * 排序
     */
    private Integer orderNum;

}
