-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
84 additions
and
58 deletions.
There are no files selected for viewing
Binary file removed
BIN
-1.17 KB
build/classes/java/main/bssm/db/bssmgit/domain/user/domain/type/Imaginary.class
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
src/main/java/bssm/db/bssmgit/domain/boj/service/BojInformationService.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,25 @@ | ||
package bssm.db.bssmgit.domain.boj.service; | ||
|
||
import bssm.db.bssmgit.domain.github.domain.repository.GitHubRepository; | ||
import bssm.db.bssmgit.domain.github.web.dto.response.GithubResponseDto; | ||
import lombok.AccessLevel; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
@Service | ||
@RequiredArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class BojInformationService { | ||
|
||
private final GitHubRepository gitHubRepository; | ||
|
||
public List<GithubResponseDto> findAllUserGitDesc() { | ||
return gitHubRepository.findAll().stream() | ||
.filter(g -> g.getGithubId() != null) | ||
.filter(g -> g.getCommits() != null) | ||
.map(GithubResponseDto::new) | ||
.collect(Collectors.toList()); | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...sponse/BojAuthenticationResultResDto.java → ...sponse/BojAuthenticationResultResDto.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
2 changes: 1 addition & 1 deletion
2
.../web/dto/response/BojJsonResponseDto.java → .../web/dto/response/BojJsonResponseDto.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
3 changes: 2 additions & 1 deletion
3
...user/web/dto/response/BojResponseDto.java → .../boj/web/dto/response/BojResponseDto.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
2 changes: 1 addition & 1 deletion
2
...b/dto/response/RandomCodeResponseDto.java → ...b/dto/response/RandomCodeResponseDto.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
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
2 changes: 1 addition & 1 deletion
2
.../bssmgit/domain/user/util/GithubUtil.java → ...ssmgit/domain/github/util/GithubUtil.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
2 changes: 1 addition & 1 deletion
2
...user/web/dto/request/OauthAttributes.java → ...thub/web/dto/request/OauthAttributes.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
2 changes: 1 addition & 1 deletion
2
...er/web/dto/response/GitIdResponseDto.java → ...ub/web/dto/response/GitIdResponseDto.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
2 changes: 1 addition & 1 deletion
2
...web/dto/response/GitLoginResponseDto.java → ...web/dto/response/GitLoginResponseDto.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
2 changes: 1 addition & 1 deletion
2
...dto/response/GithubOauthResultResDto.java → ...dto/response/GithubOauthResultResDto.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
33 changes: 33 additions & 0 deletions
33
src/main/java/bssm/db/bssmgit/domain/github/web/dto/response/GithubResponseDto.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,33 @@ | ||
package bssm.db.bssmgit.domain.github.web.dto.response; | ||
|
||
import bssm.db.bssmgit.domain.github.domain.GitHub; | ||
import bssm.db.bssmgit.domain.user.domain.User; | ||
import bssm.db.bssmgit.domain.user.web.dto.response.UserResponseDto; | ||
import lombok.Data; | ||
|
||
import javax.persistence.Column; | ||
|
||
@Data | ||
public class GithubResponseDto { | ||
|
||
private final int commits; | ||
|
||
@Column | ||
private final String githubId; | ||
|
||
@Column | ||
private final String githubMsg; | ||
|
||
@Column | ||
private final String githubImg; | ||
|
||
private final UserResponseDto user; | ||
|
||
public GithubResponseDto(GitHub gitHub, User user) { | ||
this.commits = gitHub.getCommits(); | ||
this.githubId = gitHub.getGithubId(); | ||
this.githubMsg = gitHub.getGithubMsg(); | ||
this.githubImg = gitHub.getGithubImg(); | ||
this.user = new UserResponseDto(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
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
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
31 changes: 0 additions & 31 deletions
31
src/main/java/bssm/db/bssmgit/domain/user/web/dto/response/GithubResponseDto.java
This file was deleted.
Oops, something went wrong.