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

Feature/review 리뷰 등록, 조회, 이미지 등록, 평균 점수 조회 기능 구현 #82

Merged
merged 10 commits into from
Sep 17, 2023

Conversation

devk0ng
Copy link
Contributor

@devk0ng devk0ng commented Sep 17, 2023

구현 사항

  • 리뷰 등록 구현
  • 리뷰 조회 (상품 단건 조회시 함께 내려주게 끔 구현) 구현
  • 이미지 등록 (aws s3 이용) 구현
  • 리뷰 평균 점수 계산 구현

참고 사항

  • 이미지 명은 중복될 수 있기에 Random UUID로 file 명 결정

  • 리뷰 조회 sample

    {
    "id": "34651993867348a1bec5634d9e3a4191",
    "storeType": "EMART24",
    "image": "http://www.emart24.co.kr/image/MjE2Mg==",
    "name": "아임이)위생백(중)100매",
    "price": "1,500",
    "eventType": "NONE",
    "updatedTime": "2023-08-25",
    "description": null,
    "isNew": false,
    "viewCount": 1,
    "category": null,
    "recommend": null,
    "reviews": [
      {
        "taste": "GOOD",
        "quality": "GOOD",
        "valueForMoney": "GOOD",
        "score": 4.5,
        "contents": "완전 맛있어요~",
        "image": "/Users/kakao/Desktop/pyonsnal-project/review/34651993867348a1bec5634d9e3a4191",
        "writerId": null,
        "writerName": null
      },
      {
        "taste": "GOOD",
        "quality": "GOOD",
        "valueForMoney": "GOOD",
        "score": 4.5,
        "contents": "완전 맛있어요~",
        "image": "/Users/kakao/Desktop/pyonsnal-project/review/34651993867348a1bec5634d9e3a4191/스크린샷 2023-08-24 오전 11.44.52.png",
        "writerId": null,
        "writerName": null
      },
      {
        "taste": "GOOD",
        "quality": "GOOD",
        "valueForMoney": "GOOD",
        "score": 0,
        "contents": "string",
        "image": "https://pyonsnal-bucket.s3.ap-northeast-2.amazonaws.com/303f6e93-fea6-4686-acd2-9ca2fd2b951a.png",
        "writerId": 0,
        "writerName": "string"
      }
    ],
    "avgScore": 3
    }
  • 테스트 (로컬 환경에서 통합테스트 진행)

    image

    image

@devk0ng devk0ng merged commit a754ef6 into develop Sep 17, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant