|
|
@@ -38,6 +38,11 @@ public class TagNodeVo {
|
|
|
*/
|
|
|
private String categoryId;
|
|
|
|
|
|
+ /**
|
|
|
+ * tag1/tag2/tag3/..
|
|
|
+ */
|
|
|
+ private String tagPath;
|
|
|
+
|
|
|
private List<TagNodeVo> children = new ArrayList<>();
|
|
|
|
|
|
|
|
|
@@ -47,58 +52,38 @@ public class TagNodeVo {
|
|
|
this.tagNm = entity.getTagNm();
|
|
|
this.tagCode = entity.getTagCode();
|
|
|
this.categoryId = entity.getCategoryId();
|
|
|
- }
|
|
|
-
|
|
|
- public String getCategoryId() {
|
|
|
- return categoryId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCategoryId(String categoryId) {
|
|
|
- this.categoryId = categoryId;
|
|
|
+ this.tagPath = entity.getTagPath();
|
|
|
}
|
|
|
|
|
|
public String getId() {
|
|
|
return id;
|
|
|
}
|
|
|
|
|
|
- public void setId(String id) {
|
|
|
- this.id = id;
|
|
|
- }
|
|
|
-
|
|
|
public String getParentId() {
|
|
|
return parentId;
|
|
|
}
|
|
|
|
|
|
- public void setParentId(String parentId) {
|
|
|
- this.parentId = parentId;
|
|
|
- }
|
|
|
-
|
|
|
public String getTagNm() {
|
|
|
return tagNm;
|
|
|
}
|
|
|
|
|
|
- public void setTagNm(String tagNm) {
|
|
|
- this.tagNm = tagNm;
|
|
|
- }
|
|
|
-
|
|
|
public String getTagCode() {
|
|
|
return tagCode;
|
|
|
}
|
|
|
|
|
|
- public void setTagCode(String tagCode) {
|
|
|
- this.tagCode = tagCode;
|
|
|
+ public String getCategoryId() {
|
|
|
+ return categoryId;
|
|
|
}
|
|
|
|
|
|
+ public String getTagPath() {
|
|
|
+ return tagPath;
|
|
|
+ }
|
|
|
|
|
|
public List<TagNodeVo> getChildren() {
|
|
|
return children;
|
|
|
}
|
|
|
|
|
|
- public void setChildren(List<TagNodeVo> children) {
|
|
|
- this.children = children;
|
|
|
- }
|
|
|
-
|
|
|
- public void addChild(TagNodeVo child) {
|
|
|
- this.children.add(child);
|
|
|
+ public void addChild(TagNodeVo currentNode) {
|
|
|
+ this.children.add(currentNode);
|
|
|
}
|
|
|
}
|