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

[#78] 활동 검색 오류 수정 및 description 검색 추가 #80

Merged
merged 1 commit into from
May 14, 2024

Conversation

KkomSang
Copy link
Collaborator

#️⃣ 연관된 이슈

Resolves #78

📝 작업 내용

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

활동 검색 시 일부 활동이 검색되지 않는 오류를 수정했습니다.
또한 description도 검색되도록 기능을 추가하였습니다!

/api/activities/search?userId=1으로 요청시, 다음과 같은 응답을 받을 수 있습니다.

  • Request Body
{
  "search": "수영"
}
  • Response Body
{
  "success": true,
  "code": 0,
  "message": "활동을 성공적으로 검색했습니다.",
  "data": {
    "categories": [
      {
        "id": 1,
        "name": "운동",
        "activities": [
          {
            "id": 1,
            "name": "수영",
            "description": "#우우",
            "emoji": "🏊‍"
          },
          {
            "id": 120,
            "name": "수영하기",
            "description": "#취",
            "emoji": null
          }
        ]
      }
    ]
  }
}
  • Request Body
{
  "search": "취"
}
  • Response Body
{
  "success": true,
  "code": 0,
  "message": "활동을 성공적으로 검색했습니다.",
  "data": {
    "categories": [
      {
        "id": 1,
        "name": "운동",
        "activities": [
          {
            "id": 120,
            "name": "수영하기",
            "description": "#취",
            "emoji": null
          }
        ]
      },
      {
        "id": 3,
        "name": "취미",
        "activities": [
          {
            "id": 5,
            "name": "피크닉",
            "description": "#취",
            "emoji": "🧺"
          },
          {
            "id": 9,
            "name": "책읽기",
            "description": null,
            "emoji": "📚"
          },
          {
            "id": 11,
            "name": "취",
            "description": "#우",
            "emoji": null
          }
        ]
      },
      {
        "id": 10,
        "name": "기타",
        "activities": [
          {
            "id": 110,
            "name": "취하기",
            "description": "#술 #소주 #커 #운",
            "emoji": null
          },
          {
            "id": 10,
            "name": "수",
            "description": "#취",
            "emoji": null
          },
          {
            "id": 111,
            "name": "운동하기",
            "description": "#취",
            "emoji": null
          }
        ]
      }
    ]
  }
}

스크린샷 (선택)

💬 리뷰 요구사항(선택)

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

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

✅ Check List

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

@KkomSang KkomSang added feat 새로운 기능을 추가합니다 fix 기능 및 버그를 수정합니다 labels May 14, 2024
@KkomSang KkomSang requested a review from yel-m May 14, 2024 04:34
@KkomSang KkomSang self-assigned this May 14, 2024
@yel-m yel-m merged commit d77fc91 into develop May 14, 2024
1 check passed
@yel-m yel-m deleted the feat/#78 branch May 14, 2024 05:07
@yel-m
Copy link
Member

yel-m commented May 14, 2024

수고하셨습니다!!!!🎃✨
당신은 쵝오,,,,,,

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

Successfully merging this pull request may close these issues.

2 participants