taste-zzip / taste.zip.server

1 stars 0 forks source link

feat: 식당 유형 배경 추천 #25

Closed devrokket closed 4 months ago

devrokket commented 4 months ago

1. Describe

사용자가 식당에 누른 좋아요를 바탕으로 가장 많이, 두 번째로 많이 등장한 type(상권소분류명)의 식당 ㅊ춴 5개의 식당을 추천 (가장 많은 type 3개, 두번째 2개)

2. Changes

3. Test Image

초기 사용자 (누른 좋아요 X) -> 랜덤 5개 식당 추천

image

8번 사용자가 카페 3개, '요리주점' 2개에 좋아요 눌렀을 때

[
  {
    "id": 1,
    "name": "에이치엠커피",
    "type": "카페",
    "address": "서울특별시 마포구 성미산로 97",
    "latitude": "37.5615757",
    "longitude": "126.9181148",
    "videoCnt": 0,
    "videos": []
  },
  {
    "id": 10,
    "name": "플렘므",
    "type": "카페",
    "address": "서울특별시 마포구 성미산로29길 3",
    "latitude": "37.56421972",
    "longitude": "126.9224911",
    "videoCnt": 0,
    "videos": []
  },
  {
    "id": 13,
    "name": "멜티드",
    "type": "카페",
    "address": "서울특별시 마포구 성미산로29안길 27-7",
    "latitude": "37.56564108",
    "longitude": "126.923229",
    "videoCnt": 0,
    "videos": []
  },
  {
    "id": 24,
    "name": "소점",
    "type": "요리 주점",
    "address": "서울특별시 마포구 성미산로17길 99",
    "latitude": "37.56585494",
    "longitude": "126.9170568",
    "videoCnt": 3,
    "videos": [
      {
        "id": 77,
        "platform": "YOUTUBE",
        "videoPk": "N7-oRBWcDic",
        "status": "ACTIVE",
        "starAverage": 4,
        "trophyCount": 2,
        "videoUrl": "https://www.youtube.com/watch?v=N7-oRBWcDic",
        "thumbnailUrl": "https://i.ytimg.com/vi/N7-oRBWcDic/sddefault.jpg",
        "title": "#연남동 #맛집 #소점 진짜 인생맛집입니다 !! 주말 12시쯤 가서 웨이팅작성해두세용!!",
        "viewCount": 315,
        "accountVideoMapping": {
          "LIKE": null,
          "TROPHY": "TROPHY",
          "STAR": 4
        }
      },
      {
        "id": 99997,
        "platform": "YOUTUBE",
        "videoPk": "cr-nVjYU7NE",
        "status": "ACTIVE",
        "starAverage": 3.5,
        "trophyCount": 2,
        "videoUrl": "https://www.youtube.com/watch?v=cr-nVjYU7NE",
        "thumbnailUrl": "https://i.ytimg.com/vi/cr-nVjYU7NE/sddefault.jpg",
        "title": "다시 도전한 나를 칭찬한다 연남동 '소점' #shorts #소점",
        "viewCount": 1196,
        "accountVideoMapping": {
          "LIKE": "LIKE",
          "TROPHY": null,
          "STAR": 3.5
        }
      },
      {
        "id": 99998,
        "platform": "YOUTUBE",
        "videoPk": "-WkMvFghGb0",
        "status": "ACTIVE",
        "starAverage": 0,
        "trophyCount": 0,
        "videoUrl": "https://www.youtube.com/watch?v=-WkMvFghGb0",
        "thumbnailUrl": "https://i.ytimg.com/vi/-WkMvFghGb0/sddefault.jpg",
        "title": "유명해지지 않았으면 해,, #shorts #연남동 #맛집",
        "viewCount": 622,
        "accountVideoMapping": {
          "LIKE": null,
          "TROPHY": null,
          "STAR": null
        }
      }
    ]
  },
  {
    "id": 25,
    "name": "귀빈",
    "type": "요리 주점",
    "address": "서울특별시 마포구 동교로 253",
    "latitude": "37.56258807",
    "longitude": "126.9243822",
    "videoCnt": 0,
    "videos": []
  }
]

4. Related Issue

close #