package org.springblade.file.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springblade.file.pojo.enums.UnzipTask;

import java.io.Serial;
import java.io.Serializable;

/**
 *  业务解压任务更新参数
 * @author bfhuange
 * @date 2024/10/28
 */
@Data
@Schema(description = "业务解压任务更新参数")
public class BusinessUnzipTaskUpdateDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     *  主键
     */
    @Schema(description = "主键")
    private Long id;
    /**
     *  业务id
     */
    @Schema(description = "业务id")
    private Long bizId;
    /**
     *  关联id，文件任务id或附件id
     */
    @NotNull(message = "关联id不能为空")
    @Schema(description = "关联id，文件任务id或附件id")
    private Long relateId;
    /**
     *  关联类型，file_task 文件任务，attachment 附件
     */
    @Schema(description = "关联类型，file_task 文件任务，attachment 附件", hidden = true)
    private String relateType = UnzipTask.RelateType.FILE_TASK.getCode();
}
