All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itheima.auth.sdk.dto.OrgUserTreeDTO Maven / Gradle / Ivy

package com.itheima.auth.sdk.dto;

import java.util.List;

/**
 * 组织树
 */
public class OrgUserTreeDTO {
    private List children;
    private String label;
    private Long id;
    private Long parentId;
    private Boolean status;
    private Integer type;

    public Boolean getEnable() {
        if (type == 1 && (children == null || children.size() == 0)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("OrgUserTreeDTO{");
        sb.append("children=").append(children);
        sb.append(", label='").append(label).append('\'');
        sb.append(", id=").append(id);
        sb.append(", parentId=").append(parentId);
        sb.append(", status=").append(status);
        sb.append(", type=").append(type);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy