package com.lesingle.creation.dto.notice;

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

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 创建公告请求 DTO
 */
@Data
@Schema(description = "创建公告请求")
public class CreateNoticeDTO {

    @NotNull(message = "活动 ID 不能为空")
    @Schema(description = "活动 ID")
    private Long contestId;

    @NotBlank(message = "公告标题不能为空")
    @Schema(description = "公告标题", example = "比赛通知")
    private String title;

    @NotBlank(message = "公告内容不能为空")
    @Schema(description = "公告内容")
    private String content;

    @Schema(description = "公告类型：manual/system", example = "manual")
    private String noticeType = "manual";

    @Schema(description = "优先级（数字越大越优先）", example = "0")
    private Integer priority = 0;
}
