package com.xinelu.manage.vo.agency;

import com.xinelu.manage.domain.agency.Agency;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 机构树图信息对象vo agency
 *
 * @author zh
 * @date 2024-02-26
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class AgencyVO extends Agency {


    /**
     * 主键id
     */
    private String provinceName;

    /**
     * 父级id
     */
    private String provinceCode;

    /**
     * 主键id
     */
    private String cityName;

    /**
     * 父级id
     */
    private String cityCode;

    /**
     * 主键id
     */
    private String regionName;

    /**
     * 父级id
     */
    private String regionCode;

    /**
     * 主键id
     */
    private String streetName;

    /**
     * 父级id
     */
    private String streetCode;

    /**
     * 社区名称
     */
    private String communityName;

    /**
     * 社区区域编码
     */
    private String communityCode;

    /**
     * 上级机构
     */
    private String parentAgencyName;

    private String value;

    private List<AgencyVO> children = new ArrayList<AgencyVO>();

    public List<AgencyVO> getChildren() {
        return children;
    }

    public void setChildren(List<AgencyVO> children) {
        this.children = children;
    }
}
