Menu.java 2.61 KB
package com.huaheng.pc.system.menu.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

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 com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Maps;
import lombok.Data;


/**
 * 角色对象 sys_menu
 * 
 * @author huaheng
 */
@Data
@TableName(value = "sys_menu")
public class Menu
{
    private static final long serialVersionUID = 1L;
    /** 菜单ID */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /** 菜单名称 */
    @TableField
    private String menuName;
    /** 父菜单名称 */
    @TableField
    private String parentName;
    /** 父菜单ID */
    @TableField
    private Integer parentId;
    /** 显示顺序 */
    @TableField
    private String orderNum;
    /** 菜单URL */
    @TableField
    private String url;
    /** 类型:0目录,1菜单,2按钮 */
    @TableField
    private String menuType;
    /** 手机端菜单*/
    @TableField
    private Boolean menuMobile;
    /** 显示 */
    @TableField
    private Boolean visible;
    /** 权限字符串 */
    @TableField
    private String perms;
    /** 菜单图标 */
    @TableField
    private String icon;
    /** 仓库Id */
    @TableField
    private Integer warehouseId;
    /** 仓库编码 */
    @TableField
    private String warehouseCode;
    /** 创建者 */
    @TableField
    private String createBy;
    /** 创建时间 */
    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /** 更新者 */
    @TableField
    private String updateBy;
    /** 更新时间 */
    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /** 备注 */
    @TableField
//    @TableField(exist=false)
    private String remark;
    /** 请求参数 */
    private Map<String, Object> params;
    /** 搜索值 */
    private String searchValue;
    /** 子菜单 */
    private List<Menu> children = new ArrayList<Menu>();

    @Override
    public String toString()
    {
        return "Menu [id=" + id + ", menuName=" + menuName + ", warehouseId=" + warehouseId + ", warehouseCode=" + warehouseCode
                + ", parentName=" + parentName + ", parentId=" + parentId + ", orderNum=" + orderNum + ", url=" + url
                + ", menuType=" + menuType + ", visible=" + visible + ", perms=" + perms + ", icon=" + icon + ", children=" + children + "]";
    }

}