package com.lesingle.creation.dto.schoolclass;

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 CreateClassDTO {

    @NotNull(message = "年级 ID 不能为空")
    @Schema(description = "年级 ID")
    private Long gradeId;

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

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

    @NotNull(message = "班级类型不能为空")
    @Schema(description = "班级类型：1-行政班级，2-兴趣班")
    private Integer type;

    @Schema(description = "班级容量")
    private Integer capacity;

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