package com.lesingle.creation.dto.dict;

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

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

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

    @NotBlank(message = "字典项标签不能为空")
    @Schema(description = "字典项标签", example = "男")
    private String label;

    @NotBlank(message = "字典项值不能为空")
    @Schema(description = "字典项值", example = "male")
    private String value;

    @Schema(description = "排序", example = "1")
    private Integer sort;
}
