lius
2023-06-08 534aec7a687ceca8120ba798ad20d80d7058ffe6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package org.jeecg.common.api.dto;
 
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;
 
import java.io.Serializable;
 
/**
 * 文件上传
 * cloud api 用到的接口传输对象
 * @author: jeecg-boot
 */
@Data
public class FileUploadDTO implements Serializable {
 
    private static final long serialVersionUID = -4111953058578954386L;
 
    private MultipartFile file;
 
    private String bizPath;
 
    private String uploadType;
 
    private String customBucket;
 
    public FileUploadDTO(){
 
    }
 
    /**
     * 简单上传 构造器1
     * @param file
     * @param bizPath
     * @param uploadType
     */
    public FileUploadDTO(MultipartFile file,String bizPath,String uploadType){
        this.file = file;
        this.bizPath = bizPath;
        this.uploadType = uploadType;
    }
 
    /**
     * 申明桶 文件上传 构造器2
     * @param file
     * @param bizPath
     * @param uploadType
     * @param customBucket
     */
    public FileUploadDTO(MultipartFile file,String bizPath,String uploadType,String customBucket){
        this.file = file;
        this.bizPath = bizPath;
        this.uploadType = uploadType;
        this.customBucket = customBucket;
    }
 
}