add(req-2119):下载接口API-调试7
This commit is contained in:
parent
03eb0c4caf
commit
fb1d20d2a8
@ -325,14 +325,9 @@ public class WebFileController {
|
||||
response.addHeader("Content-Disposition", "attachment;filename="
|
||||
+ result.getFileName() + "." + result.getFileFormat());
|
||||
IOUtils.copy(inputStream, outputStream);
|
||||
log.info("文件转换成功");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("/v1/obs/test")
|
||||
public CommonResponse<String> test() {
|
||||
log.info("test");
|
||||
return CommonResponse.success("success");
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,9 +16,6 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
url = "http://oss:9123"
|
||||
)
|
||||
public interface DownloadFileApi {
|
||||
@GetMapping(value = "/webApi/v1/obs/downloadFileFromObs", consumes = MediaType.APPLICATION_PROBLEM_JSON_VALUE)
|
||||
@GetMapping(value = "/webApi/v1/obs/downloadFileFromObs", consumes = MediaType.APPLICATION_OCTET_STREAM_VALUE)
|
||||
CommonResponse<Response> downloadFileFromObs(@RequestParam("fileUuid") String fileUuId);
|
||||
|
||||
@GetMapping("/webApi/v1/obs/test")
|
||||
CommonResponse<String> test();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user