-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] DTO Response Model 재정의 (일부) = #33
- Loading branch information
Showing
6 changed files
with
131 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,25 +17,114 @@ | |
@AllArgsConstructor | ||
@Builder | ||
public class UserResponseDto { | ||
@ApiModelProperty(value = "1") | ||
@ApiModelProperty(value = "1", example = "1") | ||
private final Long userNo; | ||
@ApiModelProperty(value = "[email protected]") | ||
|
||
@ApiModelProperty(value = "[email protected]", example = "[email protected]") | ||
private String email; | ||
@ApiModelProperty(value = "페이버") | ||
|
||
@ApiModelProperty(value = "페이버", example = "페이버") | ||
private String name; | ||
@ApiModelProperty(value = "favor") | ||
|
||
@ApiModelProperty(value = "favor", example = "favor") | ||
private String userid; | ||
@ApiModelProperty(value = "USER") | ||
|
||
@ApiModelProperty(value = "USER", example = "USER") | ||
private Role role; | ||
@ApiModelProperty(value = "") | ||
|
||
@ApiModelProperty(value = "", example = "[\n" + | ||
" {\n" + | ||
" \"reminderNo\": 1,\n" + | ||
" \"reminderTitle\": \"제목\",\n" + | ||
" \"reminderDate\": \"1996-02-29\",\n" + | ||
" \"reminderMemo\": \"메모\",\n" + | ||
" \"isAlarmSet\": false,\n" + | ||
" \"alarmTime\": \"1996-02-29T00:00:00\",\n" + | ||
" \"userNo\": 1,\n" + | ||
" \"friendNo\": 1\n" + | ||
" }\n" + | ||
" ]") | ||
private List<ReminderResponseDto> reminderList; | ||
@ApiModelProperty(value = "") | ||
|
||
@ApiModelProperty(value = "", example = "[\n" + | ||
" {\n" + | ||
" \"giftNo\": 1,\n" + | ||
" \"giftName\": \"선물이름\",\n" + | ||
" \"giftDate\": \"1996-02-29\",\n" + | ||
" \"giftMemo\": \"선물메모\",\n" + | ||
" \"category\": \"생일\",\n" + | ||
" \"emotion\": \"기뻐요\",\n" + | ||
" \"isPinned\": false,\n" + | ||
" \"isGiven\": false,\n" + | ||
" \"userNo\": 1,\n" + | ||
" \"friendList\": [\n" + | ||
" {\n" + | ||
" \"isUser\": true,\n" + | ||
" \"friendNo\": 1,\n" + | ||
" \"friendName\": \"페이버2\",\n" + | ||
" \"friendMemo\": \"메모\",\n" + | ||
" \"reminderList\": [],\n" + | ||
" \"giftList\": [],\n" + | ||
" \"favorList\": [],\n" + | ||
" \"friendUserNo\": 2,\n" + | ||
" \"anniversaryList\": [],\n" + | ||
" \"userNo\": 1\n" + | ||
" }\n" + | ||
" ]\n" + | ||
" }\n" + | ||
" ]") | ||
private List<GiftResponseDto> giftList; | ||
@ApiModelProperty(value = "") | ||
|
||
@ApiModelProperty(value = "", example = "[\n" + | ||
" {\n" + | ||
" \"isUser\": true,\n" + | ||
" \"friendNo\": 1,\n" + | ||
" \"friendName\": \"페이버2\",\n" + | ||
" \"friendMemo\": \"메모\",\n" + | ||
" \"reminderList\": [],\n" + | ||
" \"giftList\": [],\n" + | ||
" \"favorList\": [],\n" + | ||
" \"friendUserNo\": 2,\n" + | ||
" \"anniversaryList\": [],\n" + | ||
" \"userNo\": 1\n" + | ||
" },\n" + | ||
" {\n" + | ||
" \"isUser\": false,\n" + | ||
" \"friendNo\": 2,\n" + | ||
" \"friendName\": \"이름11\",\n" + | ||
" \"friendMemo\": \"메모\",\n" + | ||
" \"reminderList\": [],\n" + | ||
" \"giftList\": [],\n" + | ||
" \"favorList\": [],\n" + | ||
" \"friendUserNo\": null,\n" + | ||
" \"anniversaryList\": [],\n" + | ||
" \"userNo\": 1\n" + | ||
" }\n" + | ||
" ]") | ||
private List<FriendResponseDto> friendList; | ||
@ApiModelProperty(value = "") | ||
|
||
@ApiModelProperty(value = "", example = "[\n" + | ||
" {\n" + | ||
" \"anniversaryNo\": 1,\n" + | ||
" \"anniversaryTitle\": \"제목\",\n" + | ||
" \"anniversaryDate\": \"1996-02-29\",\n" + | ||
" \"isPinned\": false,\n" + | ||
" \"userNo\": 1\n" + | ||
" },\n" + | ||
" {\n" + | ||
" \"anniversaryNo\": 2,\n" + | ||
" \"anniversaryTitle\": \"제목\",\n" + | ||
" \"anniversaryDate\": \"2024-02-29\",\n" + | ||
" \"isPinned\": false,\n" + | ||
" \"userNo\": 1\n" + | ||
" }\n" + | ||
" ]") | ||
private List<AnniversaryResponseDto> anniversaryList; | ||
@ApiModelProperty(value = "") | ||
|
||
@ApiModelProperty(value = "", example = "[\n" + | ||
" \"심플한\",\n" + | ||
" \"귀여운\"\n" + | ||
" ]") | ||
private List<Favor> favorList; | ||
|
||
@Builder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters