package com.lesingle.creation.dto.presetcomment;

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

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 创建预设评语请求 DTO
 */
@Data
@Schema(description = "创建预设评语请求")
public class CreatePresetCommentDTO {

    @Schema(description = "活动 ID（为空表示通用评语）")
    private Long contestId;

    @NotBlank(message = "评语内容不能为空")
    @Schema(description = "评语内容", example = "作品非常有创意")
    private String content;

    @NotBlank(message = "评语类型不能为空")
    @Schema(description = "评语类型：positive/neutral/negative", example = "positive")
    private String type;

    @Schema(description = "适用分数范围最小值")
    private BigDecimal scoreRangeMin;

    @Schema(description = "适用分数范围最大值")
    private BigDecimal scoreRangeMax;

    @Schema(description = "排序", example = "0")
    private Integer sort = 0;
}
