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

This commit is contained in:
胡朝飞 2024-03-07 16:50:55 +08:00
parent abd9016332
commit e303b86532

View File

@ -8,6 +8,7 @@ import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart; import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -38,6 +39,6 @@ public interface WebFileServiceApi {
@Valid @RequestParam("bizScene") String bizScene, @Valid @RequestParam("bizScene") String bizScene,
@Valid @RequestPart MultipartFile file); @Valid @RequestPart MultipartFile file);
@PostMapping(value = "/webApi/v1/obs/downloadFileFromObs") @RequestMapping("/webApi/v1/obs/downloadFileFromObs")
CommonResponse<Response> downloadFileFromObs(@Valid @RequestBody DownloadFileFromObsRequest req); CommonResponse<Response> downloadFileFromObs(@Valid @RequestBody DownloadFileFromObsRequest req);
} }