package com.reading.platform.dto.request;

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

@Data
@Schema(description = "班级创建请求")
public class ClassCreateRequest {

    @Schema(description = "班级名称", example = "大一班", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "班级名称不能为空")
    private String name;

    @Schema(description = "年级", example = "大班")
    private String grade;

    @Schema(description = "描述", example = "阳光活泼的大一班")
    private String description;

    @Schema(description = "容量", example = "35")
    private Integer capacity;

}
