package cn.reghao.tnb.oss.api.rest;

import lombok.Getter;
import lombok.Setter;

import jakarta.validation.constraints.NotBlank;
import jakarta.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;

    @NotNull
    private int channelCode;
    @NotBlank
    private String filename;
    @NotNull
    private long size;
    @NotBlank
    private String sha256sum;
    @NotBlank
    private String contentType;
}
