package com.yzx.model.admin;

public class Menu {
    private int id;
    private Long parentId;//父类id
    private Long _parentId;//父类id,用来匹配easyui的父类id
    private String name;//菜单名称
    private String url;//点击后的url
    private String icon;//菜单icon图表

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Long get_parentId() {
        _parentId = parentId;
        return _parentId;
    }

    public void set_parentId(Long _parentId) {
        this._parentId = _parentId;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "parentId=" + parentId +
                ", name='" + name + '\'' +
                '}';
    }
}
