package cn.lihongjie.coal.dictionary.dto;

import cn.lihongjie.coal.base.dto.CommonDto;

import jakarta.persistence.OneToOne;

import lombok.Data;

import org.hibernate.annotations.Comment;

import java.util.List;

@Data
public class UpdateDictionaryDto extends CommonDto {

    private String componentType;
    private String componentTypeName;

    private String dictType;

    @OneToOne
    @Comment("动态字典关联的脚本")
    private String script;

    private List<DictionaryItemDto> item;

    @Data
    public static class DictionaryItemDto extends CommonDto {

        private List<CreateDictionaryDto.DictionaryItemDto> children;

        private String parent;
    }
}
