You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
1.7 KiB
88 lines
1.7 KiB
package com.mh.user.model; |
|
|
|
import java.util.List; |
|
import java.util.StringJoiner; |
|
|
|
/** |
|
* @author LJF |
|
* @version 1.0 |
|
* @project CHWS |
|
* @description 区域楼栋树形结构数据 |
|
* @date 2025-09-08 17:28:47 |
|
*/ |
|
public class AreaBuildingTreeModel { |
|
|
|
private Long id; |
|
|
|
private String name; |
|
|
|
private Long parentId; |
|
|
|
private int sort; |
|
|
|
/** |
|
* 层级:0:学校,1:区域,2:楼栋 |
|
*/ |
|
private int level; |
|
|
|
private List<AreaBuildingTreeModel> children; |
|
|
|
public int getLevel() { |
|
return level; |
|
} |
|
|
|
public void setLevel(int level) { |
|
this.level = level; |
|
} |
|
|
|
public int getSort() { |
|
return sort; |
|
} |
|
|
|
public void setSort(int sort) { |
|
this.sort = sort; |
|
} |
|
|
|
public Long getId() { |
|
return id; |
|
} |
|
|
|
public void setId(Long id) { |
|
this.id = id; |
|
} |
|
|
|
public String getName() { |
|
return name; |
|
} |
|
|
|
public void setName(String name) { |
|
this.name = name; |
|
} |
|
|
|
public Long getParentId() { |
|
return parentId; |
|
} |
|
|
|
public void setParentId(Long parentId) { |
|
this.parentId = parentId; |
|
} |
|
|
|
public List<AreaBuildingTreeModel> getChildren() { |
|
return children; |
|
} |
|
|
|
public void setChildren(List<AreaBuildingTreeModel> children) { |
|
this.children = children; |
|
} |
|
|
|
@Override |
|
public String toString() { |
|
return new StringJoiner(", ", AreaBuildingTreeModel.class.getSimpleName() + "[", "]") |
|
.add("id=" + id) |
|
.add("name='" + name + "'") |
|
.add("parentId='" + parentId + "'") |
|
.add("children=" + children) |
|
.toString(); |
|
} |
|
|
|
}
|
|
|