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 java.io.Serializable;

/**
 * 任务关闭命令
 * <p>
 * 用于关闭任务模板（同时关闭关联的所有任务执行记录），仅需任务业务ID
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TaskExecutionCloseCmd implements Serializable {
    @ApiModelProperty(value = "任务业务ID", required = true)
    @NotEmpty(message = "任务业务ID不能为空")
    private String taskExecutionId;
}
