package com.lesingle.creation.dto.reviewrule;

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 CreateReviewDimensionDTO {

    @NotNull(message = "规则 ID 不能为空")
    @Schema(description = "规则 ID")
    private Long ruleId;

    @NotBlank(message = "维度名称不能为空")
    @Schema(description = "维度名称", example = "创意性")
    private String dimensionName;

    @Schema(description = "维度描述")
    private String description;

    @Schema(description = "权重", example = "0.3")
    private BigDecimal weight = new BigDecimal("0.3");

    @Schema(description = "满分", example = "30.00")
    private BigDecimal maxScore = new BigDecimal("30.00");

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