package com.lesingle.creation.dto.result;

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

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

/**
 * 创建竞赛结果请求 DTO
 */
@Data
@Schema(description = "创建竞赛结果请求")
public class CreateResultDTO {

    @NotNull(message = "作品 ID 不能为空")
    @Schema(description = "作品 ID")
    private Long workId;

    @NotNull(message = "报名 ID 不能为空")
    @Schema(description = "报名 ID")
    private Long registrationId;

    @Schema(description = "总分")
    private BigDecimal totalScore;

    @Schema(description = "奖项等级", example = "first/second/third")
    private String awardLevel;

    @Schema(description = "获奖描述")
    private String description;

    @Schema(description = "是否获奖", example = "true")
    private Boolean isWinner = true;
}
