895a2a70e398636af940a12385f81640a24d8920.svn-base 1.2 KB

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