Skip to content

Conversation

@bbbbooo
Copy link
Member

@bbbbooo bbbbooo commented Dec 26, 2024

#️⃣연관된 이슈

ex) #이슈번호, #이슈번호

  • close #이슈번호

📝작업 내용

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

  • 목표별 할일에서 lastGoalId를 받아 조회할때, lastGoalId보다 큰 값을 조회해야되는데 일치하는 값을 조회하여 수정하였습니다.
  • Slice 응답에 필드 추가를 위해 CustomSlice 클래스를 생성했습니다.
  • 필드 중 nextCursor는 마지막으로 조회된 목표 ID를 의미하며, 다음값이 없을 경우 null 처리됩니다.

스크린샷 (선택)

{
    "statusCode": 200,
    "data": {
        "content": [
            {
                "goalId": 53,
                "goalTitle": "테스트1",
                "goalColor": "#B18AE0",
                "progress": 0.0,
                "nextCursor": 0,
                "todos": [
                    {
                        "todoId": 93,
                        "goalTitle": "테스트1",
                        "goalColor": "#B18AE0",
                        "todoTitle": "테스트",
                        "startDate": "2024-12-26",
                        "endDate": "2024-12-27",
                        "todoStatus": "진행",
                        "todoLink": "",
                        "todoPic": "",
                        "createdAt": "2024-12-26T00:05:00",
                        "completes": [
                            {
                                "completeId": 227,
                                "completePic": null,
                                "note": null,
                                "completeLink": null,
                                "completeStatus": "진행",
                                "createdAt": "2024-12-26T00:05:00",
                                "startDate": "2024-12-26"
                            },
                            {
                                "completeId": 228,
                                "completePic": null,
                                "note": null,
                                "completeLink": null,
                                "completeStatus": "진행",
                                "createdAt": "2024-12-26T00:05:00",
                                "startDate": "2024-12-27"
                            }
                        ]
                    }
                ]
            },
            {
                "goalId": 58,
                "goalTitle": "new?",
                "goalColor": "#FFEC8B",
                "progress": 0.0,
                "nextCursor": 0,
                "todos": [
                    {
                        "todoId": 95,
                        "goalTitle": "new?",
                        "goalColor": "#FFEC8B",
                        "todoTitle": "??",
                        "startDate": "2024-12-26",
                        "endDate": "2024-12-30",
                        "todoStatus": "진행",
                        "todoLink": "",
                        "todoPic": "",
                        "createdAt": "2024-12-26T00:10:54",
                        "completes": [
                            {
                                "completeId": 235,
                                "completePic": null,
                                "note": null,
                                "completeLink": null,
                                "completeStatus": "진행",
                                "createdAt": "2024-12-26T00:10:54",
                                "startDate": "2024-12-26"
                            },
                            {
                                "completeId": 236,
                                "completePic": null,
                                "note": null,
                                "completeLink": null,
                                "completeStatus": "진행",
                                "createdAt": "2024-12-26T00:10:54",
                                "startDate": "2024-12-27"
                            },
                            {
                                "completeId": 237,
                                "completePic": null,
                                "note": null,
                                "completeLink": null,
                                "completeStatus": "진행",
                                "createdAt": "2024-12-26T00:10:54",
                                "startDate": "2024-12-28"
                            },
                            {
                                "completeId": 238,
                                "completePic": null,
                                "note": null,
                                "completeLink": null,
                                "completeStatus": "진행",
                                "createdAt": "2024-12-26T00:10:54",
                                "startDate": "2024-12-29"
                            },
                            {
                                "completeId": 239,
                                "completePic": null,
                                "note": null,
                                "completeLink": null,
                                "completeStatus": "진행",
                                "createdAt": "2024-12-26T00:10:54",
                                "startDate": "2024-12-30"
                            }
                        ]
                    }
                ]
            }
        ],
        "pageable": {
            "pageNumber": 0,
            "pageSize": 3,
            "sort": {
                "empty": true,
                "sorted": false,
                "unsorted": true
            },
            "offset": 0,
            "unpaged": false,
            "paged": true
        },
        "nextCursor": null,
        "size": 3,
        "number": 0,
        "sort": {
            "empty": true,
            "sorted": false,
            "unsorted": true
        },
        "first": true,
        "last": true,
        "numberOfElements": 2,
        "empty": false
    },
    "timestamp": "2024-12-26T16:48:08.9694959"
}

💬리뷰 요구사항(선택)

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

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

@bbbbooo bbbbooo requested a review from soheeparklee December 26, 2024 07:49
@bbbbooo bbbbooo self-assigned this Dec 26, 2024
@bbbbooo bbbbooo removed the request for review from soheeparklee December 26, 2024 08:00
@bbbbooo bbbbooo added the ⚡️ Simple 간단한 수정으로 인해 코드리뷰가 필요없을 경우 label Dec 26, 2024
@bbbbooo bbbbooo merged commit ddf8abc into develop Dec 26, 2024
1 check passed
@bbbbooo bbbbooo deleted the feature/todo-goals branch December 26, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚡️ Simple 간단한 수정으로 인해 코드리뷰가 필요없을 경우

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants