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: Menu.java
 * @author create by Singer - Singer email:singer-coder@qq.com
 * @date 2019/4/24 11:13
 * @return
 */
@Data
@TableName("auth_menu")
public class AuthMenu extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 5345514774473655446L;


    /**
     * 系统菜单主键ID
     */
    private String authMenuId = SnowflakeIdWorker.uniqueMainId();

    /**
     * 菜单名称
     */
    private String menuName;


    /**
     * 父级菜单ID
     */
    private String parentId;

    /**
     * 前端path / 即跳转路由
     */
    private String path;


    /**
     * 对应Vue组件
     */
    private String component;

    /**
     * 权限
     */
    private String perms;

    /**
     * 菜单图标
     */
    private String menuIcon;

    /**
     * 菜单类型 0->按钮,1->菜单
     */
    private String menuType;

    /**
     * 序号
     */
    private Integer orderNum;

}
