package com.zhgd.xmgl.modules.basicdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: 系统菜单
 * @author： pds
 * @date： 2020-10-12
 * @version： V1.0
 */
@Data
@TableName("base_menu")
@ApiModel(value = "BaseMenu实体类", description = "BaseMenu")
public class BaseMenu implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 菜单Id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "菜单Id(主键ID)")
    private Long menuId;
    /**
     * 所属模块ID
     */
    @Excel(name = "所属模块ID", width = 15)
    @ApiModelProperty(value = "所属模块ID")
    private Long moduleId;
    /**
     * 父级菜单
     */
    @Excel(name = "父级菜单", width = 15)
    @ApiModelProperty(value = "父级菜单")
    private Long parentId;


    /**
     * 菜单名称
     */
    @Excel(name = "菜单名称", width = 15)
    @ApiModelProperty(value = "菜单名称")
    private String menuName;
    /**
     * 描述
     */
    @Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String menuDesc;

    /**
     * 请求路径
     */
    @Excel(name = "请求路径", width = 15)
    @ApiModelProperty(value = "请求路径")
    private String path;
    /**
     * App请求路径
     */
    @Excel(name = "App请求路径", width = 15)
    @ApiModelProperty(value = "App请求路径")
    private String appPath;

    /**
     * 菜单标题
     */
    @Excel(name = "菜单标题", width = 15)
    @ApiModelProperty(value = "菜单标题")
    private String icon;

    @ApiModelProperty(value = "打开方式:0:_self窗口内,1:_blank新窗口")
    private String target;

    /**
     * 优先级 越小越靠前
     */
    @Excel(name = "优先级 越小越靠前", width = 15)
    @ApiModelProperty(value = "优先级 越小越靠前")
    private Integer priority;
    /**
     * 状态:0-禁用 1-启用
     */
    @Excel(name = "状态:0-禁用 1-启用", width = 15)
    @ApiModelProperty(value = "状态:0-禁用 1-启用")
    private Integer status;

    @ApiModelProperty(value = "是否是直接页面跳转 0：否 1：是 ")
    private String isjump;

    @TableField(exist = false)
    @ApiModelProperty(value = "子集菜单")
    private List<BaseMenu> menuList;
}
