package com.lesingle.creation.dto.dict;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import java.util.List;

/**
 * 创建字典 DTO
 */
@Data
@Schema(description = "创建字典请求")
public class CreateDictDTO {

    @NotBlank(message = "字典名称不能为空")
    @Schema(description = "字典名称", example = "性别")
    private String name;

    @NotBlank(message = "字典编码不能为空")
    @Schema(description = "字典编码", example = "gender")
    private String code;

    @Schema(description = "字典描述")
    private String description;

    @Schema(description = "字典项列表")
    private List<CreateDictItemDTO> items;
}
