package com.ruoyi.system.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseLongitudeLatitude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@ApiModel("区域树对象")
@Data
public class AreaResultDTO implements Serializable {
    @ApiModelProperty("区域ID")
    private Long id;

    @ApiModelProperty("区域编码")
    private String areaCode;

    @ApiModelProperty("区域名称")
    private String areaName;

    @ApiModelProperty("区域父级ID")
    private Long parentId;

    @ApiModelProperty("岗位ID")
    private Long postId;

    @ApiModelProperty("岗位名称")
    private String postName;

//    @ApiModelProperty("经度")
//    private BigDecimal longitude;

//    @ApiModelProperty("维度")
//    private BigDecimal latitude;

    /**
     * 经纬度的集合
     */
    @TableField(exist = false)
    private List<BaseLongitudeLatitude> currentLnglatList;


    @ApiModelProperty("子级区域集合")
    private List<AreaResultDTO> childList;

    @ApiModelProperty("区域负责人集合")
    private List<AreaUserDTO> areaUserList;
}
