package com.sobot.common.login.model;

import java.io.Serializable;

//权限信息
public class ServiceFunctionVoModel implements Serializable {
    //旧版console权限标识
    private String id;
    //旧版console权限是否开启
    private boolean checked;
    //旧版console权限是否开启（入库使用） 0 没有，1开启 值从checked来
    private int checkedCode;
    //新版console权限标识
    private String code;
    //是否有子类权限
    private boolean hasChildren;

    public ServiceFunctionVoModel() {
    }

    public String getId() {
        return id;
    }

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

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isHasChildren() {
        return hasChildren;
    }

    public void setHasChildren(boolean hasChildren) {
        this.hasChildren = hasChildren;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public int getCheckedCode() {
        return checkedCode;
    }

    public void setCheckedCode(int checkedCode) {
        this.checkedCode = checkedCode;
    }

    @Override
    public String toString() {
        return "ServiceFunctionVoModel{" +
                "id='" + id + '\'' +
                ", checked=" + checked +
                ", checkedCode=" + checkedCode +
                ", code='" + code + '\'' +
                ", hasChildren=" + hasChildren +
                '}';
    }
}
