Skip to content

Commit

Permalink
Merge pull request #35 from Favor-Gift-Reminder/juwon/#33
Browse files Browse the repository at this point in the history
[Fix] DTO Response Model 재정의 확인
  • Loading branch information
eunki96 authored May 25, 2023
2 parents 31469b6 + ed2c197 commit 35616f2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public ResponseEntity<DefaultResponseDto<Object>> deleteAnniversary(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "ANNIVERSARIES_FOUND",
response = List.class),
response = AnniversaryResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 500,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public ResponseEntity<DefaultResponseDto<Object>> updateFriend(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "FRIEND_DELETED",
response = UserResponseDto.class),
response = FriendResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -187,7 +187,7 @@ public ResponseEntity<DefaultResponseDto<Object>> deleteFriend(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "FRIENDS_FOUND",
response = UserResponseDto.class),
response = FriendResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 500,
Expand Down
8 changes: 4 additions & 4 deletions favor/src/main/java/com/favor/favor/gift/GiftController.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public ResponseEntity<DefaultResponseDto<Object>> createGift(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "GIFT_FOUND",
response = FriendResponseDto.class),
response = GiftResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -94,7 +94,7 @@ public ResponseEntity<DefaultResponseDto<Object>> readGift(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "GIFT_UPDATED",
response = FriendResponseDto.class),
response = GiftResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -128,7 +128,7 @@ public ResponseEntity<DefaultResponseDto<Object>> updateGift(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "GIFT_DELETED",
response = UserResponseDto.class),
response = GiftResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -161,7 +161,7 @@ public ResponseEntity<DefaultResponseDto<Object>> deleteGift(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "GIFTS_FOUND",
response = UserResponseDto.class),
response = GiftResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 500,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public ResponseEntity<DefaultResponseDto<Object>> deleteReminder(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "REMIDNERS_FOUND",
response = List.class),
response = ReminderResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 500,
Expand Down
16 changes: 8 additions & 8 deletions favor/src/main/java/com/favor/favor/user/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public ResponseEntity<DefaultResponseDto<Object>> createProfile(
@ApiResponses(value={
@ApiResponse(code = 201,
message = "USER_SIGNED_IN",
response = UserResponseDto.class),
response = SignInResponseDto.class),
@ApiResponse(code = 400,
message = "FILED_REQUIRED / *_CHARACTER_INVALID / *_LENGTH_INVALID"),
@ApiResponse(code = 401,
Expand Down Expand Up @@ -264,7 +264,7 @@ public ResponseEntity<DefaultResponseDto<Object>> updatePassword(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "REMINDERS_FOUND",
response = UserResponseDto.class),
response = ReminderResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -325,7 +325,7 @@ public ResponseEntity<DefaultResponseDto<Object>> readReminderListByFMonthAndYea
@ApiResponses(value={
@ApiResponse(code = 200,
message = "GIFTS_FOUND",
response = UserResponseDto.class),
response = GiftResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -355,7 +355,7 @@ public ResponseEntity<DefaultResponseDto<Object>> readGiftList(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "FRIENDS_FOUND",
response = UserResponseDto.class),
response = FriendResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -384,7 +384,7 @@ public ResponseEntity<DefaultResponseDto<Object>> readFriendList(@PathVariable L
@ApiResponses(value={
@ApiResponse(code = 200,
message = "ANNIVERSARY_FOUND",
response = UserResponseDto.class),
response = AnniversaryResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -440,7 +440,7 @@ public ResponseEntity<DefaultResponseDto<Object>> readAll(){
@ApiResponses(value={
@ApiResponse(code = 200,
message = "GIFTS_BY_NAME_FOUND",
response = UserResponseDto.class),
response = GiftResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -471,7 +471,7 @@ public ResponseEntity<DefaultResponseDto<Object>> readGiftListByName (
@ApiResponses(value={
@ApiResponse(code = 200,
message = "GIFTS_BY_CATEGORY_FOUND",
response = UserResponseDto.class),
response = GiftResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down Expand Up @@ -502,7 +502,7 @@ public ResponseEntity<DefaultResponseDto<Object>> readGiftListByCategory(
@ApiResponses(value={
@ApiResponse(code = 200,
message = "GIFTS_BY_EMOTION_FOUND",
response = UserResponseDto.class),
response = GiftResponseDto.class),
@ApiResponse(code = 401,
message = "UNAUTHORIZED_USER"),
@ApiResponse(code = 404,
Expand Down

0 comments on commit 35616f2

Please sign in to comment.