add(req-2119):下载接口API-调试7

This commit is contained in:
胡朝飞 2024-03-07 17:30:03 +08:00
parent 03eb0c4caf
commit fb1d20d2a8
2 changed files with 2 additions and 10 deletions

View File

@ -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");
}
}

View File

@ -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();
}