package com.zhongshu.card.server.core.model.dictionary;

import com.zhongshu.card.client.type.DictionaryType;
import com.zhongshu.card.server.core.domain.dictionary.Dictionary;
import com.zhongshu.card.server.core.domain.dictionary.DictionaryItem;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.DBRef;

import java.util.List;

@Data
public class DItemChildrenResult {

    private String id;

    //字典id
    private Dictionary dictionary;

    //父级id
    private String parentId;

    //唯一值
    private String key;

    //字典项
    private String name;

    //类型
    private DictionaryType type;

    //排序
    private Integer sort;

    //禁用状态
    private boolean disable;

    private Long level;

    private List<DItemChildrenResult> children;

}
