Skip to content

Feat/12 check my profile#17

Merged
lejuho merged 14 commits into
developfrom
feat/12-check-my-profile
Jul 14, 2025
Merged

Feat/12 check my profile#17
lejuho merged 14 commits into
developfrom
feat/12-check-my-profile

Conversation

@lejuho

@lejuho lejuho commented Jul 13, 2025

Copy link
Copy Markdown
Collaborator

📝 개요

이번 PR의 핵심 내용을 한 줄로 요약해 주세요.
메인 홈 화면에서 가져올 본인 정보를 조회하는 api 구현


💻 작업 내용

이번 PR에서 작업한 내용을 상세히 설명해 주세요.

  • UserController의 getUserInfo 메서드 구현
  • UserController 테스트 코드 작성
  • GlobalExceptionHandler 작성
  • CI/CD 환경변수 부분 수정
  • 유저 경험치 필드 통합
  • 테스트 컨테이너 환경 설정

✅ PR 체크리스트

PR을 보내기 전에 아래 체크리스트를 확인해 주세요.

  • 커밋 메시지는 포맷에 맞게 작성했나요?
  • 스스로 코드를 다시 한번 검토했나요?
  • 관련 이슈를 연결했나요?
  • 빌드 및 테스트가 로컬에서 성공했나요?

🔗 관련 이슈

이번 PR과 관련된 이슈 번호를 기재해 주세요.
예: Closes #123
Close #12


스크린샷 (선택)

UI 변경 사항이 있다면 스크린샷을 첨부해 주세요.

lejuho added 10 commits July 6, 2025 20:42
- ImageController,ImageProcessingService 구현 및 테스트 코드 작성
- 공통 응답 구조 전용 ApiResponse 클래스 구현
- ai api 활용 시 사용할 dto 레코드 구현
Related: #10
- User 클래스에 Builder 패턴 적용
- UserRequest dto에 uuid 필드 타입 변경(Long -> UUID)
- UserService에서 유저 검색 및 반환 메서드에서 검색 실패 시 null 반환
  대신 예외  던지도록 수정
- 기존 컨트롤러 테스트 코드가 서비스 계층 쪽 테스트에 치우쳐 있는 걸
  확인, 테스트 클래스 이름 변경(controller->service) 후 컨트롤러 테스트
  코드 작성
@github-actions

github-actions Bot commented Jul 13, 2025

Copy link
Copy Markdown
Contributor

🚨 PR 본문이 비어있습니다!

아래 템플릿을 복사하여 PR 내용을 작성해주세요.


📝 개요

이번 PR의 핵심 내용을 한 줄로 요약해 주세요.


💻 작업 내용

이번 PR에서 작업한 내용을 상세히 설명해 주세요.

  • 작업 내용 1
  • 작업 내용 2
  • ...

✅ PR 체크리스트

PR을 보내기 전에 아래 체크리스트를 확인해 주세요.

  • 커밋 메시지는 포맷에 맞게 작성했나요?
  • 스스로 코드를 다시 한번 검토했나요?
  • 관련 이슈를 연결했나요?
  • 빌드 및 테스트가 로컬에서 성공했나요?

🔗 관련 이슈

이번 PR과 관련된 이슈 번호를 기재해 주세요.
예: Closes #123


스크린샷 (선택)

UI 변경 사항이 있다면 스크린샷을 첨부해 주세요.

@lejuho lejuho requested review from Jeonghun01, c5ln and xoruddl July 13, 2025 12:33
@lejuho

lejuho commented Jul 13, 2025

Copy link
Copy Markdown
Collaborator Author

현재 로그인 기능이 없으므로 /users/me 대신 uuid를 사용해 PathVariable로 구현하였습니다

@Jeonghun01 Jeonghun01 left a comment

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.

good

@Jeonghun01 Jeonghun01 left a comment

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.

src/main/java/com/example/cp_main_be/global/exception/UserNotFoundException.java
line 36-56 확인 바람

this.updatedAt = LocalDateTime.now(); // 최초 생성 시 updated_at도 설정
if (this.level == null) this.level = 1L; // 기본 레벨 설정
if (this.experiencePoints == null) this.experiencePoints = 0; // 기본 경험치 설정
if (this.temperatureScore == null) this.temperatureScore = 0; // 기본 온도 점수 설정

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.

여기 기본 경험치랑 기본 온도 점수가 다르게 해놓으신 거 같은데, 하나로 통일 해주세요
별개 경험치가 아니고 하나의 체제로만 운영될 거에요

@lejuho lejuho Jul 15, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

experiencePoints 삭제하고 temperaturescore로 통일했슴다

@Jeonghun01 Jeonghun01 Jul 15, 2025

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.

근데 미안한데 ‘온도’가 아니라 ‘꽃’ 점수이긴해
원래 온도는 가제였고 꽃으로 하기로 했어
FlowerScore로 통일하실까요..?

@Jeonghun01 Jeonghun01 self-requested a review July 14, 2025 06:11
@lejuho lejuho merged commit 36724b8 into develop Jul 14, 2025
@lejuho lejuho deleted the feat/12-check-my-profile branch July 14, 2025 13:21
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.

내 프로필 조회 API 구현

2 participants