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、反馈内容、
 * 反馈周期起止时间、反馈周期标识、反馈人信息等字段
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FeedbackAddCmd implements Serializable {
    @ApiModelProperty(value = "任务清单ID", required = true)
    @NotEmpty(message = "任务清单ID不能为空")
    private String taskListId;

    @ApiModelProperty(value = "清单明细ID", required = true)
    @NotEmpty(message = "清单明细ID不能为空")
    private String taskDetailId;

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

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