(improvement)(chat) Add domain tree for agent and plugin setting (#718)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-02-04 17:20:23 +08:00
committed by GitHub
parent 2546d1c0e1
commit 75853a8e9e
8 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package com.tencent.supersonic.headless.api.pojo.response;
import com.google.common.collect.Lists;
import com.tencent.supersonic.common.pojo.enums.TypeEnums;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ItemResp {
private Long id;
private Long parentId;
private String name;
private TypeEnums type;
private List<ItemResp> children = Lists.newArrayList();
public ItemResp(Long id, Long parentId, String name, TypeEnums type) {
this.id = id;
this.parentId = parentId;
this.name = name;
this.type = type;
}
}