Skip to content
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

Develop back core -> develop_back로 머지 #503

Merged
merged 256 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
256 commits
Select commit Hold shift + click to select a range
731a01b
refact : 비밀 캡슐 오픈 쿼리 수정
GaBaljaintheroom May 9, 2024
2521e9c
feat : memberId, FriendId 중복 검사 추가
GaBaljaintheroom May 11, 2024
1fbd27c
feat : 그룹 요청 수락 기능 구현
GaBaljaintheroom May 11, 2024
b8f5d73
feat : 그룹 캡슐 개봉 추가
seokho-1116 May 11, 2024
620df4e
test : 그룹 캡슐 개봉 테스트 추가
seokho-1116 May 12, 2024
95a54b2
Merge branch 'develop_back_core' into feat/group_capsule_open-B-core-…
seokho-1116 May 12, 2024
a289073
refact : 그룹 도메인 문서화 수정 및 코드 일치
GaBaljaintheroom May 12, 2024
d68800b
test : 그룹 생성 및 초대 단위 테스트 작성
GaBaljaintheroom May 13, 2024
da3cb0e
feat : 그룹 초대 거부 기능 구현
GaBaljaintheroom May 9, 2024
dde3704
refact : 친구 초대 거절 쿼리 수정
GaBaljaintheroom May 9, 2024
8d86e12
refact : 비밀 캡슐 오픈 쿼리 수정
GaBaljaintheroom May 9, 2024
babcf85
feat : memberId, FriendId 중복 검사 추가
GaBaljaintheroom May 11, 2024
8447394
Merge remote-tracking branch 'origin/feat/group_reject_B-#408' into f…
GaBaljaintheroom May 13, 2024
9971076
test : 그룹 초대 거부 테스트
GaBaljaintheroom May 13, 2024
2bd870c
feat : 그룹 요청 수락 기능 구현
GaBaljaintheroom May 11, 2024
38be188
refact : 그룹 도메인 문서화 수정 및 코드 일치
GaBaljaintheroom May 12, 2024
60ea79a
Merge remote-tracking branch 'origin/feat/group_accept_B-#414' into f…
GaBaljaintheroom May 13, 2024
02a1ff0
test : 그룹 초대 테스트 작성
GaBaljaintheroom May 13, 2024
c3f7609
refact : 그룹 초대에 그룹 id 추가
GaBaljaintheroom May 13, 2024
bfeeacb
Merge branch 'develop_back_core' into feat/group_accept_B-#414
GaBaljaintheroom May 14, 2024
1ec519a
Merge branch 'develop_back_core' into feat/group_accept_B-#414
GaBaljaintheroom May 14, 2024
ebe786a
Merge pull request #422 from tukcomCD2024/feat/group_accept_B-#414
GaBaljaintheroom May 14, 2024
6f210f5
feat : 그룹 삭제 기능 추가
seokho-1116 May 14, 2024
6a9ad67
test : 그룹 삭제 테스트 추가
seokho-1116 May 14, 2024
46613bc
docs : 문서화 순서 개선
seokho-1116 May 14, 2024
1837e7a
fix : cascade 삭제
seokho-1116 May 14, 2024
81823ca
fix : lazy 추가, @Modifying 옵션 변경
seokho-1116 May 14, 2024
f4c9c1c
Merge branch 'develop_back_core' into feat/group_capsule_open-B-core-…
seokho-1116 May 14, 2024
f403e64
fix : 서비스 로직 수정
seokho-1116 May 15, 2024
25d09ce
fix : read/write, group/group_member 분리
seokho-1116 May 15, 2024
8e0155f
fix : 테스트 수정
seokho-1116 May 15, 2024
0b35efd
feat : 그룹 탈퇴 기능 추가
seokho-1116 May 15, 2024
a559d64
feat : 테스트 추가
seokho-1116 May 15, 2024
6f59f7d
feat : 그룹원 추방 기능 추가
seokho-1116 May 15, 2024
6e75bc9
test : 테스트 추가
seokho-1116 May 15, 2024
d2170a6
feat : 그룹 업데이트 기능 추가
seokho-1116 May 15, 2024
1963548
feat : 테스트 추가
seokho-1116 May 15, 2024
7e5c408
feat : url 변경
seokho-1116 May 15, 2024
fa2ada0
fix : 메서드명 수정
seokho-1116 May 15, 2024
b07c0ca
fix : 에러 코드 및 불필요한 예외 삭제
seokho-1116 May 15, 2024
17d1462
test : 테스트 픽스처로 메서드 이동
seokho-1116 May 15, 2024
028136d
Merge pull request #415 from tukcomCD2024/feat/group_capsule_open-B-c…
seokho-1116 May 15, 2024
d87d0c4
fix : final 추가, group_member -> member_group, 픽스처로 분리
seokho-1116 May 15, 2024
03e7ef2
Merge branch 'develop_back_core' into ARCH-164-B-feat/group_update_v3
seokho-1116 May 15, 2024
6b07b17
Merge pull request #439 from tukcomCD2024/ARCH-164-B-feat/group_updat…
seokho-1116 May 16, 2024
501fde8
fix : swagger api 수정
seokho-1116 May 16, 2024
bf8c7ac
refact : 그룹 초대 인원을 30명으로 제한
GaBaljaintheroom May 20, 2024
ed7d945
fix : friend 도메인 패키지 수정
GaBaljaintheroom May 20, 2024
37f4bc4
feat : 그룹 초대 전 친구 조회 기능 구현
GaBaljaintheroom May 20, 2024
47c13d3
refact : 그룹 생성 후 초대를 벌크로 변경
GaBaljaintheroom May 20, 2024
264e144
test : 그룹 최대 초대 인원수 제한 테스트
GaBaljaintheroom May 21, 2024
1493d84
refact : 그룹 추방 Owner 확인 기능 수정
GaBaljaintheroom May 21, 2024
5a5541c
feat : 카테고리 타입 추가
seokho-1116 May 22, 2024
a8635f9
fix : 그룹 생성 오류 수정
seokho-1116 May 22, 2024
883a009
fix : 머지 충돌 해결
GaBaljaintheroom May 23, 2024
b65d3d8
fix : 머지 충돌 해결
GaBaljaintheroom May 23, 2024
2d1332d
fix : 머지 충돌 해결
GaBaljaintheroom May 23, 2024
541a458
feat : 캡슐 보물 타입 추가
seokho-1116 May 20, 2024
7d62a1f
test : 테스트 수정
seokho-1116 May 20, 2024
e7b7a1a
chore : .gitignore 수정
seokho-1116 May 25, 2024
6c945c7
refactor: 그룹 초대 예외 상황 문서화 추가
GaBaljaintheroom May 27, 2024
c81719c
refact: 내가 받은 그룹 초대 요약 조회 쿼리 수정
GaBaljaintheroom May 27, 2024
1e8378f
test : 그룹 초대 목록 쿼리 테스트 추가
GaBaljaintheroom May 27, 2024
2751de4
refact : 그룹 세부사항 조회 서비스 수정
GaBaljaintheroom May 27, 2024
6df2b5c
chore : 구글 자바 형식 적용
GaBaljaintheroom May 27, 2024
b5e8030
Merge pull request #449 from tukcomCD2024/fix/group_detail_B-#446
seokho-1116 May 27, 2024
fa5a01a
Merge branch 'develop_back_core' into feat/add_treasure-B-core-#441
seokho-1116 May 27, 2024
b236fb2
Merge pull request #451 from tukcomCD2024/feat/add_treasure-B-core-#441
GaBaljaintheroom May 27, 2024
8b3b09f
fix : 그룹 세부사항 쿼리 수정
GaBaljaintheroom May 28, 2024
5d10046
fix : 태그 검색 개선 및 수정
seokho-1116 May 29, 2024
7a767b0
test : 검색 태그 테스트 추가
seokho-1116 May 29, 2024
1824c1a
Merge branch 'develop_back_core' into feat/friend_tag-B-#452
seokho-1116 May 29, 2024
61b727f
refact : 그룹 상세 조회 쿼리 개선
seokho-1116 May 29, 2024
2669e08
test : 테스트 디렉토리 이동
seokho-1116 May 29, 2024
0d57236
test : 그룹 상세조회 쿼리 테스트 추가
seokho-1116 May 29, 2024
9870909
fix : flyway -> datasource script run
seokho-1116 May 29, 2024
c897ee1
fix : 영속 상태 flush & clear
seokho-1116 May 29, 2024
5bcc37f
fix : sql script -> TransactionTemplate 커밋 시도
seokho-1116 May 29, 2024
a907a97
fix : 변수명 수정
seokho-1116 May 29, 2024
f3f5f39
test : 기존 테스트 통합
seokho-1116 May 29, 2024
550cd0f
Merge pull request #454 from tukcomCD2024/feat/friend_tag-B-#452
GaBaljaintheroom May 29, 2024
1c8b937
test : 중복 테스트 삭제
seokho-1116 May 29, 2024
a8d9bf2
Merge branch 'develop_back_core' into performance/group_detail-B-#455
seokho-1116 May 29, 2024
3ef8116
Merge pull request #456 from tukcomCD2024/performance/group_detail-B-…
seokho-1116 May 29, 2024
de8eebd
feat : 그룹 목록 조회 응답 타입 수정
GaBaljaintheroom May 30, 2024
9f565e9
test : 그룹 목록 조회 테스트 수정
GaBaljaintheroom May 30, 2024
a1cbd65
refactor : 그룹 캡슐 생성 요청 필드 수정
GaBaljaintheroom May 30, 2024
13587b4
refactor : transactionTemplate 람다 수정
GaBaljaintheroom May 30, 2024
e243528
refactor : 그룹 초대 수락 레디스 분산 락 적용
GaBaljaintheroom May 30, 2024
728ca2d
test : 그룹 초대 수락 요청 필드, 테스트 수정
GaBaljaintheroom May 30, 2024
e3cb978
test : 레디스 동시성 분산락 테스트
GaBaljaintheroom May 30, 2024
cf174a4
feat : 그룹의 그룹원 정보 조회 기능 구현
GaBaljaintheroom May 31, 2024
2464e31
chore : 자바 코드 형식 적용
GaBaljaintheroom May 31, 2024
ef809e4
feat : 친구 요청 목록 조회 보낸거, 받은거로 분리
seokho-1116 Jun 1, 2024
b3a1a1e
test : 기존 API 테스트 수정 및 친구 보낸 목록 테스트 추가
seokho-1116 Jun 1, 2024
041fadd
fix : 쿼리 오류 및 테스트 오류 수정
seokho-1116 Jun 1, 2024
194d98e
feat : 기존 API 메서드명 변경 및 쿼리 수정, 그룹 초대 보낸 목록 API 추가
seokho-1116 Jun 1, 2024
aaad884
fix : 초대한 그룹원 목록 조회 스펙 변경, 패키지 이름 변경
seokho-1116 Jun 1, 2024
e0a3ee0
fix : 그룹 초대 보낸 시간으로 변경 & 쿼리 수정
seokho-1116 Jun 1, 2024
4f6a860
test : 기존 API, 그룹 목록 조회 테스트 추가
seokho-1116 Jun 1, 2024
ab92eb8
feat : 친구 초대 삭제 API 추가
seokho-1116 Jun 1, 2024
ee49032
feat : 친구 초대 삭제 기능 추가 및 기존 API 동시성, 상태 검증 관리
seokho-1116 Jun 2, 2024
0207f90
test : 테스트 추가
seokho-1116 Jun 2, 2024
03637d7
fix : 레포지토리 도메인 위치 변경
seokho-1116 Jun 2, 2024
4d90488
fix : 테스트 도메인 변경
seokho-1116 Jun 2, 2024
80f0db5
refactor : 그룹 목록 조회 쿼리 분리
GaBaljaintheroom Jun 2, 2024
c11969d
fix : 그룹원 정보 API 위치 수정
GaBaljaintheroom Jun 2, 2024
2c7119d
fix : 락 모드 변경
seokho-1116 Jun 2, 2024
9ecc5b6
refactor : 그룹 초대 인원 제약 쿼리 수정
GaBaljaintheroom Jun 2, 2024
f8763c7
refactor : 그룹 초대 수락 facade 적용
GaBaljaintheroom Jun 3, 2024
1aa32fb
refactor : 그룹 초대 인원 초과시 그룹 초대 요청 삭제 추가
GaBaljaintheroom Jun 3, 2024
01c0b9c
fix : loe -> lt로 수정
seokho-1116 Jun 3, 2024
e0d850e
fix : 테스트 충돌 해결
seokho-1116 Jun 3, 2024
6567182
fix : loe -> lt로 변경
seokho-1116 Jun 3, 2024
e3bac7f
fix : 테스트 충돌 해결
seokho-1116 Jun 3, 2024
7b0ec2d
Merge pull request #462 from tukcomCD2024/fix/group-B-#460
seokho-1116 Jun 3, 2024
9f1dd46
fix : 그룹장 preSignedUrl 삭제
GaBaljaintheroom Jun 4, 2024
ec350b4
fix : 그룹 초대 요청 전 치구 조회시 이미 요청 보낸 친구 제외
GaBaljaintheroom Jun 4, 2024
c0038d4
fix : 메서드 이름 변경 및 SliceUtil 분리
seokho-1116 Jun 4, 2024
86641df
Merge branch 'refs/heads/feat/friend_invite_list-B-#457' into feat/gr…
seokho-1116 Jun 4, 2024
603f155
fix : 단어 수정
seokho-1116 Jun 4, 2024
81a312c
Merge branch 'develop_back_core' into feat/friend_request_list-B-#457
seokho-1116 Jun 4, 2024
041cac8
fix : 락 제거
seokho-1116 Jun 4, 2024
f42c146
Merge pull request #464 from tukcomCD2024/feat/friend_request_list-B-…
seokho-1116 Jun 4, 2024
8258fc2
Merge branch 'refs/heads/develop_back_core' into feat/group_invite_li…
seokho-1116 Jun 4, 2024
69d0cf6
fix : 머지 충돌 해결
seokho-1116 Jun 4, 2024
0e81253
Merge branch 'refs/heads/feat/group_invite_list-B-#458' into feat/fri…
seokho-1116 Jun 4, 2024
981056a
fix : 머지 충돌 해결
seokho-1116 Jun 4, 2024
b9260be
fix : 테스트 충돌 해결
seokho-1116 Jun 4, 2024
a39dfc6
Merge pull request #465 from tukcomCD2024/feat/group_invite_list-B-#458
seokho-1116 Jun 4, 2024
9687423
Merge branch 'develop_back_core' into feat/friend_invite_delete-B-#457
seokho-1116 Jun 4, 2024
7d3476f
test : 그룹 초대 전 친구 목록 조회 테스트
GaBaljaintheroom Jun 4, 2024
f23cfe5
chore : 머지 충돌 해결
GaBaljaintheroom Jun 4, 2024
e7ff2ba
chore : 자바 구글 형식 적용
GaBaljaintheroom Jun 4, 2024
b607f09
fix : 멤버 profile 선언된 URL 적용 삭제
GaBaljaintheroom Jun 5, 2024
384c8d4
Merge branch 'develop_back_core' of https://github.com/tukcomCD2024/D…
GaBaljaintheroom Jun 5, 2024
29d672f
Merge branch 'develop_back_core' into feat/friend_invite_delete-B-#457
seokho-1116 Jun 5, 2024
db383c7
fix : 양방향 및 중복 요청 검증 수정
seokho-1116 Jun 5, 2024
67ab632
fix : persist 제거
seokho-1116 Jun 5, 2024
8596989
test : 테스트 케이스 추가
seokho-1116 Jun 5, 2024
241838e
Merge remote-tracking branch 'origin/feat/friend_invite_delete-B-#457…
seokho-1116 Jun 5, 2024
e3cc43d
fix : s3 presign 추가
seokho-1116 Jun 5, 2024
0683926
fix : 그룹 초대 목록 슬라이스로 변경
seokho-1116 Jun 5, 2024
22c18ea
fix : 그룹 초대 아이디 추가
seokho-1116 Jun 5, 2024
c0a3880
test : 슬라이스 검증 테스트 추가
seokho-1116 Jun 5, 2024
edf34ff
fix : 그룹 초대 아이디 추가
seokho-1116 Jun 6, 2024
68cc672
feat : 그룹 초대 조회, 삭제 쿼리 추가
seokho-1116 Jun 5, 2024
7d7e941
feat : 그룹 초대 삭제 서비스 추가
seokho-1116 Jun 6, 2024
11f50f7
feat : 그룹 초대 삭제 컨트롤러 추가
seokho-1116 Jun 6, 2024
1def8c2
test : 테스트 추가
seokho-1116 Jun 6, 2024
b19ab6e
fix : 그룹 초대 비교 오류 수정
seokho-1116 Jun 6, 2024
276cc8f
fix : 그룹 초대 조회 및 삭제 로직 수정
seokho-1116 Jun 6, 2024
e475fb0
fix : 메서드 컨벤션 일치
GaBaljaintheroom Jun 6, 2024
0051340
fix : 메서드 분리
GaBaljaintheroom Jun 6, 2024
6bfdb4e
feat : 그룹 캡슐 조회, 그룹 캡슐 개봉 목록 조회 쿼리 추가
seokho-1116 Jun 6, 2024
60e9bfc
Merge pull request #466 from tukcomCD2024/feat/friend_invite_delete-B…
seokho-1116 Jun 6, 2024
29ccb7d
fix : 그룹 캡슐 개봉 로직 수정
seokho-1116 Jun 6, 2024
06bf21a
test : 테스트 추가
seokho-1116 Jun 6, 2024
d45ac97
fix : presign url 위치 수정
seokho-1116 Jun 6, 2024
353cec5
chore : 머지 충돌 해결
GaBaljaintheroom Jun 6, 2024
887019c
Merge pull request #471 from tukcomCD2024/fix/group_invite_B-#469
GaBaljaintheroom Jun 6, 2024
971f0b3
Merge branch 'refs/heads/develop_back_core' into fix/group_invite_lis…
seokho-1116 Jun 6, 2024
0127f95
fix : 메서드 분리
seokho-1116 Jun 6, 2024
2c5355e
fix : 개봉일이 안된 캡슐 열지 못하도록 로직 수정 및 반환값 변경
seokho-1116 Jun 6, 2024
248e9d0
test : 테스트 수정 및 추가
seokho-1116 Jun 6, 2024
091815b
fix : 그룹 캡슐 개봉 로직 수정
seokho-1116 Jun 6, 2024
b0ec7ca
test : 테스트 수정
seokho-1116 Jun 6, 2024
f9839b4
feat : ZonedDateTimeSupplier 추가
seokho-1116 Jun 6, 2024
7e793f8
Merge pull request #474 from tukcomCD2024/feat/group_invite_delete-B-…
seokho-1116 Jun 7, 2024
eada8af
Merge pull request #475 from tukcomCD2024/fix/group_capsule_open-B-#470
seokho-1116 Jun 7, 2024
ab203f3
Merge pull request #477 from tukcomCD2024/fix/group_invite_list-B-#472
seokho-1116 Jun 7, 2024
3e1d5a5
fix : 패키지 구성 수정
GaBaljaintheroom Jun 7, 2024
129e82d
feat : 보물 캡슐 획득 성공
GaBaljaintheroom Jun 7, 2024
9ca75bf
refact : 공통 DTO 추출 및 기존 DTO 제거
seokho-1116 Jun 8, 2024
858e7c0
refact : secret 캡슐 공통 응답 DTO 변경
seokho-1116 Jun 8, 2024
5f264fe
refact : public 캡슐 공통 응답 DTO 변경
seokho-1116 Jun 8, 2024
ef9574e
refact : 친구 캡슐 슬라이스 유틸 적용
seokho-1116 Jun 8, 2024
3569221
refact : 비밀 캡슐 슬라이스 유틸 적용
seokho-1116 Jun 8, 2024
2e3d3a6
refact : 그룹 캡슐 슬라이스 유틸 적용
seokho-1116 Jun 8, 2024
a7ad5f1
refact : 그룹 캡슐 공통 응답 DTO 변경
seokho-1116 Jun 8, 2024
e418fcc
feat : 그룹 캡슐 목록 조회 컨트롤러 수정
seokho-1116 Jun 8, 2024
3241e46
feat : 그룹 캡슐 목록 조회 추가
seokho-1116 Jun 8, 2024
c3aaa3a
feat : 그룹 권한 검증 추가
seokho-1116 Jun 8, 2024
36f62c9
fix : 변수명 수정
seokho-1116 Jun 8, 2024
912f49a
fix : 테스트 오류 수정
seokho-1116 Jun 8, 2024
e09db1c
fix : 슬라이싱 쿼리 수정
seokho-1116 Jun 8, 2024
f13662a
test : 그룹 캡슐 목록 조회 테스트 추가
seokho-1116 Jun 8, 2024
c514fc4
fix : 그룹 캡슐 개봉 로직 수정
seokho-1116 Jun 9, 2024
82bf626
test : 테스트 수정
seokho-1116 Jun 9, 2024
6c31401
fix : 그룹 캡슐 개봉에 그룹 필드 추가
seokho-1116 Jun 9, 2024
109e727
fix : 그룹원들의 그룹 캡슐 개봉 상태 조회 api 추가
seokho-1116 Jun 9, 2024
0c6b1d7
fix : 테스트 오류 수정
seokho-1116 Jun 9, 2024
7265701
fix : 응답 객체 수정
seokho-1116 Jun 9, 2024
957654a
fix : api docs 수정
seokho-1116 Jun 9, 2024
bb93601
test : 테스트 추가
seokho-1116 Jun 9, 2024
889f189
Merge pull request #481 from tukcomCD2024/refact/common_dto-B-#479
seokho-1116 Jun 10, 2024
9a5602f
Merge pull request #482 from tukcomCD2024/feat/group_capsule_list-B-#476
seokho-1116 Jun 10, 2024
ef2a9a6
refact : pr 리뷰 후 수정
GaBaljaintheroom Jun 11, 2024
1be908e
refact : 캡슐 조회 로직 수정
GaBaljaintheroom Jun 11, 2024
569c852
refact : 자바 구글 형식 적용
GaBaljaintheroom Jun 11, 2024
e59351f
Merge branch 'develop_back_core' into feat/treasure_capsule-B-#478
GaBaljaintheroom Jun 11, 2024
c736b44
chore : 테스트 수정
GaBaljaintheroom Jun 11, 2024
a32fbb8
Merge branch 'feat/treasure_capsule-B-#478' of https://github.com/tuk…
GaBaljaintheroom Jun 11, 2024
8e15372
chore : 머지 충돌 해결
GaBaljaintheroom Jun 11, 2024
3a22e75
Merge branch 'develop_back_core' into feat/group_member_capsule_open_…
seokho-1116 Jun 11, 2024
ed7fd18
Merge pull request #485 from tukcomCD2024/feat/group_member_capsule_o…
seokho-1116 Jun 11, 2024
a517985
Merge branch 'develop_back_core' into fix/group_capsule_open-B-#483
seokho-1116 Jun 11, 2024
e5680e4
Merge pull request #486 from tukcomCD2024/fix/group_capsule_open-B-#483
seokho-1116 Jun 11, 2024
da47c77
Merge branch 'develop_back_core' into feat/treasure_capsule-B-#478
seokho-1116 Jun 11, 2024
71c3635
Merge branch 'refs/heads/develop_back_core' into refact/common_dto-B-…
seokho-1116 Jun 11, 2024
c8944f8
fix : 머지 충돌 해결
seokho-1116 Jun 11, 2024
b60d23f
fix : 변수명 수정
GaBaljaintheroom Jun 11, 2024
58939c2
Merge branch 'feat/treasure_capsule-B-#478' of https://github.com/tuk…
GaBaljaintheroom Jun 11, 2024
0a255ee
Merge pull request #487 from tukcomCD2024/feat/treasure_capsule-B-#478
seokho-1116 Jun 11, 2024
c5e4f9d
fix : import 오류 수정
seokho-1116 Jun 11, 2024
752cbd3
Merge pull request #489 from tukcomCD2024/refact/common_dto-B-#479
GaBaljaintheroom Jun 12, 2024
6daf86c
fix : 그룹 캡슐 요약 조회 수정
seokho-1116 Jun 12, 2024
097ad6b
test : 테스트 수정
seokho-1116 Jun 12, 2024
8d5aa2e
fix : 그룹 캡슐 요약 조회 수정
seokho-1116 Jun 13, 2024
aeb7462
feat : 그룹 캡슐 요약 조회 로직 수정
seokho-1116 Jun 14, 2024
5fb893a
test : 테스트 추가 및 수정
seokho-1116 Jun 14, 2024
cab1fc8
fix : 응답 필드 수정
seokho-1116 Jun 14, 2024
8b5f85d
test : 테스트 추가 및 수정
seokho-1116 Jun 14, 2024
a9f3c6f
refact : 비밀 캡슐 오픈 응답 값 수정
GaBaljaintheroom Jun 14, 2024
adedd1a
feat : 보물 캡슐 요약 조회 기능 구현
GaBaljaintheroom Jun 14, 2024
551e778
refact : 보물 캡슐 개봉 응답 흐름 수정
GaBaljaintheroom Jun 14, 2024
27edf91
refact : 보물 캡슐 요약 조회 API 명세화 추가
GaBaljaintheroom Jun 14, 2024
bc7a429
fix : 수정 권한, 삭제 권한으로 수정
seokho-1116 Jun 15, 2024
e33d2fd
test : 테스트 추가 및 수정
seokho-1116 Jun 15, 2024
72e25dd
refact : PR 리뷰 후 수정
GaBaljaintheroom Jun 16, 2024
84f03eb
Merge pull request #491 from tukcomCD2024/fix/group_capsule-B-#490
GaBaljaintheroom Jun 16, 2024
f3d226e
Merge pull request #493 from tukcomCD2024/feat/treasure_summary_B-#492
GaBaljaintheroom Jun 16, 2024
0146df3
fix : 그룹 요약 조회 그룹 아이디 제거
seokho-1116 Jun 17, 2024
06eeff4
fix : 그룹 캡슐에 대한 그룹원 목록 조회 수정
seokho-1116 Jun 17, 2024
1521f30
Merge branch 'develop_back_core' into fix/group_capsule-B-#495
seokho-1116 Jun 17, 2024
33ddee3
Merge branch 'fix/group_capsule-B-#495' into fix/group_capsule_open-B…
seokho-1116 Jun 17, 2024
91acb7c
Merge pull request #498 from tukcomCD2024/fix/group_capsule_open-B-#496
seokho-1116 Jun 17, 2024
af72aa1
fix : import 오류 수정
seokho-1116 Jun 17, 2024
05805be
Merge pull request #497 from tukcomCD2024/fix/group_capsule-B-#495
seokho-1116 Jun 17, 2024
97e179f
refact : 그룹 초대 알림 매개변수 순서 수정
GaBaljaintheroom Jun 19, 2024
05f0890
refact : presigned 변환 삭제
GaBaljaintheroom Jun 19, 2024
0d49e93
fix : 사용자가 속한 그룹 캡슐 조회하도록 수정
seokho-1116 Jun 19, 2024
a642f3d
Merge branch 'develop_back_core' into fix/group_capsule-B-#501
seokho-1116 Jun 19, 2024
8d23835
Merge pull request #502 from tukcomCD2024/fix/group_capsule-B-#501
seokho-1116 Jun 19, 2024
b5f94b6
refact : 캡슐 스킨 저장 수정
GaBaljaintheroom Jun 19, 2024
df94416
Merge branch 'develop_back_core' of https://github.com/tukcomCD2024/D…
GaBaljaintheroom Jun 19, 2024
c92e952
fix : 그룹 캡슐 조회 수정
seokho-1116 Jun 19, 2024
277bbbb
Merge remote-tracking branch 'origin/develop_back_core' into develop_…
seokho-1116 Jun 19, 2024
5cee5e3
refact : 그룹 캡슐 오픈 쿼리 수정
GaBaljaintheroom Jun 19, 2024
d56cdeb
Merge branch 'develop_back_core' of https://github.com/tukcomCD2024/D…
GaBaljaintheroom Jun 19, 2024
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.idea
.idea

backend/data
5 changes: 2 additions & 3 deletions backend/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ dependencies {
//redis
implementation 'org.springframework.data:spring-data-redis'
implementation 'io.lettuce:lettuce-core:6.3.0.RELEASE'
implementation 'org.redisson:redisson-spring-boot-starter:3.30.0'

//RabbitMQ
implementation 'org.springframework.boot:spring-boot-starter-amqp'
Expand All @@ -74,9 +75,6 @@ dependencies {
//aop
implementation 'org.springframework.boot:spring-boot-starter-aop'

//jnanoid
implementation 'com.aventrix.jnanoid:jnanoid:2.0.0'

compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.mysql:mysql-connector-j'
annotationProcessor 'org.projectlombok:lombok'
Expand All @@ -88,6 +86,7 @@ dependencies {
testImplementation 'org.testcontainers:testcontainers:1.19.1'
testImplementation 'org.testcontainers:junit-jupiter:1.19.1'
testImplementation 'org.testcontainers:mysql:1.19.1'
testImplementation 'com.redis:testcontainers-redis:2.2.2'
}

tasks.named('test') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import site.timecapsulearchive.core.domain.auth.data.response.TokenResponse;
Expand All @@ -20,6 +21,7 @@
import site.timecapsulearchive.core.infra.sms.data.response.SmsApiResponse;
import site.timecapsulearchive.core.infra.sms.manager.SmsApiManager;

@Slf4j
@Service
@Transactional
@RequiredArgsConstructor
Expand Down Expand Up @@ -109,6 +111,14 @@ private Long updateToVerifiedMember(final Long memberId, final byte[] plain) {

memberTemporaryRepository.delete(memberTemporary);

boolean isDuplicateTag = memberRepository.checkTagDuplication(memberTemporary.getTag());
if (isDuplicateTag) {
log.warn("member tag duplicate - email:{}, tag:{}", memberTemporary.getEmail(),
memberTemporary.getTag());
memberTemporary.updateTagLowerCaseSocialType();
log.warn("member tag update - tag: {}", memberTemporary.getTag());
}

final Member verifiedMember = memberTemporary.toMember(hashEncryptionManager.encrypt(plain),
aesEncryptionManager.encryptWithPrefixIV(plain));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package site.timecapsulearchive.core.domain.capsule.group_capsule.data.dto;
package site.timecapsulearchive.core.domain.capsule.data.dto;

import java.time.ZonedDateTime;
import java.util.function.Function;
import site.timecapsulearchive.core.domain.capsule.data.response.CapsuleBasicInfoResponse;
import site.timecapsulearchive.core.domain.capsule.entity.CapsuleType;
import site.timecapsulearchive.core.domain.capsule.group_capsule.data.response.MyGroupCapsuleResponse;

public record MyGroupCapsuleDto(
public record CapsuleBasicInfoDto(
Long capsuleId,
String skinUrl,
ZonedDateTime dueDate,
Expand All @@ -15,9 +15,9 @@ public record MyGroupCapsuleDto(
CapsuleType capsuleType
) {

public MyGroupCapsuleResponse toResponse(
public CapsuleBasicInfoResponse toResponse(
final Function<String, String> singlePreSignUrlFunction) {
return MyGroupCapsuleResponse.builder()
return CapsuleBasicInfoResponse.builder()
.capsuleId(capsuleId)
.skinUrl(singlePreSignUrlFunction.apply(skinUrl))
.dueDate(dueDate)
Expand All @@ -27,4 +27,4 @@ public MyGroupCapsuleResponse toResponse(
.capsuleType(capsuleType)
.build();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.capsule.group_capsule.data.response;
package site.timecapsulearchive.core.domain.capsule.data.response;

import io.swagger.v3.oas.annotations.media.Schema;
import java.time.ZonedDateTime;
Expand All @@ -7,8 +7,8 @@
import site.timecapsulearchive.core.global.common.response.ResponseMappingConstant;

@Builder
@Schema(description = "사용자가 만든 그룹 캡슐")
public record MyGroupCapsuleResponse(
@Schema(description = "캡슐 기본 정보")
public record CapsuleBasicInfoResponse(

@Schema(description = "캡슐 아이디")
Long capsuleId,
Expand All @@ -32,7 +32,7 @@ public record MyGroupCapsuleResponse(
CapsuleType capsuleType
) {

public MyGroupCapsuleResponse {
public CapsuleBasicInfoResponse {
if (dueDate != null) {
dueDate = dueDate.withZoneSameInstant(ResponseMappingConstant.ZONE_ID);
}
Expand All @@ -41,4 +41,4 @@ public record MyGroupCapsuleResponse(
createdAt = createdAt.withZoneSameInstant(ResponseMappingConstant.ZONE_ID);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@
import jakarta.persistence.OneToMany;
import jakarta.persistence.Table;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.locationtech.jts.geom.Point;
import site.timecapsulearchive.core.domain.capsule.exception.GroupCapsuleOpenNotFoundException;
import site.timecapsulearchive.core.domain.capsuleskin.entity.CapsuleSkin;
import site.timecapsulearchive.core.domain.group.entity.Group;
import site.timecapsulearchive.core.domain.member.entity.Member;
import site.timecapsulearchive.core.global.common.supplier.ZonedDateTimeSupplier;
import site.timecapsulearchive.core.global.entity.BaseEntity;

@Entity
Expand Down Expand Up @@ -60,13 +63,13 @@ public class Capsule extends BaseEntity {
private Address address;

@OneToMany(mappedBy = "capsule", cascade = CascadeType.ALL, orphanRemoval = true)
private List<Image> images;
private final List<Image> images = new ArrayList<>();

@OneToMany(mappedBy = "capsule", cascade = CascadeType.ALL, orphanRemoval = true)
private List<Video> videos;
private final List<Video> videos = new ArrayList<>();

@OneToMany(mappedBy = "capsule", cascade = CascadeType.ALL, orphanRemoval = true)
private List<GroupCapsuleOpen> groupCapsuleOpens;
private final List<GroupCapsuleOpen> groupCapsuleOpens = new ArrayList<>();

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "group_id")
Expand Down Expand Up @@ -109,6 +112,31 @@ public boolean isNotCapsuleOpened() {
return false;
}

return dueDate.isAfter(ZonedDateTime.now());
return dueDate.isAfter(ZonedDateTimeSupplier.utc().get());
}

public void open() {
this.isOpened = Boolean.TRUE;
}

public boolean isNotTimeCapsule() {
return dueDate == null;
}

public boolean isAllGroupMemberOpened(Long memberId, Long capsuleId) {
if (groupCapsuleOpens.isEmpty()) {
throw new GroupCapsuleOpenNotFoundException();
}

boolean isCapsuleOpened = true;
for (GroupCapsuleOpen groupCapsuleOpen : groupCapsuleOpens) {
if (groupCapsuleOpen.matched(capsuleId, memberId)) {
groupCapsuleOpen.open();
}

isCapsuleOpened = isCapsuleOpened && groupCapsuleOpen.getIsOpened();
}

return isCapsuleOpened;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ public enum CapsuleType {
SECRET,
PUBLIC,
GROUP,
TREASURE,
ALL
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import java.util.Objects;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import site.timecapsulearchive.core.domain.group.entity.Group;
import site.timecapsulearchive.core.domain.member.entity.Member;
import site.timecapsulearchive.core.global.entity.BaseEntity;

Expand All @@ -39,10 +38,15 @@ public class GroupCapsuleOpen extends BaseEntity {
@JoinColumn(name = "member_id", nullable = false)
private Member member;

@Builder
private GroupCapsuleOpen(Boolean isOpened, Capsule capsule, Member member) {
this.isOpened = Objects.requireNonNull(isOpened);
this.capsule = Objects.requireNonNull(capsule);
this.member = Objects.requireNonNull(member);
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "group_id", nullable = false)
private Group group;

public void open() {
this.isOpened = Boolean.TRUE;
}

public boolean matched(Long capsuleId, Long memberId) {
return capsule.getId().equals(capsuleId) && member.getId().equals(memberId);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package site.timecapsulearchive.core.domain.capsule.exception;

import site.timecapsulearchive.core.global.error.ErrorCode;
import site.timecapsulearchive.core.global.error.exception.BusinessException;

public class GroupCapsuleOpenNotFoundException extends BusinessException {

public GroupCapsuleOpenNotFoundException() {
super(ErrorCode.GROUP_CAPSULE_OPEN_NOT_FOUND_ERROR);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public record NearbyARCapsuleSummaryResponse(
@Schema(description = "캡슐 타입")
CapsuleType capsuleType
) {

public NearbyARCapsuleSummaryResponse {
if (dueDate != null) {
dueDate = dueDate.withZoneSameInstant(ResponseMappingConstant.ZONE_ID);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package site.timecapsulearchive.core.domain.capsule.generic_capsule.repository.capsule;

import java.util.List;
import java.util.Optional;
import org.locationtech.jts.geom.Polygon;
import site.timecapsulearchive.core.domain.capsule.entity.CapsuleType;
import site.timecapsulearchive.core.domain.capsule.generic_capsule.data.dto.NearbyARCapsuleSummaryDto;
import site.timecapsulearchive.core.domain.capsule.generic_capsule.data.dto.NearbyCapsuleSummaryDto;
import site.timecapsulearchive.core.domain.capsule.treasure_capsule.data.dto.TreasureCapsuleSummaryDto;

public interface CapsuleQueryRepository {

List<NearbyARCapsuleSummaryDto> findARCapsuleSummaryDtosByCurrentLocationAndCapsuleType(
final Long memberId,
final Polygon mbr,
final CapsuleType capsuleType
);

List<NearbyCapsuleSummaryDto> findCapsuleSummaryDtosByCurrentLocationAndCapsuleType(
final Long memberId,
final Polygon mbr,
final CapsuleType capsuleType
);

List<NearbyCapsuleSummaryDto> findFriendsCapsuleSummaryDtosByCurrentLocationAndCapsuleType(
final List<Long> friendIds,
final Polygon mbr
);

List<NearbyARCapsuleSummaryDto> findFriendsARCapsulesByCurrentLocation(
final List<Long> friendIds,
final Polygon mbr
);

Optional<TreasureCapsuleSummaryDto> findTreasureCapsuleSummary(final Long capsuleId);
}
Loading
Loading