Skip to content

[FEAT] 6주차 미션_징니#23

Open
wldmsdl7 wants to merge 8 commits intojingnifrom
week6-jingni
Open

[FEAT] 6주차 미션_징니#23
wldmsdl7 wants to merge 8 commits intojingnifrom
week6-jingni

Conversation

@wldmsdl7
Copy link
Copy Markdown
Contributor

@wldmsdl7 wldmsdl7 commented May 5, 2026

🛠️ 작업 사항

  • 회원가입 API Service, Repository 구현 및 Controller 연결
  • 사용자 정보 조회 API Service, Repository 구현 및 Controller 연결
  • 해당 지역 내 모든 미션 조회 API Service, Repository 구현 및 Controller 연결
  • 내가 달성한 미션의 개수 조회 API Service, Repository 구현 및 Controller 연결
  • 내가 진행중/진행완료 인 미션 조회 API Service, Repository 구현 및 Controller 연결
  • 리뷰 생성하기 API Service, Repository 구현 및 Controller 연결

📸 관련 이미지 (스크린샷 또는 동영상)

회원가입 API 응답

image

사용자 정보 조회 API

image

해당 지역 내 모든 미션 조회 API

image image

내가 진행중/진행완료 인 미션 조회 API

image image

내가 달성한 미션의 개수 조회

image

리뷰 생성하기 API

image image

💬 기타 설명

💡 추가적으로 공유할 내용이나 리뷰어에게 전달할 사항이 있다면 작성해 주세요.

아직 스웨거랑 폴더구조 정리를 못했어요 !!!!
특히 폴더 구조는 고민이 많이 필요해서 스터디 때 얘기해보고 수정하고싶어요 !!!

@wldmsdl7 wldmsdl7 requested review from YONGJAEEE and gyeonseo May 5, 2026 13:38
@wldmsdl7 wldmsdl7 self-assigned this May 5, 2026
Copy link
Copy Markdown
Contributor

@YONGJAEEE YONGJAEEE left a comment

Choose a reason for hiding this comment

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

징니 API 코드는 바로 적용해도 될만큼 시간 많이 쓰며 제대로 고민하고 필요한 기능들 많이 추가한거 같아 .. !

내가 빼먹은 부분이 참 많구나 ...
고생했어 ~~

.point(member.getPoint())
.birth(member.getBirth())
.address(member.getAddress())
.build();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

여기는 메서드에 존재하는 코드가 적어서 괜찮은거 같은데,

DTO <-> Entity 변환 코드는 컨버터 클래스로 분리하던가, 메서드로 분리하는게 좋다고 생각해

변환 로직을 별도로 구분하게 되면,

  1. 재사용성
  2. 확장성
  3. 협업 편리성 (정해진 규칙대로 개발 가능)
    등의 이점을 챙길 수 있다고 생각해

}

List<MissionDTO.Mission> result = missions.stream()
.map(m -> new MissionDTO.Mission(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

이런 map 구문에서는 특히 변환 로직을 빼서 얻는 장점이 더 클거같아

if(
request.content() == null || request.content().isBlank()
|| request.star() == null || request.star().isNaN()
){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OR 조건이 한줄에 너무 많은거 같다는 생각이 드네

  1. content 조건과 star 조건문 두개로 분리
  2. 별도 함수로 분리
  3. Request Class 안에 isValid 같은 함수 추가 (코틀린 확장함수 쓰면 진짜 편함, 다만 자바니까 오히려 DTO의 역할이 애매해질듯...)

요런 방법들이 있을거 같아

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