package com.zcloud.safetyDutyList.dto.tasklist;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 任务评分更新命令
 * <p>
 * 用于更新任务执行记录的评分，评分不能超过任务分值
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TaskDetailUpdateScoreCmd implements Serializable {
    @ApiModelProperty(value = "任务执行UUID", required = true)
    @NotEmpty(message = "任务执行ID不能为空")
    private String taskExecutionId;

    @ApiModelProperty(value = "分数（不能超过任务分值）", required = true)
    @NotNull(message = "分数不能为空")
    private BigDecimal taskRating;
}
