Skip to content

Commit

Permalink
[CHORE] 응답값 ID 필드 추가, 성공 응답 메세지 일부 수정 #133
Browse files Browse the repository at this point in the history
  • Loading branch information
jun02160 committed Feb 28, 2024
1 parent 9dd657c commit 674cf96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
@Builder
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class AlbumResponseDto {


private Long albumId;
private String title;
private String content;
private String writer;
private String imgUrl;

public static AlbumResponseDto of(Album album) {
return AlbumResponseDto.builder()
.albumId(album.getId())
.title(album.getTitle())
.content(album.getContent())
.writer(album.getWriter())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public enum SuccessType {
CREATE_PARENT_CHILD_SUCCESS(HttpStatus.CREATED, "온보딩 정보를 입력받아 부모자식 관계를 생성하는 데 성공했습니다."),
MATCH_PARENT_CHILD_SUCCESS(HttpStatus.CREATED, "부모자식 관계 매칭에 성공했습니다."),
ANSWER_TODAY_QUESTION_SUCCESS(HttpStatus.CREATED, "오늘의 일일문답에 답변을 완료하였습니다."),
CREATE_ALBUM_SUCCESS(HttpStatus.CREATED, "앨범의 기록 생성에 성공했습니다."),
CREATE_ALBUM_SUCCESS(HttpStatus.CREATED, "앨범의 기록 등록에 성공했습니다."),

;

Expand Down

0 comments on commit 674cf96

Please sign in to comment.