package com.zcloud.safetyDutyList.dto.tasklist;

import com.fasterxml.jackson.annotation.JsonFormat;
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.time.LocalDateTime;

/**
 * 执行反馈新增命令
 * <p>
 * 用于提交执行反馈，只需传入任务执行ID和反馈内容，
 * 其他关联信息（清单ID、任务详情ID、下发记录ID等）从任务执行记录中自动获取
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FeedbackAddCmd implements Serializable {
    @ApiModelProperty(value = "任务执行ID", required = true)
    @NotEmpty(message = "任务执行ID不能为空")
    private String taskExecutionId;

    @ApiModelProperty(value = "反馈ID", required = true)
    private String feedbackId;

    @ApiModelProperty(value = "反馈内容", required = true)
    @NotEmpty(message = "反馈内容不能为空")
    private String feedbackContent;
}
