Skip to content

[Location] 사용자 위치 CRUD 및 Swagger 작성 #95

Merged
Creamcheesepie merged 8 commits into
mainfrom
feat/#60
Dec 17, 2025
Merged

[Location] 사용자 위치 CRUD 및 Swagger 작성 #95
Creamcheesepie merged 8 commits into
mainfrom
feat/#60

Conversation

@tobbot16
Copy link
Copy Markdown
Collaborator

@tobbot16 tobbot16 commented Dec 16, 2025

🔗 관련 이슈

관련된 이슈 번호를 연결해주세요.
Close #이슈번호 를 쓰면 PR merge 시 자동으로 close 됩니다.

🚀 PR 개요

이 PR이 어떤 변경을 포함하고 있는지 간단히 설명해주세요.

  • 사용자 위치 CRUD 작성
  • 사용자 좌표를 받으면 카카오 맵에 있는 좌표인지 확인 후 위치 정보 저장
  • Swagger 정보 작성

📌 변경 사항

주요 변경 내용을 체크리스트 형태로 정리해주세요.

  • 기능 추가

🧪 테스트 방법

변경된 내용을 어떻게 테스트했는지 구체적으로 적어주세요.

  1. http://localhost:8080/api/v1/location/my에서 확인이 가능합니다.

📸 스크린샷 (선택)

UI 변경 또는 시각적으로 확인할 수 있는 변경이 있다면 첨부해주세요.
위치 조회

image

위치 추가
image

위치 수정
image

위치 삭제
image

⚠️ 참고 사항

리뷰어가 알아야 할 사항이 있다면 자유롭게 작성해주세요.

@tobbot16 tobbot16 self-assigned this Dec 16, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 16, 2025

Test Results

1 tests  ±0   1 ✅ ±0   0s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 0b01e1d. ± Comparison against base commit 697d54e.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 16, 2025

⭐ JaCoCo Coverage

Line Coverage: 5.43%

📄 Coverage Details

Overall Line Coverage: 5.39% (119 covered / 2206 lines)

Package Summary (lowest first)
Package Line % Covered Missed
com/back/web7_9_codecrete_be/domain/chats/controller 0.00% 0 0
com/back/web7_9_codecrete_be/domain/location/service 0.00% 0 90
com/back/web7_9_codecrete_be/domain/chats/service 0.00% 0 0
com/back/web7_9_codecrete_be/domain/plans/controller 0.00% 0 33
com/back/web7_9_codecrete_be/domain/location/controller 0.00% 0 20
com/back/web7_9_codecrete_be/global/rsData 0.00% 0 11
com/back/web7_9_codecrete_be/domain/location/entity 0.00% 0 15
com/back/web7_9_codecrete_be/global/scheduler 0.00% 0 3
com/back/web7_9_codecrete_be/domain/auth/entity 0.00% 0 0
com/back/web7_9_codecrete_be/domain/auth/service 0.00% 0 71
com/back/web7_9_codecrete_be/domain/plans/service 0.00% 0 311
com/back/web7_9_codecrete_be/global/initData 0.00% 0 26
com/back/web7_9_codecrete_be/domain/users/controller 0.00% 0 20
com/back/web7_9_codecrete_be/domain/email/entity 0.00% 0 6
com/back/web7_9_codecrete_be/domain/users/service 0.00% 0 59
com/back/web7_9_codecrete_be/domain/auth/controller 0.00% 0 20
com/back/web7_9_codecrete_be/domain/concerts/controller 0.00% 0 22
com/back/web7_9_codecrete_be/domain/artists/controller 0.00% 0 12
com/back/web7_9_codecrete_be/global/aspect 0.00% 0 4
com/back/web7_9_codecrete_be/global/wikidata 0.36% 1 279
com/back/web7_9_codecrete_be/domain/artists/service 0.86% 3 345
com/back/web7_9_codecrete_be/global/musicbrainz 0.99% 1 100
com/back/web7_9_codecrete_be/domain/email/service 1.92% 1 51
com/back/web7_9_codecrete_be/domain/concerts/entity 4.76% 3 60
com/back/web7_9_codecrete_be/domain/concerts/service 6.80% 21 288
com/back/web7_9_codecrete_be/domain/artists/entity 9.09% 3 30
com/back/web7_9_codecrete_be/global/rq 12.90% 4 27
com/back/web7_9_codecrete_be/domain/users/entity 22.86% 8 27
com/back/web7_9_codecrete_be/domain/plans/entity 24.42% 21 65
com/back/web7_9_codecrete_be/global/security 26.36% 29 81
com/back/web7_9_codecrete_be/global/storage 33.33% 1 2
com/back/web7_9_codecrete_be/global/spotify 35.71% 5 9
com/back/web7_9_codecrete_be/domain/chats/entity 100.00% 1 0
com/back/web7_9_codecrete_be/global/doc 100.00% 17 0
Lowest Covered Classes (Top 20)
Class Line % Covered Missed
com.back.web7_9_codecrete_be.domain.plans.service.PlanService 0.00% 0 311
com.back.web7_9_codecrete_be.domain.users.service.UserService 0.00% 0 55
com.back.web7_9_codecrete_be.domain.concerts.service.ConcertService 0.00% 0 48
com.back.web7_9_codecrete_be.domain.location.service.KakaoLocalService 0.00% 0 47
com.back.web7_9_codecrete_be.domain.auth.service.AuthService 0.00% 0 44
com.back.web7_9_codecrete_be.domain.artists.service.ArtistService 0.00% 0 44
com.back.web7_9_codecrete_be.domain.concerts.entity.Concert 0.00% 0 38
com.back.web7_9_codecrete_be.global.security.JwtTokenProvider 0.00% 0 37
com.back.web7_9_codecrete_be.domain.plans.entity.Schedule 0.00% 0 36
com.back.web7_9_codecrete_be.domain.plans.controller.PlanController 0.00% 0 33
com.back.web7_9_codecrete_be.domain.location.service.LocationService 0.00% 0 30
com.back.web7_9_codecrete_be.domain.users.entity.User 0.00% 0 27
com.back.web7_9_codecrete_be.domain.auth.service.TokenService 0.00% 0 27
com.back.web7_9_codecrete_be.global.initData.BaseInitData 0.00% 0 26
com.back.web7_9_codecrete_be.domain.artists.entity.Artist 0.00% 0 25
com.back.web7_9_codecrete_be.domain.users.controller.UserController 0.00% 0 20
com.back.web7_9_codecrete_be.domain.auth.controller.AuthController 0.00% 0 20
com.back.web7_9_codecrete_be.domain.plans.entity.Plan 0.00% 0 18
com.back.web7_9_codecrete_be.domain.location.entity.Location 0.00% 0 15
com.back.web7_9_codecrete_be.domain.concerts.controller.ConcertController 0.00% 0 14
Changed Classes (from this PR)
Source (PR) Class Prefix Line % Covered Missed
src/main/java/com/back/web7_9_codecrete_be/domain/location/service/KakaoLocalService.java com.back.web7_9_codecrete_be.domain.location.service.KakaoLocalService 0.00% 0 47
src/main/java/com/back/web7_9_codecrete_be/domain/location/service/LocationService.java com.back.web7_9_codecrete_be.domain.location.service.LocationService 0.00% 0 30
src/main/java/com/back/web7_9_codecrete_be/domain/location/entity/Location.java com.back.web7_9_codecrete_be.domain.location.entity.Location 0.00% 0 15
src/main/java/com/back/web7_9_codecrete_be/domain/location/controller/KakaoTestController.java com.back.web7_9_codecrete_be.domain.location.controller.KakaoTestController 0.00% 0 10
src/main/java/com/back/web7_9_codecrete_be/domain/location/controller/LocationController.java com.back.web7_9_codecrete_be.domain.location.controller.LocationController 0.00% 0 9
src/main/java/com/back/web7_9_codecrete_be/domain/location/controller/TmapController.java com.back.web7_9_codecrete_be.domain.location.controller.TmapController 0.00% 0 1
src/main/java/com/back/web7_9_codecrete_be/domain/location/dto/KakaoCoordinateResponse.java com.back.web7_9_codecrete_be.domain.location.dto.KakaoCoordinateResponse 0.00% 0 0
src/main/java/com/back/web7_9_codecrete_be/domain/location/dto/KakaoLocalResponse.java com.back.web7_9_codecrete_be.domain.location.dto.KakaoLocalResponse 0.00% 0 0
src/main/java/com/back/web7_9_codecrete_be/domain/location/dto/TmapResponse.java com.back.web7_9_codecrete_be.domain.location.dto.TmapResponse 0.00% 0 0
src/main/java/com/back/web7_9_codecrete_be/domain/location/dto/request/LocationRequestDto.java com.back.web7_9_codecrete_be.domain.location.dto.request.LocationRequestDto 0.00% 0 0
src/main/java/com/back/web7_9_codecrete_be/domain/location/dto/response/LocationResponseDto.java com.back.web7_9_codecrete_be.domain.location.dto.response.LocationResponseDto 0.00% 0 0
src/main/java/com/back/web7_9_codecrete_be/domain/location/repository/LocationRepository.java com.back.web7_9_codecrete_be.domain.location.repository.LocationRepository 0.00% 0 0
src/main/java/com/back/web7_9_codecrete_be/global/error/code/LocationErrorCode.java com.back.web7_9_codecrete_be.global.error.code.LocationErrorCode 0.00% 0 0
src/main/java/com/back/web7_9_codecrete_be/global/security/SecurityConfig.java com.back.web7_9_codecrete_be.global.security.SecurityConfig 100.00% 25 0

🔗 Full HTML report: See artifact jacoco-full-html on this run → https://github.com/prgrms-web-devcourse-final-project/WEB7_9_codecrete_BE/actions/runs/20260099185

summary = "주변 음식점 조회(테스트)",
description = "테스트용 좌표(서울 시청 근처)로 카카오 로컬에서 주변 음식점을 조회합니다, 좌표는 입력하면 됩니다." +
"예시 : http://localhost:8080/api/v1/location/kakao/restaurant?lat=37.5665&lng=126.9780"
)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

설명 + 예시를 통해 친절하게 표현하신 부분이 보기 좋네요

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.

감사합니다!

Copy link
Copy Markdown
Collaborator

@larama-C larama-C left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

content = @Content(schema = @Schema(implementation = KakaoLocalResponse.Document.class)))
@GetMapping("/restaurants")

public List<KakaoLocalResponse.Document> testKakaoRestaurants() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

나중에 테스트 끝나시면 컨트롤러에서는 삭제해주시면 좋을 것 같습니다!

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.

넵 알겠습니다!

}

@Operation(
summary = "주변 카페 조회(테스트)",
Copy link
Copy Markdown
Collaborator

@ys0221 ys0221 Dec 16, 2025

Choose a reason for hiding this comment

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

혹시 카페 조회 메서드가 2개인 이유가 있을까용??
혹시 2개를 꼭 써야한다고 하시면 해당 부분은 Service 에서 처리하고 Controller 에서는 한 번만 선언하는 것도 좋을 것 같습니다!!

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.

하나는 테스트용이라서 해당 부분은 바로 수정해놓겠습니다!

@Creamcheesepie Creamcheesepie merged commit bf38622 into main Dec 17, 2025
2 checks passed
@Creamcheesepie Creamcheesepie deleted the feat/#60 branch December 17, 2025 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Location] 유저 위치 crud

5 participants