Closed newoceanwave closed 1 week ago
{ "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만 추가로 넣어 내려주도록 수정하고자 합니다.
{ "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 } }
-
💻 구현 내용
🔎 구현 내용 상세
{ "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
📝 메모 사항
-