package com.tofly.ghrq_route.module.user.domain;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

@Entity(nameInDb = "DB_USER_MENU")
public class UserMenuBean {
    /**
     * code : 1
     * name : 隐患
     * icon : null
     * id : 306
     * sort : 1
     * type : 0
     * parentId : null
     */

    @Id @NotNull @Unique
    private String id;
    private String code;
    private String name;
    private String icon;
    private int sort;
    private String type;
    private String parentId;
    private String userid;


    @Generated(hash = 1827776107)
    public UserMenuBean(@NotNull String id, String code, String name, String icon,
            int sort, String type, String parentId, String userid) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.icon = icon;
        this.sort = sort;
        this.type = type;
        this.parentId = parentId;
        this.userid = userid;
    }

    @Generated(hash = 918859225)
    public UserMenuBean() {
    }

    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getCode() {
        return this.code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getIcon() {
        return this.icon;
    }
    public void setIcon(String icon) {
        this.icon = icon;
    }
    public int getSort() {
        return this.sort;
    }
    public void setSort(int sort) {
        this.sort = sort;
    }
    public String getType() {
        return this.type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getParentId() {
        return this.parentId;
    }
    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
    public String getUserid() {
        return this.userid;
    }
    public void setUserid(String userid) {
        this.userid = userid;
    }
}
