add(req-2119):下载接口优化
This commit is contained in:
parent
25d8047efe
commit
b286e2ddd7
@ -35,7 +35,4 @@ public interface WebFileServiceApi {
|
|||||||
CommonResponse<WebFileUploadVo> uploadObs(@Valid @RequestParam("appCode") String appCode,
|
CommonResponse<WebFileUploadVo> uploadObs(@Valid @RequestParam("appCode") String appCode,
|
||||||
@Valid @RequestParam("bizScene") String bizScene,
|
@Valid @RequestParam("bizScene") String bizScene,
|
||||||
@Valid @RequestPart MultipartFile file);
|
@Valid @RequestPart MultipartFile file);
|
||||||
|
|
||||||
@PostMapping("api/v1/server/downloadFileFromObs")
|
|
||||||
CommonResponse<DownloadFileFromObsResponse> downloadFileFromOBS(DownloadFileFromObsRequest request);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package cn.axzo.oss.http.model;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author hucf
|
* @author hucf
|
||||||
@ -13,7 +14,7 @@ public class DownloadFileFromObsRequest {
|
|||||||
/**
|
/**
|
||||||
* 文件uuid
|
* 文件uuid
|
||||||
*/
|
*/
|
||||||
@NotBlank
|
@NotBlank(message = "文件uuid不能为空")
|
||||||
private String fileKey;
|
private String fileKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -22,7 +23,8 @@ public class DownloadFileFromObsRequest {
|
|||||||
private String style;
|
private String style;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 下载方式
|
* 下载方式:1:流式下载;2:断点续传方式下载
|
||||||
*/
|
*/
|
||||||
|
@NotNull(message = "下载方式不能为空")
|
||||||
private Integer fileDownloadType;
|
private Integer fileDownloadType;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user