package cn.ey.biz.module.system.controller.admin.category.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel("管理后台 - 数据字典精简 Response VO")
@Data
public class CategoryDataSimpleRespVO {

    @ApiModelProperty(value = "字典类型", required = true, example = "gender")
    private String dictType;

    @ApiModelProperty(value = "字典键值", required = true, example = "1")
    private String value;

    @ApiModelProperty(value = "字典唯一键值")
    private String dataIdentifier;

    @ApiModelProperty(value = "字典字段值", required = true, example = "1")
    private String dataValue;

    @ApiModelProperty(value = "字典标签", required = true, example = "男")
    private String label;

    @ApiModelProperty(value = "父级ID", required = true, example = "0")
    private Long pid;

    @ApiModelProperty(value = "父级节点唯一值")
    private String dataParentIdentifier;

    @ApiModelProperty(value = "排序码", example = "1")
    private Integer sort;

    @ApiModelProperty(value = "状态", example = "0")
    private Integer status;

    @ApiModelProperty(value = "ID", required = true, example = "0")
    private Long id;

    @ApiModelProperty(value = "是否有子节点")
    private Integer hasChildren;

    private List<CategoryDataSimpleRespVO> children;
}
