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

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

import java.math.BigDecimal;

@Data
@Schema(description = "创建评分DTO")
public class CreateScoreDto {

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

    @NotNull(message = "分配记录ID不能为空")
    @Schema(description = "分配记录ID")
    private Long assignmentId;

    @Schema(description = "维度评分（JSON对象）")
    private Object dimensionScores;

    @NotNull(message = "总分不能为空")
    @Schema(description = "总分")
    private BigDecimal totalScore;

    @Schema(description = "评语")
    private String comments;
}
