package com.competition.modules.biz.homework.dto;

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

import java.util.List;

@Data
@Schema(description = "创建作业DTO")
public class CreateHomeworkDto {

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

    @Schema(description = "作业内容")
    private String content;

    @NotBlank(message = "提交开始时间不能为空")
    @Schema(description = "提交开始时间")
    private String submitStartTime;

    @NotBlank(message = "提交截止时间不能为空")
    @Schema(description = "提交截止时间")
    private String submitEndTime;

    @Schema(description = "附件")
    private Object attachments;

    @Schema(description = "发布范围")
    private List<Integer> publishScope;

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