rentaiming
2024-06-28 0219f0fc8f8b79cb50a9e1004b10d63a0edbb9dd
ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/domain/vo/RegionVo.java
@@ -1,32 +1,42 @@
package com.ruoyi.management.domain.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@Data
@ApiModel(value = "地址视图对象", description = "地址图对象")
public class RegionVo {
    @ApiModelProperty(value = "区域代码")
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private String value;
    @ApiModelProperty(value = "区域名称")
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private String label;
    @ApiModelProperty(value = "子级列表")
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private List<RegionVo> children;
    @ApiModelProperty(value = "id")
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private Long id;
    @ApiModelProperty(value = "父级id")
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private Long parentId;
    @ApiModelProperty(value = "层级")
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private Integer level;
    @ApiModelProperty("code")
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private String code;
}