team-forAdhd / forAdhd-server

For ADHD 서버
1 stars 2 forks source link

약 별 리뷰 모아보기 api response 값 수정 #70

Closed newoceanwave closed 1 week ago

newoceanwave commented 1 week ago

💻 구현 내용

  1. 약 별 리뷰 모아보기 api response에 userid도 함께 반환하도록 수정

🔎 구현 내용 상세

{ "data": [ { "id": 4, "medicineId": 1, "content": "{\"header\":{\"resultCode\":\"00\",\"resultMsg\":\"NORMAL SERVICE.\"},\"body\":{\"pageNo\":1,\"totalCount\":0,\"numOfRows\":10}}", "images": [ "http://example.com/image1.jpg", "http://example.com/image2.jpg" ], "grade": 2.5, "helpCount": 0, "coMedications": [ 2, 3 ], "nickname": "이헨", "profileImage": "http://", "ageRange": "20대", "gender": "FEMALE", "averageGrade": 4, "createdAt": 1722060150, "lastModifiedAt": 1722060150 }, { "id": 3, "medicineId": 1, "content": "{\"header\":{\"resultCode\":\"00\",\"resultMsg\":\"NORMAL SERVICE.\"},\"body\":{\"pageNo\":1,\"totalCount\":0,\"numOfRows\":10}}", "images": [ "http://example.com/image1.jpg", "http://example.com/image2.jpg" ], "grade": 4, "helpCount": 0, "coMedications": [ 2, 3 ], "nickname": "이헨", "profileImage": "http://", "ageRange": "20대", "gender": "FEMALE", "averageGrade": 4, "createdAt": 1722060143, "lastModifiedAt": 1722060143 }, { "id": 2, "medicineId": 1, "content": "{\"header\":{\"resultCode\":\"00\",\"resultMsg\":\"NORMAL SERVICE.\"},\"body\":{\"pageNo\":1,\"totalCount\":0,\"numOfRows\":10}}", "images": [ "http://example.com/image1.jpg", "http://example.com/image2.jpg" ], "grade": 4.5, "helpCount": 0, "coMedications": [ 2, 3 ], "nickname": "이헨", "profileImage": "http://", "ageRange": "20대", "gender": "FEMALE", "averageGrade": 4, "createdAt": 1722060133, "lastModifiedAt": 1722060133 }, { "id": 1, "medicineId": 1, "content": "{\"header\":{\"resultCode\":\"00\",\"resultMsg\":\"NORMAL SERVICE.\"},\"body\":{\"pageNo\":1,\"totalCount\":0,\"numOfRows\":10}}", "images": [ "http://example.com/image1.jpg", "http://example.com/image2.jpg" ], "grade": 5, "helpCount": 0, "coMedications": [ 2, 3 ], "nickname": "이헨", "profileImage": "http://", "ageRange": "20대", "gender": "FEMALE", "averageGrade": 4, "createdAt": 1722060126, "lastModifiedAt": 1722060126 } ], "paging": { "page": 0, "size": 10, "totalPages": 1, "numberOfElements": 4, "totalElements": 4, "isFirst": true, "isLast": true, "isEmpty": false } } ➡️ 현재 반환값 다음과 같습니다. 여기에 userid만 추가로 넣어 내려주도록 수정하고자 합니다.

✔️ TODO

📝 메모 사항

-