Skip to content

5주차 미션 [루가]#7

Open
ochyeon wants to merge 16 commits into
mainfrom
luga/week5
Open

5주차 미션 [루가]#7
ochyeon wants to merge 16 commits into
mainfrom
luga/week5

Conversation

@ochyeon
Copy link
Copy Markdown
Collaborator

@ochyeon ochyeon commented Apr 30, 2026

📌 구현 결과

  • 4주차 미션 수정 -> 이전 pr에 반영

  • home 도메인 추가 -> api 명세서 상 홈 화면을 다루는 api가 필요하기 때문에 추가함 (우선은 controller, dto만)

  • 각 도메인 별 controller & dto 작성

  • [ TODO ] : restaurant 도메인을 따로 분리함에 따른 API 명세서 수정

  • [ TODO ] : 수정된 API 명세서를 바탕으로 restaurant 도메인 내 controller & dto 작성

  • [ TODO ] : 작성한 코드 바탕으로 API 명세서 수정 및 구체화

❓ 리뷰 요청

🤔 질문

💬 기타 공유 사항

Copy link
Copy Markdown
Member

@yangjiae12 yangjiae12 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

Comment on lines +7 to +10
@Getter
public static class RegionMissionReqDto {
private String region;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

static class 대신 record를 사용해봐도 좋을 것 같습니다! record를 사용하면 @Getter 없이도 접근자 메서드가 자동으로 생성되고, 필드가 불변으로 관리됩니다~

@RequiredArgsConstructor
public class HomeController {

@GetMapping("/userInfo")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

일반적으로 엔드포인트는 카멜 케이스가 아닌 하이픈을 사용하는 것이 표준입니다!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

또한 스웨거 명세도 추가해주시면 프론트 측에서 더 편하게 API를 활용할 수 있을 것 같아요~

Comment on lines +7 to +10
@Getter
public static class MissionSuccessReqDto {
private Long missionId;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Request Body 없이 missionId를 경로 변수로 받는 것이 더 자연스러울 것 같습니다!

Comment on lines +7 to +12
@Getter
public static class CreateReviewReqDto {
private Long restaurantId;
private Float score;
private String body;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

이 부분도 restaurantId는 경로로 빼면 좋습니다

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.

2 participants