package com.lesingle.edu.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 任务评价请求
 */
@Data
@Schema(description = "任务评价请求")
public class TaskFeedbackRequest {

    @NotBlank(message = "评价结果不能为空")
    @Schema(description = "评价结果：EXCELLENT-优秀/PASSED-通过/NEEDS_WORK-需改进", required = true)
    private String result;

    @Min(value = 1, message = "评分最小为1")
    @Max(value = 5, message = "评分最大为5")
    @Schema(description = "评分 1-5（可选）")
    private Integer rating;

    @Size(max = 500, message = "评语最多500字")
    @Schema(description = "评语")
    private String comment;

}
