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;
import java.util.List;

/**
 * 安全责任清单修改命令
 * <p>
 * 用于修改安全责任清单时接收前端参数，
 * 包含清单业务ID、清单名称、任务级别、责任岗位、开关标识等字段。
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TaskListUpdateCmd implements Serializable {
    @ApiModelProperty(value = "清单UUID（业务主键）", required = true)
    @NotEmpty(message = "清单ID不能为空")
    private String taskListId;

    @ApiModelProperty(value = "清单名称", required = true)
    @NotEmpty(message = "清单名称不能为空")
    private String taskListName;

    @ApiModelProperty(value = "任务级别：1-企业级 2-部门级 3-班组级", required = true)
    @NotNull(message = "任务级别不能为空")
    private Integer taskLevel;

    @ApiModelProperty(value = "责任岗位")
    @NotEmpty(message = "责任岗位不能为空")
    private String responsibilityPost;

    @ApiModelProperty(value = "是否启用：1-启用 0-不启用", required = true)
    @NotNull(message = "是否启用不能为空")
    private Integer switchFlag;
}
