package org.dromara.system.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;

/**
 * OSS分片合并对象
 *
 * @author shihongwei
 */
@Data
public class SysOssMergeBo {

    /**
     * 文件唯一标识(MD5)
     */
    @NotBlank(message = "文件标识不能为空", groups = {AddGroup.class, EditGroup.class})
    private String identifier;

    /**
     * 文件名
     */
    @NotBlank(message = "文件名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String filename;

    /**
     * 总分片数
     */
    @NotNull(message = "总分片数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer totalChunks;

    /**
     * 总大小
     */
    @NotNull(message = "总大小不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long totalSize;
}
