package org.dromara.zhishu.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 地区响应体
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DistrictsVo {

    /**
     * label：区划名称
     */
    private String label;

    /**
     * value：区划名称
     */
    private String value;

    /**
     * 区划ID
     */
    private String id;

    /**
     * 下级区划信息
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<DistrictsVo> children;

}
