-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ProfileController Facade & DCI 패턴 (#243)
- ProfileService 제거 - ProfileFacade & ProfileFacadeService 구현 - 테스트 코드 DCI 패턴 도입
- Loading branch information
Showing
5 changed files
with
222 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/com/genius/gitget/profile/service/ProfileFacade.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.genius.gitget.profile.service; | ||
|
||
import com.genius.gitget.challenge.user.domain.User; | ||
import com.genius.gitget.profile.dto.UserChallengeResultResponse; | ||
import com.genius.gitget.profile.dto.UserDetailsInformationResponse; | ||
import com.genius.gitget.profile.dto.UserInformationResponse; | ||
import com.genius.gitget.profile.dto.UserInformationUpdateRequest; | ||
import com.genius.gitget.profile.dto.UserInterestResponse; | ||
import com.genius.gitget.profile.dto.UserInterestUpdateRequest; | ||
import com.genius.gitget.profile.dto.UserPointResponse; | ||
|
||
public interface ProfileFacade { | ||
public UserPointResponse getUserPoint(User user); | ||
|
||
public UserInformationResponse getUserInformation(Long userId); | ||
|
||
public UserDetailsInformationResponse getUserDetailsInformation(User user); | ||
|
||
public Long updateUserInformation(User user, UserInformationUpdateRequest userInformationUpdateRequest); | ||
|
||
public void deleteUserInformation(User user, String reason); | ||
|
||
public void updateUserTags(User user, UserInterestUpdateRequest userInterestUpdateRequest); | ||
|
||
public UserInterestResponse getUserInterest(User user); | ||
|
||
public UserChallengeResultResponse getUserChallengeResult(User user); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.