package top.continew.admin.business.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import top.continew.starter.extension.crud.model.req.BaseReq;

import java.io.Serial;

/**
 * 作业批改请求参数
 *
 * @author 张波
 * @since 2024/10/23 19:56
 */
@Data
@Schema(description = "作业批改请求参数")
public class AssignmentsCorrectReq extends BaseReq {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 作业ID
     */
    @Schema(description = "作业提交记录ID")
    @NotNull(message = "作业提交记录ID")
    private Long id;

    /**
     * 分数
     */
    @Schema(description = "分数")
    @NotNull(message = "分数不能为空")
    @Max(value = 200, message = "满分不能大于200")
    @Min(value = 0, message = "分数不能小于0")
    private Integer score;

    /**
     * 评语
     */
    @Schema(description = "评语")
    private String feedback;
}
