package com.hotwj.platform.video.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * 视频分片上传参数
 */
@Data
public class VideoChunkUploadBo {

    @NotNull(message = "分片文件不能为空")
    private MultipartFile chunk;

    @NotBlank(message = "文件哈希不能为空")
    private String fileHash;

    @NotNull(message = "分片索引不能为空")
    private Integer chunkIndex;

    @NotNull(message = "总分片数不能为空")
    private Integer totalChunks;

    @NotBlank(message = "文件名不能为空")
    private String fileName;
}
