package com.backendsys.entity.Tencent.TencentCos;

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

@Data
public class MultipartUploadDTO {
    public static interface Upload{}
    public static interface Abort{}

    @NotEmpty(message="upload_id 不能为空", groups = { Abort.class })
    private String upload_id;
    @NotEmpty(message="key 不能为空", groups = { Abort.class })
    private String key;
//    @FileSizeLimit(maxSize = 2000000) // 限制文件大小为2MB (该注解未测试)
    private MultipartFile file;
    private Integer index;
    private Integer count;
}
