| | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 行政区域数据 |
| | | * @author pzb |
| | | * @Date 2022/2/9 10:00 |
| | | */ |
| | | * 行政区域数据 |
| | | * |
| | | * @author pzb |
| | | * @Date 2022/2/9 10:00 |
| | | */ |
| | | @Data |
| | | @TableName("t_region") |
| | | public class Region { |
| | |
| | | */ |
| | | @TableField("parent_id") |
| | | private Integer parentId; |
| | | |
| | | /** |
| | | * 子集 |
| | | */ |
| | | @TableField(exist = false) |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | private List<Region> children = new ArrayList<>(); |
| | | |
| | | } |