| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Accessors(chain = true) |
| | | public class TreeEntity extends BaseEntity { |
| | | public class TreeEntity<T> extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "子部门") |
| | | private List<?> children = new ArrayList<>(); |
| | | private List<T> children = new ArrayList<>(); |
| | | |
| | | } |