package com.lesingle.creation.dto.homework;

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

import jakarta.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 更新作业请求 DTO
 */
@Data
@Schema(description = "更新作业请求")
public class UpdateHomeworkDTO {

    @NotBlank(message = "作业名称不能为空")
    @Schema(description = "作业名称", example = "创意绘画练习")
    private String name;

    @Schema(description = "作业内容（富文本）")
    private String content;

    @Schema(description = "提交开始时间")
    private LocalDateTime submitStartTime;

    @Schema(description = "提交结束时间")
    private LocalDateTime submitEndTime;

    @Schema(description = "附件列表（JSON 数组）")
    private String attachments;

    @Schema(description = "公开范围（班级 ID 数组 JSON）")
    private String publishScope;

    @Schema(description = "评审规则 ID")
    private Long reviewRuleId;
}
