From 2f711cd55555cec321e38af67ab8d09a0e85d65f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=95=88=EC=A0=95=ED=9B=84?= Date: Thu, 3 Oct 2024 14:45:50 +0900 Subject: [PATCH] fix: change response type --- .../apimodule/cuisine/presentation/CuisineController.java | 2 +- .../com/foodgo/apimodule/file/presentation/FileController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-module/src/main/java/com/foodgo/apimodule/cuisine/presentation/CuisineController.java b/api-module/src/main/java/com/foodgo/apimodule/cuisine/presentation/CuisineController.java index 93bc5a1..6a7c99c 100644 --- a/api-module/src/main/java/com/foodgo/apimodule/cuisine/presentation/CuisineController.java +++ b/api-module/src/main/java/com/foodgo/apimodule/cuisine/presentation/CuisineController.java @@ -64,7 +64,7 @@ public ApplicationResponse addIngredientList(@UserResolver User user, @RequestBody IngredientAddReq addReq) { cuisineSaveUseCase.saveIngredient(addReq, user); - return ApplicationResponse.ok("식재료 리스트 추가되었습니다."); + return ApplicationResponse.onSuccess("식재료 리스트 추가되었습니다."); } // 식재료 삭제하기 diff --git a/api-module/src/main/java/com/foodgo/apimodule/file/presentation/FileController.java b/api-module/src/main/java/com/foodgo/apimodule/file/presentation/FileController.java index 3182594..01e31df 100644 --- a/api-module/src/main/java/com/foodgo/apimodule/file/presentation/FileController.java +++ b/api-module/src/main/java/com/foodgo/apimodule/file/presentation/FileController.java @@ -25,6 +25,6 @@ public class FileController { public ApplicationResponse getPresignedUrl( @Parameter(description = "파일 경로의 prefix (이미지의 경우 images 필수)", example = "/images") @RequestParam(name = "prefix", defaultValue = "images") String prefix, @Parameter(description = "파일 이름", required = true, example = "example.txt") @RequestParam(name = "fileName") String fileName) { - return ApplicationResponse.ok(fileService.getUploadPresignedUrl(prefix, fileName)); + return ApplicationResponse.onSuccess(fileService.getUploadPresignedUrl(prefix, fileName)); } } \ No newline at end of file