add(req-2119):下载接口优化

This commit is contained in:
胡朝飞 2024-03-07 10:25:00 +08:00
parent 25d8047efe
commit b286e2ddd7
2 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,4 @@ public interface WebFileServiceApi {
CommonResponse<WebFileUploadVo> uploadObs(@Valid @RequestParam("appCode") String appCode,
@Valid @RequestParam("bizScene") String bizScene,
@Valid @RequestPart MultipartFile file);
@PostMapping("api/v1/server/downloadFileFromObs")
CommonResponse<DownloadFileFromObsResponse> downloadFileFromOBS(DownloadFileFromObsRequest request);
}

View File

@ -3,6 +3,7 @@ package cn.axzo.oss.http.model;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @author hucf
@ -13,7 +14,7 @@ public class DownloadFileFromObsRequest {
/**
* 文件uuid
*/
@NotBlank
@NotBlank(message = "文件uuid不能为空")
private String fileKey;
/**
@ -22,7 +23,8 @@ public class DownloadFileFromObsRequest {
private String style;
/**
* 下载方式
* 下载方式1:流式下载2:断点续传方式下载
*/
@NotNull(message = "下载方式不能为空")
private Integer fileDownloadType;
}