Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

[BE] feat: 발행 후 발행 url 글 정보 조회 API 응답에 추가 #410

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

echo724
Copy link
Collaborator

@echo724 echo724 commented Sep 14, 2023

🛠️ Issue

✅ Tasks

  • BlogWriting에 url 필드 추가
  • Publish 후 BlogWriting 및 dto에 url 필드 추가

⏰ Time Difference

  • 1

📝 Note

  • 로컬 테스트 완료, 잘 동작합니다.

echo724 added 2 commits September 14, 2023 17:08
# Conflicts:
#	backend/src/main/java/org/donggle/backend/application/service/blog/PublishService.java
@echo724 echo724 added 🕋 backend 백엔드 작업 🌟 feature 기능 추가 labels Sep 14, 2023
@echo724 echo724 added this to the 5차 데모데이 milestone Sep 14, 2023
@echo724 echo724 self-assigned this Sep 14, 2023
Copy link
Collaborator

@ezzanzzan ezzanzzan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다 !! 🫡

blogWriting.getBlogTypeValue(),
blogWriting.getPublishedAt(),
blogWriting.getTags()))
.map(PublishedDetailResponse::of)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

풀어서 넣는것보다 내부에서 값을 저장하는게 더 나을까요 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

장단점이 있을것 같습니다만, 뭔가 한눈에 blogWriting이 PublishedDetailResponse로 바꼈구나를 알 수 있는거 같아서 좋은 것 같아요!

Copy link
Collaborator

@ingpyo ingpyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -34,12 +34,14 @@ public class BlogWriting extends BaseEntity {
private LocalDateTime publishedAt;
@ElementCollection
private List<String> tags;
private String url;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

문자열을 포장하는 것은 어떨까요?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋습니다~!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정을할까 했는데,, 아무래도 Publish 쪽과 연관이 되어있어서 충돌이 좀 날꺼 같아 나중에 해야할꺼 같네요!

Comment on lines +15 to 16
return new PublishedDetailResponse(blogWriting.getBlogTypeValue(), blogWriting.getPublishedAt(), blogWriting.getTags(), blogWriting.getUrl());
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

쿠우울

Copy link
Member

@HubCreator HubCreator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@echo724 echo724 merged commit 47b7d03 into develop Sep 18, 2023
@echo724 echo724 deleted the feature/add-published-url-406 branch September 18, 2023 12:44
echo724 pushed a commit that referenced this pull request Sep 22, 2023
feat: 발행 후 글 조회시 글 정보에 발행 글 url 필드 추가
echo724 pushed a commit that referenced this pull request Oct 6, 2023
feat: 발행 후 글 조회시 글 정보에 발행 글 url 필드 추가
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🕋 backend 백엔드 작업 🌟 feature 기능 추가
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

글 정보 조회 API에 발행한 글 url 추가
4 participants