package org.springblade.file.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
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 BusinessUnzipTaskAddDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     *  业务id
     */
    @NotNull(message = "业务id不能为空")
    @Schema(description = "业务id")
    private Long bizId;
    /**
     * 部门名称ID
     */
    @Schema(description = "部门名称ID")
    private Long departmentId;
    /**
     *  业务code
     */
    @NotBlank(message = "业务code不能为空")
    @Schema(description = "业务code")
    private String bizCode = UnzipTask.BizCode.WAYBILL.getCode();
    /**
     *  文档编号
     */
    @Schema(description = "文档编号")
    private String docCode;
    /**
     *  关联类型，file_task 文件任务，attachment 附件
     */
    @Schema(description = "关联类型，file_task 文件任务，attachment 附件")
    private String relateType = UnzipTask.RelateType.FILE_TASK.getCode();
    /**
     *  关联id，文件任务id或附件id
     */
    @NotNull(message = "关联id不能为空")
    @Schema(description = "关联id，文件任务id或附件id")
    private Long relateId;
}
