package com.lesingle.creation.dto.grade;

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

/**
 * 创建年级 DTO
 */
@Data
@Schema(description = "创建年级请求")
public class CreateGradeDTO {

    @NotBlank(message = "年级名称不能为空")
    @Schema(description = "年级名称")
    private String name;

    @NotBlank(message = "年级编码不能为空")
    @Schema(description = "年级编码")
    private String code;

    @NotNull(message = "年级级别不能为空")
    @Schema(description = "年级级别")
    private Integer level;

    @Schema(description = "年级描述")
    private String description;
}
