package com.seer.teach.teacher.common.req;

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

import jakarta.validation.constraints.NotNull;

/**
 * @Author: Captain
 * @Description: 获取章节请求实体类
 * @Date: 2025-05-28 14:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "获取单元内容请求实体类")
public class GetUnitsReq {

    @Schema(description = "年级Id")
    @NotNull(message = "年级ID不可为空")
    private Integer gradeId;

    @Schema(description = "科目Id")
    @NotNull(message = "科目ID不可为空")
    private Integer subjectId;

    @Schema(description = "上下册(0上册 1下册)")
    @NotNull(message = "上下册不能为空")
    private Integer volume;

    @Schema(description = "页数")
    @NotNull(message = "页数不能为空")
    private Integer page = 1;

    @Schema(description = "页面容量")
    @NotNull(message = "页面容量不能为空")
    private Integer limits = 10;
}
