Skip to content

Commit

Permalink
Merge pull request #154 from pknu-wap/fix/#152-추가_요구사항
Browse files Browse the repository at this point in the history
Fix/#152 추가 요구사항
  • Loading branch information
Due-IT authored Nov 28, 2023
2 parents 35b6b28 + 5175da1 commit a48bc87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class BlogController {
@Autowired
private BlogService blogService;

//TODO 기능 대부분을 User에 넘길지 고려해봐야 함
@GetMapping("/mypage")
public ResponseEntity<MyPageResponse> goToMypage(@CurrentUser UserPrincipal userPrincipal){

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
public class PostPreviewDto {
private String blogUrl;
private Long postId;
private Long categoryId;
private String title;
private String thumbnail;
private Integer likesCount;
Expand All @@ -20,11 +21,11 @@ public class PostPreviewDto {
private LocalDateTime createdAt;
private Boolean isPrivate;


public static PostPreviewDto of (Post post){
return new PostPreviewDto(
post.getBlogUrl(),
post.getId(),
post.getCategory().getId(),
post.getTitle(),
post.getThumbnail(),
post.getLikesCount(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public String registerBlog(UserPrincipal userPrincipal, UserCreateRequest userCr
blog.setBlogName(userCreateRequest.getBlogName());
blog.setBlogUrl(userCreateRequest.getBlogUrl());
user.setNickname(userCreateRequest.getNickname());
user.setImageUrl("https://elasticbeanstalk-us-east-1-064991853848.s3.amazonaws.com/profile/defaultImages.jpg");

Guestbook guestBook = new Guestbook();
guestBook.setBlog(blog);
Expand Down

0 comments on commit a48bc87

Please sign in to comment.