package com.zhongshu.card.server.core.dataConfig;

import com.zhongshu.card.client.type.DictionaryType;
import com.zhongshu.card.server.core.domain.dictionary.Dictionary;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "dictionary")
public class DictionaryInitConfig {

    private List<Dictionary> dictionaryList;


    @Data
    public static class Dictionary{

        private String key;

        private String name;

        private DictionaryType type;

        private String description;

        private Integer sort;

        private List<Dictionary> item;

    }


}
