-
Notifications
You must be signed in to change notification settings - Fork 1
Modified2 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
horobito
wants to merge
153
commits into
main
Choose a base branch
from
modified2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Modified2 #4
Changes from all commits
Commits
Show all changes
153 commits
Select commit
Hold shift + click to select a range
9697da5
* 테스트용 코드 임시 pr
horobito 6031e51
* 1) Feed 에 속해있던 timeline 검색을 새로운 도메인 timeLine 으로 할당
horobito 7b04d98
* 표현층에 Feed 정보 전달하기 위한 DTO 생성
horobito b2641dd
* 시간표현 LocalDataTime 에서 Instant 로 타입 변경
horobito f5d5cf2
* 도메인 영역 보여내주는 대신, DTO 로 보내주도록 수정
horobito 7415642
* 로그인된 User 정보 가져오기 위한 서비스 형성
horobito 0f81f49
* TimeLineService 에서 SpringSecurity 활용하여 User 가져오도록 수정
horobito d31a394
* FriendShipService 에서 SpringSecurity 활용하여 User 가져오도록 수정
horobito 8748532
* 아직 테스트 안하는 부분 임시 주석 처리
horobito 5a9873d
* 필요없는 코드 제거
horobito 874e97e
* 좋아요 누른사람 처리를 새로운 도메인 영역을 만들어 할당하게 함
horobito 0ac0315
* 새로운 도메인 영역의 레이어 생성 시작
horobito 0ecd114
* 필요없는 코드 제거
horobito b4afd7b
* 필요없는 코드 제거 및 User 정보 찾는 코드 변경
horobito fd7f45f
* 필요없는 코드 제거
horobito 7100fcd
* repository 생성
horobito d87225e
* 기존 feed 에서 담당하고 있는 부분 가져옴
horobito ec2146d
* like 기능 구현중 (1) - 분기 작성
horobito e117169
* 패키지 이름 변경
horobito ff28e80
* 열거 상수 추가 -> 싫어요 기능 추가 대비
horobito b0db06a
* PreferredPerson 생성 기능 추가
horobito d02c820
* 구현에 필요한 기능 추가
horobito 0bce320
* service 층에서 응답위해 필요한 열거타입 생성
horobito 12d1431
* feed 와 댓글 중 어디의 preference 인지 설정하는 코드
horobito 353596d
* 오타 수정
horobito d340702
* 필요한 열거상수 추가
horobito 3a715af
* Feed 좋아요 기능 전체적인 구현 완료
horobito aad10a9
* 선호 상태 반환기능 추가
horobito 0e64ce9
* 선호 상태 변경기능 추가
horobito 2c962e1
* 좋아요 수 변경기능 추가 -> 새 객체 반환하도록 설정
horobito 34da7f5
* PreferredPersonController Feed 부분 구현
horobito 6a60e68
* PreferredPersonController Feed 부분 구현
horobito 90a1973
* PreferredPersonService 댓글 부분 구현 시작 & 중첩 코드 제거
horobito 4454958
* 단어 오류 변경 [Logined -> logged]
horobito b2f4adf
* 해당 feed 에서 comment 찾는 책임을
horobito bd98896
* UserSessionService 이용해서 유저 찾도록 변경
horobito 70fb228
* 필요한 열거상수 추가[COMMENT_NOT_FOUND]
horobito 61e69e6
* 댓글 좋아요 기능 구현 중
horobito 57c48b1
* 댓글 좋아요 기능 구현 중 [댓글 없을 경우] 구현
horobito e5656c0
* comment 내 독립성 해치는 코드 제거 및
horobito fb068a2
* 도메인 이름 의미 명확하게 변경
horobito 9ff223d
* 도메인 이름 의미 명확하게 변경
horobito 238fbf8
* [좋아요 숫자]의 의미가 명확하게 전달되도록 변경
horobito dc6aa7f
* Feed 와 Comment 의 선호 정보 혼동될 수 있으므로, repository 메소드에 매개변수 추가
horobito 392fd84
* 댓글 관련 좋아요 정보 구현
horobito 25104dc
* 관계를 좀 더 명확히 나타내는 이름으로 변경
horobito 4ccd61a
* 수정된 이름 반영
horobito c8b893e
* 수정된 이름 반영
horobito 6670867
* 수정된 이름 반영
horobito f6fef78
* 수정된 이름 반영
horobito 598ee46
* 오타 수정
horobito 4e2e3fe
* 좀 더 간단하게 다대다 관계처럼 동작하도록 변경
horobito 5cfa3fb
* 단순 띄어쓰기
horobito 6cf26d9
* 잠시 테스트 코드 짜보는 중
horobito c509e77
* FriendShipService 코드 User 에 좀 더 덜 의존하도록 변경중
horobito 4bd37b8
* FriendShipService 코드 User 에 좀 더 덜 의존하도록 변경시도중
horobito d8672f8
* User 에 덜 의존하도록
horobito 8c10d44
* UserService 에 유저 찾는 메소드 구현 후 FriendShipService 에 적용
horobito a2b1c14
* UserService 에 유저 찾는 메소드 구현 후 FriendShipService 에 적용 2
horobito a8f1e8f
* 필요없는 코드 제거
horobito 87265f9
* 필요없는 코드 제거
horobito bd5148d
* 아무 관계도 아닌 유저끼리의 친구 생성 테스트 성공
horobito de1fb9f
* 테스트 일부 코드 위치 변경
horobito a78a3dc
* CRUD 각각 테스트 코드 작성해보기
horobito 10b4881
* Create 중 이미 요청 또는 수락된 경우 테스트
horobito f668332
* Create 중 수락하는 경우에 대한 테스트 코드
horobito d951232
* 오타 변경
horobito 5581d21
*userService 로 유저 찾도록 역할 위임
horobito 22d62dd
*친구관계 삭제 테스트
horobito 5f6843a
*잘못된 부분 수정
horobito 47a28b2
*삭제 부분 테스트 구현
horobito ef9faca
*삭제 부분 테스트 구현 2.
horobito 2b4b7ea
*친구 관계 잘못 구현된 부분 수정 위한
horobito 5244f24
* 친구관계 표현을 위한 열거형 생성 후,
horobito 6f18cc1
* 친구관계 표현을 위한 열거형 생성 후,
horobito 67ea0bd
* 테스트 코드 일단 패스 .. 나중에 다시 시도할 것
horobito 217fb6b
* 삭제부분 반환 값 설정 완료
horobito d635104
* Controller 층에서 삭제요청에 대한 결과 값에 따른 응답 코드 설정 완료
horobito 432c4fc
* Feed 부분 반환 값 설정 완료 - 좀 불안함
horobito d960b7f
* FriendShip 친구 리스트 가져오는 것
horobito 66c6ead
* 미사용 테스트 코드 내 오류 발생부분 제거
horobito b07c92f
* 친구 삭제기능 응답 코드 작성
horobito 26f8b4d
* [내게 온 친구요청 찾는 기능] 의
horobito b1a66d3
* 필요없는 코드 제거
horobito 151aefa
* [내 타임라인 찾기] 응답 코드 작성
horobito 41e6949
* user 정보 userservice에서 찾도록 변경
horobito 20db8c5
* [Comment 만들기] 응답 코드 작성
horobito 3a10eef
* 필요없는 코드 제거
horobito d2762e0
* 클래스 위치 변경 및 새로운 레이어 생성
horobito c181c05
* 스프링 시큐리티에서 필요한 userDetails 를 받아오기 위한 service 기능 구현
horobito 6cc8916
* UserDetailsService 구현 및 그에 필요한 코드들 작성중
horobito e1ce8d3
* UserDetailsService 구현 및 그에 필요한 코드들 작성중
horobito ad66c50
* WebSecurityConfig 구현중
horobito 5c8a2df
* 사용할 filter 틀 만듬
horobito 89ac100
* InputStream 의 한버 읽히면 닫히는 문제 해결 위한
horobito 8db1580
* InputStream 의 한버 읽히면 닫히는 문제 해결 위한
horobito da2aa84
* ObjectMapper 넣어줌
horobito f92e558
* UserAuthenticationFilter 에 Object Mapper 넣어줌
horobito 3f107e6
* 내부에 필드 하나 추가
horobito f276ba3
* Filter 에 토큰 가지고 인증하는 과정 추가
horobito a4deb5c
* 일단 짠다
horobito c7ad150
* 필요없는 도메인 제거
horobito d360a52
* 필요없는 코드 제거
horobito 9a15b1c
* 필터링 하지 않는다는 코드 추가
horobito e7520e2
* 응답코드 수정 - 그러나 아직 잘 모르겠음
horobito 54f3237
* 1. 필요없는 코드 제거 - BasicInfo.java, Feed Repository 내 메소드
horobito 26ef168
* 필요없는 코드 제거
horobito f54abf7
* [피드 좋아요] 부분 반환 코드 변경
horobito 630e2db
* [피드 좋아요] 부분 반환 코드 다시 변경
horobito 3ee2da8
* [댓글 좋아요] 부분 반환 코드 변경
horobito f5169f9
* [친구목록 가져오기] 부분 반환 코드 변경
horobito ba9fcd1
* 로그인 기능 구현 시도
horobito 0fd2f0e
* 필요없는 코드 제거 및 로그인 기능 구현중 - 갑작스럽게 forwardFriendShip 에서 오류가 난다???
horobito e1bfeb4
* 로그인 기능 구현시도 3
horobito 17bf879
* 테스트 코드 중 필요없는 부분들 제거
horobito 47d6aff
* [친구 삭제 ] 중 1. 친구 관계가 없는 경우 테스트
horobito c9549c1
* [친구 삭제 ] 중 2. 친구 관계가 있는 경우 테스트 // 주의 = service 부분 반환 값 아직 변경 안함 - 테…
horobito 3da4419
* [친구 찾기] 테스트 1. 필수 요구사항 작성
horobito 5c2e18e
* 친구관계 찾기 테스트 생성 시도
horobito 40c7d30
* 반환값 변경
horobito 427b6d9
* [친구요청 확인 테스트] 1. 알맞은 요청 확인 테스트
horobito 126f480
* [친구요청 확인 테스트] 1.1 페이지 번호 또는 사이즈 잘못된 경우 오류 발생하는지 확인하는 코드 추가
horobito 50cd400
* [친구요청 확인 테스트] 2. 조건에 따른 반환 값 여부 확인
horobito a4e8cc3
* 친구 삭제 시 필요한 기능 추가
horobito 2fdadfd
* [친구 목록 확인 테스트] - 조건에 맞게 불러오는지 확인 -> 성공
horobito 0e0e28b
* 교훈 : 테스트 실시할 메소드 안에는
horobito 80a05f4
* [요청 수락] 테스트 성공
horobito 291484b
* 내부 코드 약간 수정
horobito 5d5c4dd
* 내부 코드 약간 수정
horobito 1accb81
* [게시글 좋아요 테스트 1]
horobito 3dd3326
* [게시글 좋아요 테스트 2] - 작성자와 친구 관계가 아닐 경우 테스트
horobito ce32217
* [게시글 좋아요 테스트 3] - 내 게시글인 경우
horobito 803156b
* 테스트에 필요한 몇몇 코드 수정
horobito ba802d7
* 중첩 코드 제거 위한 변수 추출
horobito 37fe532
* Feed 위한 Helper 적용
horobito 148e679
* Feed 좋아요 테스트
horobito ce8700d
* [Comment 좋아요 테스트 1]
horobito 8196e8b
* [Comment 좋아요 테스트 ] - 완료
horobito 8b0e8cf
* [FeedService 테스트 시작]
horobito b090c0d
* [Feed] 에 못 넣은 필드 추가
horobito 824213d
* 코드 수정
horobito 8572c47
* [Feed 만들기] 테스트를 위한 코드들 작성 및 수정
horobito fdd7b4d
* [Feed 만들기] 2. 올바른 요청 테스트 성공
horobito 8fa2eea
* [Feed 삭제하기] 1. <존재하지 않는 피드에 삭제 요청했을 경우> 테스트
horobito 11aae72
* [Feed 삭제하기] 2. <타인의 글에 삭제를 요청했을 경우> 테스트
horobito a1a4980
* [Feed 세부정보 확인하기] 1. 게시글 없을 때 2. 친구 관계 아닐 때 테스트
horobito 099e7b1
* [Feed 세부정보 확인하기] 3. 게시글 상세 조회 테스트
horobito b56e2f9
* [Feed 세부정보 확인하기] 3. <게시글 상세 조회 테스트 > 의 테스트 게시글에 comment 도 넣고 테스트 해봄
horobito 54e1be4
* [comment 만들기]
horobito a20c1f4
* [comment 만들기]
horobito 1625a27
* [comment 만들기]
horobito 330e7c0
* [comment 만들기]
horobito 64b5dad
* [Timeline 테스트] 1. 페이지 정보 또는 크기 잘못 입력
horobito File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Binary file added
BIN
+3.96 KB
com.example.demo.DemoApplication$$EnhancerBySpringCGLIB$$2d9d13d9.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.4 KB
com.example.demo.feed.service.CommentService$$EnhancerBySpringCGLIB$$84949dd5.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.9 KB
com.example.demo.feed.service.FeedService$$EnhancerBySpringCGLIB$$7434941e.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+14.9 KB
com.example.demo.friend.service.FriendShipService$$EnhancerBySpringCGLIB$$ec19504a.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.97 KB
com.example.demo.preferenceinfo.controller.PreferenceInfoController.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.8 KB
....demo.preferenceinfo.service.PreferenceInfoService$$EnhancerBySpringCGLIB$$9017d39e.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.6 KB
...ordEncoderConfig$$EnhancerBySpringCGLIB$$ab722492$$FastClassBySpringCGLIB$$bf0bec24.class
Binary file not shown.
Binary file added
BIN
+4.78 KB
...demo.security.infrastructure.PasswordEncoderConfig$$EnhancerBySpringCGLIB$$ab722492.class
Binary file not shown.
Binary file added
BIN
+3.09 KB
...emo.security.infrastructure.PasswordEncoderConfig$$FastClassBySpringCGLIB$$c3458f2c.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.82 KB
com.example.demo.security.infrastructure.UserAuthenticationFilter.class
Binary file not shown.
Binary file added
BIN
+12.2 KB
...ebSecurityConfig$$EnhancerBySpringCGLIB$$82529ae5$$FastClassBySpringCGLIB$$e01bd749.class
Binary file not shown.
Binary file added
BIN
+6.06 KB
...ple.demo.security.infrastructure.WebSecurityConfig$$EnhancerBySpringCGLIB$$82529ae5.class
Binary file not shown.
Binary file added
BIN
+9.32 KB
...le.demo.security.infrastructure.WebSecurityConfig$$FastClassBySpringCGLIB$$faef6e1f.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.8 KB
com.example.demo.user.service.UserService$$EnhancerBySpringCGLIB$$e63d40be.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
9 changes: 9 additions & 0 deletions
9
src/main/java/com/example/demo/feed/domain/RequestResult.java
This file contains hidden or 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,9 @@ | ||
| package com.example.demo.feed.domain; | ||
|
|
||
| public enum RequestResult { | ||
| BAD_REQUEST, | ||
| UNAUTHORIZED, | ||
| FORBIDDEN, | ||
| OK | ||
|
|
||
| } |
This file contains hidden or 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,23 @@ | ||
| package com.example.demo.feed.domain; | ||
|
|
||
|
|
||
| import lombok.AccessLevel; | ||
| import lombok.Getter; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| import javax.persistence.Embeddable; | ||
|
|
||
| @Embeddable | ||
| @Getter | ||
| @NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
| public class Title { | ||
|
|
||
| private String title; | ||
|
|
||
| private Title(String title){ | ||
| this.title = title; | ||
| } | ||
| public static Title create(String title){ | ||
| return new Title(title); | ||
| } | ||
| } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -26,6 +26,14 @@ public Writer(WriterId id, WriterName wrtName) { | |
| this.wrtName = wrtName; | ||
| } | ||
|
|
||
| public Long getId(){ | ||
| return this.id.getWriterId(); | ||
| } | ||
|
|
||
| public String getName(){ | ||
| return this.wrtName.getWriterName(); | ||
| } | ||
|
|
||
|
Comment on lines
+29
to
+36
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이건 없는 편이 좋을것 같네요 |
||
| public static Writer create(WriterId wrtId, WriterName wrtName) { | ||
| return new Writer(wrtId, wrtName); | ||
| } | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 반환 안하는거같네요 🤔