MenuBean.java 1.43 KB
package com.polysoft.nafmii.bean;

import com.alibaba.fastjson.annotation.JSONField;

public class MenuBean {

    public static final String SHOW = "1";
    public static final String HIDE = "2";
    public static final String CHANGE = "3";

    @JSONField(name = "type")
    private String type;

    @JSONField(name = "moduleName")
    private String moduleName;

    @JSONField(name = "url")
    private String url;

    @JSONField(name = "routePath")
    private String routePath;

    @JSONField(name = "routeName")
    private String routeName;


    public boolean isShow() {
        return SHOW.equals(this.type);
    }

    public boolean isHide() {
        return HIDE.equals(this.type);
    }

    public boolean isChange() {
        return CHANGE.equals(this.type);
    }

    public String getUrl() {
        return url;
    }

    public String getRouteName() {
        return routeName;
    }

    public String getRoutePath() {
        return routePath;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

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

    public void setRoutePath(String routePath) {
        this.routePath = routePath;
    }

    public void setRouteName(String routeName) {
        this.routeName = routeName;
    }
}