| | |
| | | package com.iailab.framework.ip.core; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonManagedReference; |
| | | import com.iailab.framework.ip.core.enums.AreaTypeEnum; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.ToString; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | @Data |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | @ToString(exclude = {"parent"}) |
| | | public class Area { |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 父节点 |
| | | */ |
| | | @JsonManagedReference |
| | | private Area parent; |
| | | /** |
| | | * 子节点 |
| | | */ |
| | | @JsonManagedReference |
| | | private List<Area> children; |
| | | |
| | | } |