Skip to content

Commit

Permalink
Merge pull request #51 from UMC-Blism/refactor-37-nuchan
Browse files Browse the repository at this point in the history
[refactor] door, color, decoration 파라미터 스웨거에 추가
  • Loading branch information
seungwon7934 authored Dec 22, 2024
2 parents 2ebb8e1 + 31ef135 commit 93a0883
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/main/java/com/example/blism/controller/LetterController.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,9 @@ public ResponseEntity<ApiResponse> 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));
}

Expand All @@ -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" +
Expand Down Expand Up @@ -197,6 +198,9 @@ public ResponseEntity<ApiResponse> 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" +
Expand All @@ -207,6 +211,9 @@ public ResponseEntity<ApiResponse> 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" +
Expand Down Expand Up @@ -264,6 +271,9 @@ public ResponseEntity<ApiResponse> 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" +
Expand All @@ -274,6 +284,9 @@ public ResponseEntity<ApiResponse> 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" +
Expand Down

0 comments on commit 93a0883

Please sign in to comment.