Skip to content

Conversation

@mark77234
Copy link
Collaborator

@mark77234 mark77234 commented Jan 8, 2026

작업내용

  • api 폴더 리팩토링
  • model 폴더 리팩토링

Copilot AI review requested due to automatic review settings January 8, 2026 08:33
@mark77234 mark77234 linked an issue Jan 8, 2026 that may be closed by this pull request
@mark77234 mark77234 self-assigned this Jan 8, 2026
@mark77234 mark77234 merged commit a356c45 into dev Jan 8, 2026
4 of 5 checks passed
@mark77234 mark77234 deleted the refactor/73 branch January 8, 2026 08:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the API service layer by renaming MemberService to UserService and consolidating related model classes. The refactoring improves code organization by separating user-related endpoints from matching-related endpoints.

Key changes:

  • Renamed MemberService to UserService and getMemberInfo() to getUserInfo()
  • Moved getMyAiSummary() from MatchingService to UserService for better API organization
  • Consolidated model files: merged AiSummaryResponse and deleted MyStatusResponse into UserResponse.kt, merged MalePendingMatchingResponse into Matching.kt

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
StatusAdvanceEffect.kt Updated to call getUserInfo() instead of getMemberInfo()
HomeViewModel.kt Added UserService dependency and updated AI summary call to use userService
LoginScreenViewModel.kt Updated to call getUserInfo() instead of getMemberInfo()
RouterScreen.kt Updated to call getUserInfo() instead of getMemberInfo()
UserResponse.kt Renamed from MemberInfoResponse to UserInfoResponse and consolidated AiSummaryResponse
MyStatusResponse.kt Deleted - functionality merged elsewhere
Matching.kt Consolidated MalePendingMatchingResponse from separate file
MalePendingMatchingResponse.kt Deleted - moved to Matching.kt
Error.kt Removed extra blank line
AiSummaryResponse.kt Deleted - moved to UserResponse.kt
DataStoreManager.kt Updated import to use UserInfoResponse
UserService.kt New service interface extracted from MemberService with user-related endpoints
ServiceFactory.kt Updated to create UserService instance (property still named memberService)
MemberService.kt Deleted - replaced by UserService
MatchingService.kt Removed getMyAiSummary() method and organized endpoints with comments
LoginCallbackActivity.kt Updated to call getUserInfo() instead of getMemberInfo()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


val memberService: MemberService by lazy {
ApiClient.retrofit.create(MemberService::class.java)
val memberService: UserService by lazy {
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

The property is named memberService but its type is UserService. This creates a naming inconsistency. Consider renaming the property to userService to match the type and better reflect the refactored structure.

Suggested change
val memberService: UserService by lazy {
val userService: UserService by lazy {

Copilot uses AI. Check for mistakes.
class HomeViewModel(
private val matchingService: MatchingService = ServiceFactory.matchingService
private val matchingService: MatchingService = ServiceFactory.matchingService,
private val userService: UserService = ServiceFactory.memberService
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

The parameter is named userService but is initialized from ServiceFactory.memberService. While this works, it creates confusion because the factory property name doesn't match the service type. This inconsistency should be resolved by updating ServiceFactory.memberService to ServiceFactory.userService.

Suggested change
private val userService: UserService = ServiceFactory.memberService
private val userService: UserService = ServiceFactory.userService

Copilot uses AI. Check for mistakes.
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.

[refactor] api 구조 리팩토링

2 participants