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

Post(플로깅 게시글) 관련 기능 리팩토링을 수행한다. #91

Merged
merged 3 commits into from
Aug 17, 2024

Conversation

chhaewxn
Copy link
Collaborator

@chhaewxn chhaewxn commented Aug 16, 2024

기능 명세

  • User가 참여 및 주최한 글만 필터링 되도록 리팩토링
  • 최근에 완료한 게시글 1개 조회하기 기능 구현
  • 데이터 응답 구조 통일

결과

🔻예시

[GET] /api/v1/posts/latest-completed

{
    "status": 200,
    "message": "SUCCESS",
    "data": {
        "id": 5,
        "title": "플로깅해요~",
        "startDate": "2024-08-16T09:30:00",
        "dueDate": "2024-08-10T11:30:00",
        "minAge": 25,
        "maxAge": 30,
        "minMember": 2,
        "maxMember": 10,
        "postGender": "FEMALE",
        "withPet": true,
        "content": "2번째 게시글 입니다. ",
        "createdAt": "2024-08-17T01:55:16",
        "fileUrls": [
            "https://",
            "https://"
        ],
        "route": [
            {
                "address": "string",
                "latitude": 87.123456,
                "longitude": 31.123456
            },
            {
                "address": "string",
                "latitude": 17.234567,
                "longitude": 17.234567
            },
            {
                "address": "string",
                "latitude": 17.234567,
                "longitude": 17.234567
            }
        ],
        "district": "SEODAEMUN",
        "authorId": 1,
        "isJoined": true,
        "isHearted": false,
        "isEnded": true,
        "isAuthor": true,
        "authorNickname": "채원",
        "authorProfileImageUrl": null,
        "isRecruitmentSuccessful": false,
        "isReviewed": false,
        "joinedMemberCount": 0
    }
}

함께 의논할 점

없으면 생략

Resolve

#77

@chhaewxn chhaewxn self-assigned this Aug 16, 2024
@chhaewxn chhaewxn changed the title Feature/post v2 Post(플로깅 게시글) 관련 기능 리팩토링을 수행한다. Aug 16, 2024
@chhaewxn chhaewxn added 💚backend backend ✨feat feature labels Aug 17, 2024
Copy link
Collaborator

@ParkIsComing ParkIsComing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@ParkIsComing ParkIsComing merged commit db64abc into develop Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💚backend backend ✨feat feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants