Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#69] 행복 달력 상세 조회 API 구축 #82

Merged
merged 2 commits into from
May 14, 2024
Merged

[#69] 행복 달력 상세 조회 API 구축 #82

merged 2 commits into from
May 14, 2024

Conversation

yel-m
Copy link
Member

@yel-m yel-m commented May 14, 2024

#️⃣ 연관된 이슈

Resolves #69

📝 작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요 (이미지 첨부 가능)

  • 행복 달력 상세 조회 API를 구축했습니다.
  • 행복 달력 조회 API에서 한 메서드에 여러 책임이 있어 이를 분리해 각각 메서드로 만들었습니다.

/api/records/calendar/2024-05-13 으로 GET 요청 시 다음과 같은 응답을 받을 수 있습니다.

{
  "success": true,
  "code": 0,
  "message": "행복 달력을 성공적으로 조회했습니다.",
  "data": [
    {
      "date": "2024-05-12",
      "memo": "string",
      "happiness": 1,
      "record_id": 15,
      "img_url": null
    },
    {
      "date": "2024-05-12",
      "memo": "사그미랑 카공했다",
      "happiness": 1,
      "record_id": 16,
      "img_url": null
    },
    {
      "date": "2024-05-12",
      "memo": "사그미랑 카공했다",
      "happiness": 1,
      "record_id": 17,
      "img_url": null
    },
    {
      "date": "2024-05-12",
      "memo": "코딩",
      "happiness": 7,
      "record_id": 18,
      "img_url": null
    }
  ]
}

만약 date 형식을 잘못 입력할 경우, 다음과 같은 응답을 받을 수 있습니다.

{
  "success": false,
  "code": 10005,
  "message": "Internal error - Invalid date format. Please use yyyy-MM-dd."
}

스크린샷 (선택)

💬 리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

✅ Check List

  • PR 제목을 커밋 규칙에 맞게 작성했는가?
  • PR에 해당되는 Issue를 연결했는가?
  • 적절한 라벨을 설정했는가?
  • 작업한 사람을 모두 Assign했는가?

@yel-m yel-m requested a review from KkomSang May 14, 2024 06:45
@yel-m yel-m self-assigned this May 14, 2024
@yel-m yel-m added the feat 새로운 기능을 추가합니다 label May 14, 2024
@KkomSang
Copy link
Collaborator

사그미랑 카공....happiness : 1
코딩...happiness : 7

🥲

@KkomSang
Copy link
Collaborator

수고하셨습니당💕💕

@KkomSang KkomSang merged commit 227344e into develop May 14, 2024
1 check passed
@KkomSang KkomSang deleted the feat/69 branch May 14, 2024 06:54
@yel-m
Copy link
Member Author

yel-m commented May 14, 2024

그렁 게 아냐!!!!!!!!!!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 새로운 기능을 추가합니다
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants