package cn.reghao.oss.common;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 分片文件
 *
 * @author reghao
 * @date 2021-11-23 10:23:00
 */
@Setter
@Getter
public class UploadPrepare implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank
    private String filename;
    @NotNull
    private Long size;
    @NotBlank
    private String sha256sum;
}
