Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
318 commits
Select commit Hold shift + click to select a range
25fb97e
Merge commit '4142bf8d1c0ce131b1ce346e66f36460978df3e5' into feature/…
wlsh44 Feb 17, 2025
89aba8e
chore: 프로퍼티 수정
wlsh44 Feb 17, 2025
45ed053
chore: 설정 파일 탭 오타 수정
wlsh44 Feb 17, 2025
2d6bf83
Merge pull request #16 from SWYP-team-2th/feature/rest-docs
wlsh44 Feb 17, 2025
a6c5136
fix: test application.yml
YuuuuuuYu Feb 17, 2025
88cef23
Merge pull request #19 from SWYP-team-2th/fix/ci-cd-dev
YuuuuuuYu Feb 17, 2025
757ff78
docs: 오타 수정
YuuuuuuYu Feb 18, 2025
0fa10c5
docs: 이미지 URL 수정 및 게시물 생성 문서 수정
YuuuuuuYu Feb 18, 2025
12aabf9
chore: spring actuator 추가
wlsh44 Feb 19, 2025
58a7cbd
feat: refresh 토큰 쿠키 저장 방식으로 변경 및 토큰 재발급 기능 추가
wlsh44 Feb 19, 2025
ec011be
test: refresh token 재발급 관련 테스트 코드 추가
wlsh44 Feb 20, 2025
4c4f2b4
feat: 리프레시 토큰 예외 처리 변경 및 쿠키 설정 추가
wlsh44 Feb 20, 2025
88c1ff2
docs: 소셜 로그인 및 토큰 재발급 docs 추가
wlsh44 Feb 20, 2025
faac271
docs: 게시물 등록 API 원복 및 votes 타입 변경
YuuuuuuYu Feb 20, 2025
8885cb5
Merge pull request #21 from SWYP-team-2th/docs/rest-docs-posts
YuuuuuuYu Feb 20, 2025
ce9a716
feat: 이미지 업로드 추가
YuuuuuuYu Feb 20, 2025
fe173b2
test: 이미지 업로드 테스트
YuuuuuuYu Feb 20, 2025
cc6f7d4
docs: 컨트롤러 세팅
YuuuuuuYu Feb 20, 2025
a6564da
docs: 이미지 API 문서 세팅
YuuuuuuYu Feb 20, 2025
e6b1286
chore: 불필요한 소스 제거
YuuuuuuYu Feb 20, 2025
e66c760
test: 프로퍼티 수정
YuuuuuuYu Feb 20, 2025
f906ce5
refactor: jwt 관련 패키지 이동
wlsh44 Feb 21, 2025
9eb3994
refactor: oauth 로그인 방식 변경
wlsh44 Feb 21, 2025
210a6e2
fix: refreshToken 쿠키 관련 설정 수정
wlsh44 Feb 21, 2025
e625c51
fix: cors 관련 설정 수정
wlsh44 Feb 21, 2025
5210127
test: 리팩터링 관련 테스트 코드 추가
wlsh44 Feb 21, 2025
cb42d03
feat: 개발용 데이터 세팅 컴포넌트 추가
wlsh44 Feb 21, 2025
a52d720
docs: 소셜 로그인 문서 수정
wlsh44 Feb 21, 2025
f28a870
chore: oauth 설정 갱신
wlsh44 Feb 21, 2025
5dc6992
Merge pull request #22 from SWYP-team-2th/feature/upload-image
YuuuuuuYu Feb 23, 2025
0e22afd
docs: images API 설정 추가
YuuuuuuYu Feb 23, 2025
fa115bb
test: webmvctest 위치 수정
wlsh44 Feb 23, 2025
8e919ce
docs: 503 error 추가
YuuuuuuYu Feb 23, 2025
673853f
Merge remote-tracking branch 'origin/develop' into feature/refresh-token
wlsh44 Feb 23, 2025
59dbb24
refactor: jwt 토큰 발급 authService로 변경
wlsh44 Feb 23, 2025
e7db15e
test: @WebMvcTest 동일 context에서 진행하도록 수정
wlsh44 Feb 23, 2025
e1be798
refactor: 필요 없는 코드 제거
wlsh44 Feb 23, 2025
c176411
fix: profile null일 경우 처리 수정
wlsh44 Feb 23, 2025
c3f85db
Merge pull request #23 from SWYP-team-2th/feature/upload-image
YuuuuuuYu Feb 23, 2025
63afe98
Merge pull request #25 from SWYP-team-2th/feature/refresh-token
wlsh44 Feb 23, 2025
37a7f2e
Merge remote-tracking branch 'origin/develop' into feature/post
wlsh44 Feb 23, 2025
56de851
fix: 유저 생성 transaction 수정
wlsh44 Feb 23, 2025
5c1c9ff
feat: 게시글 entity 추가
wlsh44 Feb 23, 2025
808f33f
feat: 게시글 생성 기능 추가
wlsh44 Feb 23, 2025
e3a24e9
test: 게시글 생성 관련 테스트 코드 추가
wlsh44 Feb 23, 2025
277b04e
docs: docs 구현 여부 추가
wlsh44 Feb 23, 2025
f259934
Merge pull request #26 from SWYP-team-2th/feature/post
wlsh44 Feb 23, 2025
e2236fe
feat: 득표율 계산 기능 추가
wlsh44 Feb 23, 2025
697047c
test: 득표 계산 테스트 코드 추가
wlsh44 Feb 23, 2025
84f1d05
refactor: refresh token 만료 시간 이름 수정
wlsh44 Feb 23, 2025
dcf8b8f
refactor: 소셜 로그인 인가 코드 발급 방식 변경
wlsh44 Feb 23, 2025
989572b
docs: 소셜 로그인 인가 코드 발급 리다이렉트 api 제거
wlsh44 Feb 23, 2025
b123f0f
refactor: 소셜 로그인 인가 코드 발급 방식 변경
wlsh44 Feb 23, 2025
b4b5c50
docs: 소셜 로그인 인가 코드 발급 리다이렉트 api 제거
wlsh44 Feb 23, 2025
09375ac
Merge remote-tracking branch 'origin/feature/oauth' into feature/oauth
wlsh44 Feb 23, 2025
9fc6868
feat: 게시글 id 조회 기능 추가
wlsh44 Feb 23, 2025
9d2bb4d
test: 게시글 id 조회 테스트 코드 추가
wlsh44 Feb 23, 2025
66c811c
Merge pull request #27 from SWYP-team-2th/feature/oauth
wlsh44 Feb 23, 2025
0ace5bd
chore: BaseEntity 생성일자 수정일자 자동 세팅
YuuuuuuYu Feb 23, 2025
6a99037
fix: jpa auditing 추가
wlsh44 Feb 24, 2025
09f53b9
feat: 내가 작성한 게시글 조회 기능 추가
wlsh44 Feb 24, 2025
c0cbe39
test: 내가 작성한 게시글 조회 테스트 코드 추가
wlsh44 Feb 24, 2025
daa4420
chore: BaseEntity Getter 추가
YuuuuuuYu Feb 24, 2025
73d4f5d
feat: 댓글 생성 및 조회 추가
YuuuuuuYu Feb 24, 2025
61ce5be
test: 댓글 기능 테스트 추가
YuuuuuuYu Feb 24, 2025
6bb8db5
test: 레포지토리 테스트 수정
YuuuuuuYu Feb 24, 2025
df0eb28
test: 레포지토리 테스트 로컬과 CI에서 결과가 다름
YuuuuuuYu Feb 24, 2025
e790503
chore: 개발 DB 세팅
YuuuuuuYu Feb 24, 2025
ccf3cbd
chore: 개발 DB 세팅
YuuuuuuYu Feb 24, 2025
afeba05
Merge pull request #31 from SWYP-team-2th/chore/dev-db
YuuuuuuYu Feb 24, 2025
b71d8ab
chore: import 와일드카드 수정
YuuuuuuYu Feb 24, 2025
d794573
feat: 투표 기능 추가
wlsh44 Feb 24, 2025
769fe47
chore: voteId 원복 후 로직 수정
YuuuuuuYu Feb 24, 2025
bf23dec
test: 투표 테스트 코드 추가
wlsh44 Feb 24, 2025
4cdb56a
test: 테스트 코드 수정
YuuuuuuYu Feb 24, 2025
16adb75
feat: 내가 투표한 게시글 조회 기능 추가
wlsh44 Feb 24, 2025
dfe2c94
chore: dev H2 DB 원복
YuuuuuuYu Feb 24, 2025
2b9ee31
test: 내가 투표한 게시글 조회 테스트 코드 추가
wlsh44 Feb 24, 2025
5d0c52a
feat: 구현 기능 controller 연결
wlsh44 Feb 24, 2025
7f3643e
Merge pull request #32 from SWYP-team-2th/chore/dev-db
YuuuuuuYu Feb 24, 2025
f04dda2
chore: 개발 프로퍼티 세팅
YuuuuuuYu Feb 24, 2025
17f13e6
Merge pull request #29 from SWYP-team-2th/feature/comment
YuuuuuuYu Feb 24, 2025
74b14d5
docs: 개발 API 문서 댓글 조회 깨짐
YuuuuuuYu Feb 24, 2025
f7729ab
Merge pull request #34 from SWYP-team-2th/feature/comment
YuuuuuuYu Feb 24, 2025
b242706
feat: 개발용 더미 데이터 추가
wlsh44 Feb 25, 2025
9a078b2
docs: docs 현황 추가 및 method 표시
wlsh44 Feb 25, 2025
4cb43f6
Merge remote-tracking branch 'origin/develop' into feature/post
wlsh44 Feb 25, 2025
758ec9e
docs: 테스트용 개발 토큰 추가
wlsh44 Feb 25, 2025
94b14af
fix: 파라미터 버그 수정
wlsh44 Feb 25, 2025
1c9859c
test: test 깨지는 부분 수정
wlsh44 Feb 25, 2025
dee80d9
Merge pull request #36 from SWYP-team-2th/feature/post
wlsh44 Feb 25, 2025
aee9244
chore: 개발 프로퍼티 세팅
YuuuuuuYu Feb 25, 2025
b6ea1ea
chore: gson 추가
wlsh44 Feb 25, 2025
1dd7ba2
feat: 로깅 추가
wlsh44 Feb 25, 2025
e3408e8
feat: request response 로깅 추가
wlsh44 Feb 25, 2025
efff504
chore: 설정 파일 갱신
wlsh44 Feb 25, 2025
b230137
chore: 설정 파일 갱신
wlsh44 Feb 25, 2025
ff78147
refactor: http 로그 레벨 수정
wlsh44 Feb 25, 2025
b1430a0
chore: 설정 파일 갱신
wlsh44 Feb 25, 2025
b191f86
Merge remote-tracking branch 'origin/develop' into feature/logging
wlsh44 Feb 25, 2025
3ac1bac
Merge pull request #37 from SWYP-team-2th/feature/logging
wlsh44 Feb 25, 2025
e7fde7c
refactor: 게시글 조회 투표 현황 분리
wlsh44 Feb 25, 2025
2bd4246
test: 테스트 수정
wlsh44 Feb 25, 2025
da35ae3
chore: 임계치 알림 시간 수정
YuuuuuuYu Feb 25, 2025
d2fd4f2
chore: dev CD 수동 실행 가능하도록 설정
YuuuuuuYu Feb 25, 2025
21a022c
chore: workflow_dispatch 위치 변경
YuuuuuuYu Feb 25, 2025
8829d7f
chore: workflow_dispatch 제거
YuuuuuuYu Feb 25, 2025
e9f55b3
test: dev-cd 실행시키기 위한 커밋
YuuuuuuYu Feb 25, 2025
182afba
Merge pull request #38 from SWYP-team-2th/test/dev-cd
YuuuuuuYu Feb 25, 2025
a020c61
Revert "test: dev-cd 실행시키기 위한 커밋"
YuuuuuuYu Feb 25, 2025
2f47890
Merge pull request #39 from SWYP-team-2th/revert-38-test/dev-cd
YuuuuuuYu Feb 25, 2025
b92c4d8
Merge branch 'develop' into feature/find-post
wlsh44 Feb 25, 2025
5f5419e
refactor: 로깅 h2 console 허용
wlsh44 Feb 25, 2025
8d9d05b
feat: 투표 현황 조회 기능 구현
wlsh44 Feb 25, 2025
62ee461
test: 투표 현황 조회 관련 테스트 코드 추가
wlsh44 Feb 25, 2025
e63c95e
docs: 투표 현황 조회 docs 추가
wlsh44 Feb 25, 2025
a9cf1bf
Merge pull request #40 from SWYP-team-2th/feature/find-post
wlsh44 Feb 25, 2025
aa24789
refactor: 투표 현황 이미지 id 컬럼 추가
wlsh44 Feb 25, 2025
08fbd84
docs: 필요 없는 부분 제거
wlsh44 Feb 25, 2025
b4bb9fa
docs: 필요 없는 부분 제거
wlsh44 Feb 25, 2025
3427dff
refactor: 투표 현황 이미지 id 컬럼 추가
wlsh44 Feb 25, 2025
624b25b
Merge remote-tracking branch 'origin/feature/find-post' into feature/…
wlsh44 Feb 25, 2025
b588ad1
fix: http 로깅 헤더 표시 안 되는 문제 수정
wlsh44 Feb 25, 2025
dd5d6b8
feat: 게스트 투표 기능 추가
wlsh44 Feb 25, 2025
913ab13
fix: 투표 비율 계산 인자 순서 잘못된 부분 수정
wlsh44 Feb 25, 2025
3ab22b2
refactor: voteId -> imageId 로 변경
wlsh44 Feb 25, 2025
a30d30e
Merge pull request #41 from SWYP-team-2th/feature/find-post
wlsh44 Feb 25, 2025
4cac8aa
test: 게스트 투표 테스트 코드 추가
wlsh44 Feb 25, 2025
1aba77d
Merge remote-tracking branch 'origin/develop' into feature/guest-vote
wlsh44 Feb 25, 2025
7976205
docs: 게스트 투표 구현 현황 변경
wlsh44 Feb 25, 2025
6111e65
feat: 게시글 마감 기능 추가
wlsh44 Feb 25, 2025
1e74a9b
test: 게시글 마감 테스트 코드 추가
wlsh44 Feb 25, 2025
18a0dc6
docs: 게시글 투표 마감 추가
wlsh44 Feb 25, 2025
123b436
fix: CRC32 헤더 비활성화 설정 추가
YuuuuuuYu Feb 25, 2025
2898801
fix: 투표 마감됐을 때 투표할 경우 예외처리 추가
wlsh44 Feb 25, 2025
552efb1
Merge pull request #46 from SWYP-team-2th/fix/upload-image-jpg
YuuuuuuYu Feb 25, 2025
20a4fab
feat: 게시글 삭제 기능 추가
wlsh44 Feb 25, 2025
dd43ca8
test: 게시글 삭제 테스트 코드 추가
wlsh44 Feb 25, 2025
4361e97
feat: 유저 정보 조회 기능 추가
wlsh44 Feb 25, 2025
350ecc3
test: 유저 정보 조회 테스트 코드 추가
wlsh44 Feb 25, 2025
96d2256
docs: 구현 현황 수정
wlsh44 Feb 25, 2025
361df8d
Merge pull request #50 from SWYP-team-2th/feature/guest-vote
wlsh44 Feb 25, 2025
ac2a98d
feat: 유저 랜덤 닉네임
YuuuuuuYu Feb 25, 2025
c2e61c7
feat: User 생성자 validate 제거
YuuuuuuYu Feb 25, 2025
a749fe0
feat: 유저 생성 시 랜덤 닉네임 적용
YuuuuuuYu Feb 25, 2025
46bd966
feat: 개발 데이터 생성 시 랜덤 닉네임 적용
YuuuuuuYu Feb 25, 2025
d1bdce1
test: 랜덤 닉네임 테스트
YuuuuuuYu Feb 25, 2025
a944abe
test: 메인 코드에 맞게 개수 수정
YuuuuuuYu Feb 25, 2025
8adfac2
chore: 깨진 문자 수정
YuuuuuuYu Feb 25, 2025
ffe920b
test: User 객체 validate 제거로 테스트 스킵
YuuuuuuYu Feb 25, 2025
de0375f
Merge pull request #51 from SWYP-team-2th/feature/user-nickname
YuuuuuuYu Feb 25, 2025
43e98b3
chore: hikari 설정 제거 갱신
wlsh44 Feb 26, 2025
8d539de
fix: ddl 설정 update로 바뀌면서 데이터 생성 버그 수정
wlsh44 Feb 26, 2025
407a934
Merge pull request #54 from SWYP-team-2th/fix/dummydata
wlsh44 Feb 26, 2025
b383a99
chore: dev hikari 설정 추가
YuuuuuuYu Feb 26, 2025
80cbe52
fix: PostImageResponse 썸네일 이미지 추가
YuuuuuuYu Feb 26, 2025
ca78992
test: images[].thumbnailUrl 추가
YuuuuuuYu Feb 26, 2025
39c3711
chore: 카카오 기본프로필 이미지를 디폴트로 세팅
YuuuuuuYu Feb 26, 2025
34cc210
Merge pull request #58 from SWYP-team-2th/fix/post-image-response
wlsh44 Feb 27, 2025
9c45988
feat: 게스트 관련 기능 추가
wlsh44 Feb 27, 2025
c554bad
refactor: 댓글 작성자 투표 이미지 id 필드 이름 변경
wlsh44 Feb 27, 2025
abf1c3e
feat: 투표 작성자 본인 여부 추가
wlsh44 Feb 27, 2025
b841c53
Merge pull request #60 from SWYP-team-2th/fix/api
wlsh44 Feb 27, 2025
d7253bd
Merge remote-tracking branch 'origin/develop' into fix/api
wlsh44 Feb 27, 2025
773b8bc
fix: 내가 작성/투표한 게시글 조회 uri 수정
wlsh44 Feb 27, 2025
d5f8c3d
fix: 데이터 초기화 로컬에서 가능하게 수정
wlsh44 Feb 27, 2025
eccf964
Merge pull request #61 from SWYP-team-2th/fix/api
wlsh44 Feb 27, 2025
5a75ce3
Merge branch 'develop' into feature/guets-vote
wlsh44 Feb 27, 2025
ef1c256
refactor: 게시글 조회 응답 수정
wlsh44 Feb 27, 2025
012acf5
Merge pull request #62 from SWYP-team-2th/fix/api
wlsh44 Feb 27, 2025
e94f638
Merge branch 'develop' into feature/guets-vote
wlsh44 Feb 27, 2025
c2d42e5
feat: 게스트 토큰 조회 기능 추가
wlsh44 Feb 27, 2025
e81d3a1
refactor: 예외처리 정리
wlsh44 Feb 27, 2025
beead95
refactor: 투표 userSeq -> userId로 변경
wlsh44 Feb 27, 2025
c09d4d6
test: 게스트 토큰 발급 테스트 코드 추가
wlsh44 Feb 27, 2025
3cebe5a
test: 테스트 코드 수정
wlsh44 Feb 27, 2025
25bed71
fix: 댓글 리스트 조회 수정
wlsh44 Feb 27, 2025
8280d6f
fix: 내가 작성한 게시글 api url 수정
wlsh44 Feb 27, 2025
1212f2a
feat: baseEntity 추가
wlsh44 Feb 27, 2025
19af103
feat: 댓글 더미 데이터 추가
wlsh44 Feb 27, 2025
80de11d
test: 암호화 복호화 테스트
wlsh44 Feb 27, 2025
5fb3fb5
Merge pull request #63 from SWYP-team-2th/feature/guets-vote
wlsh44 Feb 27, 2025
10b94b8
refactor: 게스트 토큰 관련 리팩터링
wlsh44 Feb 27, 2025
813ea23
docs: 게스트 토큰 발급 api 추가
wlsh44 Feb 27, 2025
a94201a
feat: 댓글 작성 여부 추가
wlsh44 Feb 27, 2025
955d426
test: 댓글 작성 여부 추가
wlsh44 Feb 27, 2025
7f7e694
feat: 더미 데이터 있을 경우 데이터 추가 x
wlsh44 Feb 27, 2025
defd9d4
feat: 게시글 투표 여부 추가
wlsh44 Feb 27, 2025
14846a4
test: 게시글 댓글 여부 테스트 코드 추가
wlsh44 Feb 27, 2025
af7cbf2
feat: social account unique 추가
wlsh44 Feb 27, 2025
d21b201
refactor: 소셜 로그인 실패 에러 코드 변경
wlsh44 Feb 27, 2025
600e5af
Merge pull request #64 from SWYP-team-2th/fix/comments
wlsh44 Feb 27, 2025
1e5d40a
chore: 커넥션 누수 방지 관련 프로퍼티 수정
YuuuuuuYu Feb 27, 2025
0e08871
Merge branch 'develop' of https://github.com/SWYP-team-2th/server int…
YuuuuuuYu Feb 27, 2025
787b7b9
chore: base64 용도 의존성 추가
wlsh44 Feb 27, 2025
24ff903
refactor: url 사용을 위한 base62로 변경
wlsh44 Feb 27, 2025
c06a4c1
feat: 공유 url 추가
wlsh44 Feb 27, 2025
e6bea43
refactor: user seq 제거
wlsh44 Feb 27, 2025
7125a8e
test: 공유 url 관련 테스트 코드 추가
wlsh44 Feb 27, 2025
213fd76
fix: 이미지 이름 공백 추가
wlsh44 Feb 27, 2025
24965cb
docs: 공유 url 추가
wlsh44 Feb 27, 2025
28e12be
test: 이미지 이름 공백 추가
wlsh44 Feb 27, 2025
c54304a
Merge pull request #65 from SWYP-team-2th/feature/shareurl
wlsh44 Feb 27, 2025
e679392
Revert "Merge pull request #65 from SWYP-team-2th/feature/shareurl"
wlsh44 Feb 27, 2025
288908e
fix: encrypt decrypt 잘 안되는 문제 수정
wlsh44 Feb 28, 2025
276ac42
test: 테스트 코드 수정
wlsh44 Feb 28, 2025
b0bd09f
chore: 설정 파일 갱신
wlsh44 Feb 28, 2025
9afc51b
fix: encrypt decrypt 잘 안되는 문제 수정
wlsh44 Feb 28, 2025
0f78923
test: 테스트 코드 수정
wlsh44 Feb 28, 2025
035c899
Merge pull request #65 from SWYP-team-2th/feature/shareurl
wlsh44 Feb 28, 2025
f0c31e5
Merge remote-tracking branch 'origin/feature/shareurl' into feature/s…
wlsh44 Feb 28, 2025
db7e97a
fix: 더미데이터 투표 이미지 이름 수정
wlsh44 Feb 28, 2025
e97a671
Merge pull request #66 from SWYP-team-2th/feature/shareurl
wlsh44 Feb 28, 2025
81376a9
feat: 디스코드 에러 알림 추가
wlsh44 Feb 28, 2025
9e2bbe4
refactor: 토큰 발급 시 유저 Id 추가
wlsh44 Feb 28, 2025
48c0c88
feat: 본인 조회 api 추가
wlsh44 Feb 28, 2025
18e5e0e
docs: 유저 정보 조회 api 추가
wlsh44 Feb 28, 2025
01a7236
Merge pull request #67 from SWYP-team-2th/feature/user-info
wlsh44 Feb 28, 2025
c4c0499
chore: 설정파일 갱신
wlsh44 Feb 28, 2025
c4462fd
Merge pull request #68 from SWYP-team-2th/feature/discord
wlsh44 Feb 28, 2025
d389c0e
chore: base62 추가
wlsh44 Feb 28, 2025
984ae51
chore: 설정 파일 갱신
wlsh44 Feb 28, 2025
7d6d273
refactor: guest-id 헤더 guest-token으로 변경
wlsh44 Feb 28, 2025
3977fa9
refactor: 게시글 관련 수정
wlsh44 Feb 28, 2025
7910fdb
fix: webp 이미지 업로드 추가 (리사이즈 제외)
wlsh44 Feb 28, 2025
97eece9
Merge pull request #70 from SWYP-team-2th/fix/image-extension
wlsh44 Feb 28, 2025
0c2e408
chore: 최대 파일 업로드 사이즈 적용 및 webp 확장자 삭제
YuuuuuuYu Mar 1, 2025
bd899ba
chore: 최대 파일 업로드 문법 수정
YuuuuuuYu Mar 1, 2025
cca98f1
test: 최대 파일 사이즈 적용
YuuuuuuYu Mar 1, 2025
5223797
Merge pull request #71 from SWYP-team-2th/test/max-file-size
YuuuuuuYu Mar 1, 2025
752cb96
fix: 댓글 조회 순서 오름차순으로 수정
YuuuuuuYu Mar 1, 2025
7bf2d41
test: 댓글 조회 테스트 수정
YuuuuuuYu Mar 1, 2025
8681257
chore: prod cd 추가
wlsh44 Mar 2, 2025
b3aad53
chore: prod 설정 파일 갱신
wlsh44 Mar 2, 2025
4e33ab7
Merge pull request #72 from SWYP-team-2th/fix/comment-ascending
YuuuuuuYu Mar 2, 2025
6b84c8a
Merge pull request #73 from SWYP-team-2th/chore/prod
wlsh44 Mar 2, 2025
e908f64
Merge remote-tracking branch 'origin/main' into develop
wlsh44 Mar 2, 2025
b9f5ca5
chore: gradle 수정
wlsh44 Mar 2, 2025
733796b
feat: 로그아웃 기능 추가
wlsh44 Mar 2, 2025
2dd28b7
test: 로그아웃 테스트 코드 추가
wlsh44 Mar 2, 2025
86c7eca
feat: access token 있어야 로그아웃 가능하게 수정
wlsh44 Mar 2, 2025
6a42c82
fix: 게스트 토큰 빈 값 들어올 때 예외처리 추가
wlsh44 Mar 2, 2025
58bab13
docs: 로그아웃 docs 추가
wlsh44 Mar 2, 2025
1a3e907
refactor: 내가 작성/투표한 -> 유저가 작성/투표한 api로 수정
wlsh44 Mar 2, 2025
f238088
Merge pull request #75 from SWYP-team-2th/feature/logout
wlsh44 Mar 2, 2025
8372a6f
refactor: 이미지 이름 공백 제거
wlsh44 Mar 2, 2025
5a9569f
docs: api 이름 수정
wlsh44 Mar 2, 2025
71df662
chore: 힙 메모리 크기 적용
YuuuuuuYu Mar 2, 2025
3e7b829
fix: 테스트 꺠지는 부분 수정
wlsh44 Mar 2, 2025
e1d7408
Merge pull request #76 from SWYP-team-2th/refactor/name-generation
wlsh44 Mar 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ jobs:
script_stop: true
script: |
sudo fuser -k -n tcp 8080 || true
nohup java -jar -Dspring.profiles.active=dev photopic-dev.jar > ./output.log 2>&1 &
nohup java -Xms256m -Xmx742m -jar -Dspring.profiles.active=dev photopic-dev.jar > ./output.log 2>&1 &
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ out/

### VS Code ###
.vscode/

.DS_Store

application*.yml
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ dependencies {
// image
implementation 'software.amazon.awssdk:s3:2.30.18'
implementation 'org.imgscalr:imgscalr-lib:4.2'
implementation 'com.sksamuel.scrimage:scrimage-core:4.3.0'
implementation 'com.sksamuel.scrimage:scrimage-webp:4.3.0'

// gson
implementation 'com.google.code.gson:gson:2.8.6'

// base64
implementation 'io.seruco.encoding:base62:0.1.3'

compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'
Expand Down
2 changes: 1 addition & 1 deletion server-config
22 changes: 22 additions & 0 deletions src/docs/asciidoc/auth.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[[인증-API]]
== 인증 API

[[카카오-로그인]]
=== `POST` 카카오 로그인

operation::auth-controller-test/kakao-o-auth-sign-in[snippets='http-request,curl-request,request-fields,http-response,response-cookies,response-fields']

[[토큰-재발급]]
=== `POST` 토큰 재발급

operation::auth-controller-test/reissue[snippets='http-request,curl-request,request-cookies,http-response,response-cookies,response-fields']

[[게스트-토큰-발급]]
=== `POST` 게스트 토큰 발급

operation::auth-controller-test/guest-token[snippets='http-request,curl-request,http-response,response-fields']

[[로그아웃]]
=== `POST` 로그아웃

operation::auth-controller-test/sign-out[snippets='http-request,curl-request,request-cookies,request-headers,http-response,response-cookies']
17 changes: 17 additions & 0 deletions src/docs/asciidoc/comments.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[[댓글-API]]
== 댓글 API

[[댓글-생성]]
=== `POST` 댓글 생성

operation::comment-controller-test/create-comment[snippets='http-request,curl-request,path-parameters,request-headers,request-fields,http-response']

[[댓글-조회]]
=== `GET` 댓글 조회

operation::comment-controller-test/find-comments[snippets='http-request,curl-request,path-parameters,http-response,response-fields']

[[댓글-삭제]]
=== 댓글 삭제 (미구현)

operation::comment-controller-test/delete-comment[snippets='http-request,curl-request,path-parameters,request-headers,http-response']
7 changes: 7 additions & 0 deletions src/docs/asciidoc/images.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[[이미지-API]]
== 이미지 API

[[이미지-업로드]]
=== `POST` 이미지 업로드

operation::image-controller-test/create-image-file[snippets='http-request,curl-request,request-headers,request-parts,http-response,response-fields']
111 changes: 111 additions & 0 deletions src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
= API Docs
api문서
:doctype: book
:icons: font
:source-highlighter: highlightjs
:toc: left
:toclevels: 2
:sectlinks:

[[overview]]
== 개요

```
뽀또픽 API 문서입니다.
잘못되었거나 추가 및 수정되어야 할 내용이 있으면 언제든지 연락주세요.
```

[[상태코드]]
=== 상태 코드

```
HTTP 상태 코드 본 REST API에서 사용하는 HTTP 상태 코드는 가능한한 표준 HTTP와 REST 규약을 따릅니다.
```

|===

| 상태 코드 | 용례
| `200 OK`| 요청을 성공적으로 처리함
| `400 Bad Request`| 잘못된 요청을 보낸 경우. 응답 본문에 더 오류에 대한 정보가 담겨있음
| `401 Unauthorization`| 인증에 실패한 경우. 응답 본문에 더 오류에 대한 정보가 담겨있음
| `404 Not Found`| 요청한 리소스가 없음.
| `500 Internal Server Error`| 서버 내부 오류가 발생한 경우.
| `503 Service Unavailable`| 서버가 요청을 처리할 준비가 되지 않은 경우.

|===

[[에러]]
=== 에러

```
오류 에러 응답이 발생했을 때 (상태 코드 >= 400), 본문에 해당 문제를 기술한 JSON 객체가 담겨있음
```

```HTTP
HTTP/1.1 200 OK
content-type: application/json

{
"errorCode": "에러 코드"
}
```

[[인증]]
=== 인증

```
인증 토큰은 다음과 같은 형식으로 전달됨
```

```HTTP
POST /posts HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer accessToken
```

#### 테스트용 개발 토큰

```
user1
eyJhbGciOiJIUzI1NiJ9.eyJpZCI6IjEiLCJpYXQiOjE3NDAyOTQyMzEsImlzcyI6InN3eXA4dGVhbTIiLCJleHAiOjMzMjc2Mjk0MjMxfQ.gqA245tRiBQB9owKRWIpX1we1T362R-xDTt4YT9AhRY

user2
eyJhbGciOiJIUzI1NiJ9.eyJpZCI6IjIiLCJpYXQiOjE3NDA0NDM0ODIsImlzcyI6InN3eXA4dGVhbTIiLCJleHAiOjMzMjc2NDQzNDgyfQ.2sTlCtSHb4eGzhlL6WlRT6xvJLtvipnHp6EAmC4j1UQ
```

[[인증-예외]]
=== 인증 예외

```
인증 토큰관련 예외가 발생하면 다음과 같은 에러 코드와 함께 401 상태 코드를 응답함
```

|===

| 에러 코드 | 용례
|`EXPIRED_TOKEN`| 토큰이 만료되었을 경우
|`INVALID_TOKEN`| 잘못된 형식의 토큰인 경우
|`INVALID_AUTH_HEADER`| Authorization 헤더가 존재하지 않거나 Bearer 형식이 아닌 경우
|===

예시

```HTTP
HTTP/1.1 401 Unauthorized

{
"errorCode": "EXPIRED_TOKEN"
}
```

include::auth.adoc[]

include::users.adoc[]

include::images.adoc[]

include::posts.adoc[]

include::votes.adoc[]

include::comments.adoc[]
45 changes: 45 additions & 0 deletions src/docs/asciidoc/posts.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[[게시글-API]]
== 게시글 API

[[게시글-작성]]
=== `POST` 게시글 작성

operation::post-controller-test/create-post[snippets='http-request,curl-request,request-headers,request-fields,http-response']

[[게시글-상세-조회]]
=== `GET` 게시글 상세 조회

operation::post-controller-test/find-post[snippets='http-request,curl-request,path-parameters,http-response,response-fields']

[[개사굴-공유-url-조회]]
=== `GET` 게시글 공유 url 조회

operation::post-controller-test/find-post_share-url[snippets='http-request,curl-request,path-parameters,http-response,response-fields']

[[게시글-목록-조회]]

[[사진-투표-현황-조회]]
=== `GET` 사진 투표 현황 조회

operation::post-controller-test/find-vote-status[snippets='http-request,curl-request,request-headers,path-parameters,http-response,response-fields']


[[유저가-작성한-게시글-조회]]
=== `GET` 유저가 작성한 게시글 조회

operation::post-controller-test/find-my-post[snippets='http-request,curl-request,query-parameters,request-headers,http-response,response-fields']

[[유저가-참여한-게시글-조회]]
=== `GET` 유저가 참여한 게시글 조회

operation::post-controller-test/find-voted-post[snippets='http-request,curl-request,query-parameters,request-headers,http-response,response-fields']

[[게시글-투표-마감]]
=== `POST` 게시글 투표 마감

operation::post-controller-test/close-post[snippets='http-request,curl-request,path-parameters,request-headers,http-response']

[[게시글-삭제]]
=== `DELETE` 게시글 삭제

operation::post-controller-test/delete-post[snippets='http-request,curl-request,path-parameters,request-headers,http-response']
12 changes: 12 additions & 0 deletions src/docs/asciidoc/users.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[[유저-API]]
== 유저 API

[[유저-정보-조회]]
=== `GET` 유저 정보 조회

operation::user-controller-test/find-user-info[snippets='http-request,curl-request,path-parameters,http-response,response-fields']

[[본인-정보-조회]]
=== `GET` 본인 정보 조회

operation::user-controller-test/find-me[snippets='http-request,curl-request,request-headers,http-response,response-fields']
22 changes: 22 additions & 0 deletions src/docs/asciidoc/votes.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[[투표-API]]
== 투표 API

[[투표]]
=== `POST` 투표

operation::vote-controller-test/vote[snippets='http-request,curl-request,request-headers,request-fields,http-response']

[[게스트-투표]]
=== `POST` 게스트 투표

operation::vote-controller-test/guest-vote[snippets='http-request,curl-request,request-headers,request-fields,http-response']

[[투표-변경]]
=== 투표 변경 (투표 API로 통일)

// operation::vote-controller-test/change-vote[snippets='http-request,curl-request,request-headers,request-fields,http-response']

[[게스트-투표-변경]]
=== 게스트 투표 변경 (미구현, 게스트 투표 API로 통일)

// operation::vote-controller-test/guest-change-vote[snippets='http-request,curl-request,request-headers,request-fields,http-response']
68 changes: 68 additions & 0 deletions src/main/java/com/swyp8team2/auth/application/AuthService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
package com.swyp8team2.auth.application;

import com.swyp8team2.auth.application.jwt.JwtService;
import com.swyp8team2.auth.application.oauth.OAuthService;
import com.swyp8team2.auth.application.oauth.dto.OAuthUserInfo;
import com.swyp8team2.auth.domain.Provider;
import com.swyp8team2.auth.domain.SocialAccount;
import com.swyp8team2.auth.domain.SocialAccountRepository;
import com.swyp8team2.auth.presentation.dto.TokenResponse;
import com.swyp8team2.common.annotation.GuestTokenCryptoService;
import com.swyp8team2.crypto.application.CryptoService;
import com.swyp8team2.user.application.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class AuthService {

private final JwtService jwtService;
private final OAuthService oAuthService;
private final SocialAccountRepository socialAccountRepository;
private final UserService userService;
private final CryptoService cryptoService;

public AuthService(
JwtService jwtService,
OAuthService oAuthService,
SocialAccountRepository socialAccountRepository,
UserService userService,
@GuestTokenCryptoService CryptoService cryptoService) {
this.jwtService = jwtService;
this.oAuthService = oAuthService;
this.socialAccountRepository = socialAccountRepository;
this.userService = userService;
this.cryptoService = cryptoService;
}

@Transactional
public TokenResponse oauthSignIn(String code, String redirectUri) {
OAuthUserInfo oAuthUserInfo = oAuthService.getUserInfo(code, redirectUri);
SocialAccount socialAccount = socialAccountRepository.findBySocialIdAndProvider(
oAuthUserInfo.socialId(),
Provider.KAKAO
).orElseGet(() -> createUser(oAuthUserInfo));
return jwtService.createToken(socialAccount.getUserId());
}

private SocialAccount createUser(OAuthUserInfo oAuthUserInfo) {
Long userId = userService.createUser(oAuthUserInfo.nickname(), oAuthUserInfo.profileImageUrl());
return socialAccountRepository.save(SocialAccount.create(userId, oAuthUserInfo));
}

@Transactional
public TokenResponse reissue(String refreshToken) {
return jwtService.reissue(refreshToken);
}

@Transactional
public String createGuestToken() {
Long guestId = userService.createGuest();
return cryptoService.encrypt(String.valueOf(guestId));
}

@Transactional
public void signOut(Long userId, String refreshToken) {
jwtService.signOut(userId, refreshToken);
}
}
24 changes: 24 additions & 0 deletions src/main/java/com/swyp8team2/auth/application/jwt/JwtClaim.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.swyp8team2.auth.application.jwt;

public class JwtClaim {

public static final String ID = "id";

private final String id;

public JwtClaim(long id) {
this.id = String.valueOf(id);
}

public static JwtClaim from(long id) {
return new JwtClaim(id);
}

public Long idAsLong() {
return Long.parseLong(id);
}

public String id() {
return id;
}
}
Loading