package com.zhongshu.card.client.model.dictionary;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddDictionaryItemParam {

    @Schema(name = "id", description = "项id", example = "665fc0ef9083d203896d3549")
    private String id;

    @Schema(name = "dictionaryId", description = "字典id", example = "665fc0ef9083d203896d3549")
    @NotNull(message = "字典id不能为null")
    @NotEmpty(message = "字典id不能为空")
    private String dictionaryId;

    @Schema(name = "parentId", description = "父级项id", example = "665fc0ef9083d203896d3549")
    private String parentId;

    @Schema(name = "key", description = "项编码", example = "20251001001")
    @NotNull(message = "项编码不能为null")
    @NotEmpty(message = "项编码不能为空")
    private String key;

    @Schema(name = "name", description = "项名称", example = "15信息1班")
    private String name;

    @Schema(name = "description", description = "描述", example = "班级")
    private String description;

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

}
