From 31ef135be9e20f017bd76d0b1b30494588630a6b Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 22 Dec 2024 20:34:26 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]=20door,=20color,=20decoration=20?= =?UTF-8?q?=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0=20=EC=8A=A4=EC=9B=A8?= =?UTF-8?q?=EA=B1=B0=EC=97=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../blism/controller/LetterController.java | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/example/blism/controller/LetterController.java b/src/main/java/com/example/blism/controller/LetterController.java index 83ea8ba..61273ae 100644 --- a/src/main/java/com/example/blism/controller/LetterController.java +++ b/src/main/java/com/example/blism/controller/LetterController.java @@ -96,11 +96,9 @@ public ResponseEntity createLetter(@RequestPart("image") MultipartF String logicStatus = letterService.createLetter(image, createLetterRequestDTO); if (logicStatus.equals("보내는 사람이 없습니다.")) { return ResponseEntity.ok().body(ApiResponse.onFailure(401, "보내는 사람이 없습니다.", null)); - } - else if (logicStatus.equals("받는 사람이 없습니다.")){ + } else if (logicStatus.equals("받는 사람이 없습니다.")) { return ResponseEntity.ok().body(ApiResponse.onFailure(401, "받는 사람이 없습니다.", null)); - } - else if (logicStatus.equals("우체통이 존재하지 않습니다.")){ + } else if (logicStatus.equals("우체통이 존재하지 않습니다.")) { return ResponseEntity.ok().body(ApiResponse.onFailure(401, "우체통이 존재하지 않습니다.", null)); } @@ -127,6 +125,9 @@ else if (logicStatus.equals("우체통이 존재하지 않습니다.")){ " \"content\": \"Hello!\",\n" + " \"photoUrl\": \"https://example.com/photo.jpg\",\n" + " \"font\": 1,\n" + + " \"doorDesign\": 1,\n" + + " \"colorDesign\": 1,\n" + + " \"decorationDesign\": 1,\n" + " \"visibility\": 1,\n" + " \"createdAt\": \"2024-12-22T04:35:08.367236\"\n" + " }\n" + @@ -197,6 +198,9 @@ public ResponseEntity getLetters(@PathVariable Long letterId) { " \"content\": \"Hello!\",\n" + " \"photoUrl\": \"https://example.com/photo.jpg\",\n" + " \"font\": 1,\n" + + " \"doorDesign\": 1,\n" + + " \"colorDesign\": 1,\n" + + " \"decorationDesign\": 1,\n" + " \"visibility\": 1,\n" + " \"createdAt\": \"2024-12-22T04:35:08.367236\"\n" + " },\n" + @@ -207,6 +211,9 @@ public ResponseEntity getLetters(@PathVariable Long letterId) { " \"content\": \"How are you?\",\n" + " \"photoUrl\": \"https://example.com/photo2.jpg\",\n" + " \"font\": 2,\n" + + " \"doorDesign\": 1,\n" + + " \"colorDesign\": 1,\n" + + " \"decorationDesign\": 1,\n" + " \"visibility\": 1,\n" + " \"createdAt\": \"2024-12-22T05:10:15.123456\"\n" + " }\n" + @@ -264,6 +271,9 @@ public ResponseEntity getSentLetters(@PathVariable Long userId) { " \"content\": \"Hello!\",\n" + " \"photoUrl\": \"https://example.com/photo.jpg\",\n" + " \"font\": 1,\n" + + " \"doorDesign\": 1,\n" + + " \"colorDesign\": 1,\n" + + " \"decorationDesign\": 1,\n" + " \"visibility\": 1,\n" + " \"createdAt\": \"2024-12-22T04:35:08.367236\"\n" + " },\n" + @@ -274,6 +284,9 @@ public ResponseEntity getSentLetters(@PathVariable Long userId) { " \"content\": \"How are you?\",\n" + " \"photoUrl\": \"https://example.com/photo2.jpg\",\n" + " \"font\": 2,\n" + + " \"doorDesign\": 1,\n" + + " \"colorDesign\": 1,\n" + + " \"decorationDesign\": 1,\n" + " \"visibility\": 1,\n" + " \"createdAt\": \"2024-12-22T05:10:15.123456\"\n" + " }\n" +