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

✨ [Merge] 파티기능 포함된 dev 브랜치 merge #783

Merged
merged 121 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from 81 commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
bea0ad9
[Feature] table 초기화 flyway 작성 및 방 전체 조회 api (#666)
AreSain Mar 1, 2024
b6db965
[FEAT] 댓글 생성 api 추가 (#642)
yes-ee Mar 2, 2024
642bc53
[Feature] 참여했던 방 조회 API 및 방 생성 API (#667)
AreSain Mar 2, 2024
4c18b67
[Feature] 참여한 방 조회 API (#668)
AreSain Mar 3, 2024
eeef12f
[REFACTOR] 디버깅용 코드 제거 (#642)
yes-ee Mar 3, 2024
990bd03
Merge branch 'dev' into 642-feature-comment
yes-ee Mar 3, 2024
e9225ee
[REFACTOR] checkstyle 에러 수정 (#642)
yes-ee Mar 3, 2024
d2f2401
[Feature] 댓글 생성 api (#669)
yes-ee Mar 3, 2024
8609662
[Feature] 방 상세 조회 api (#671)
AreSain Mar 4, 2024
88afbb5
[FEAT] #657 recruit entity (#670)
wken5577 Mar 4, 2024
0d8fbfe
[FEAT] #672 auth module 분리 (#675)
wken5577 Mar 4, 2024
808391d
[FEAT] merge dev into recruit
wken5577 Mar 5, 2024
d57611c
640 방 나가기 api (#677)
ghyen Mar 5, 2024
e32ca78
✨ [Feature] AdminRoom show변경 API (#686)
JaBeast Mar 6, 2024
f7b0b3c
[FEATURE] 댓글 숨김 ADMIN API (#685)
yes-ee Mar 6, 2024
76650e3
✨ [Feature] 방 참여 api (#679)
AreSain Mar 6, 2024
7835d12
[FIX] startRoom API without 복면가왕 logic (#687)
ghyen Mar 6, 2024
a25c077
[FEAT] #688 api module add (#689)
wken5577 Mar 6, 2024
ee26464
[Refactoring] 겹치는 Exception 처리 및 주석 추가 및 로직 수정 (#690)
AreSain Mar 7, 2024
fff7401
[FEATURE] 카테고리 조회 API (#693)
yes-ee Mar 7, 2024
060f267
✨ [Feature] Admin 게시글 전체 조회 API (#694)
AreSain Mar 7, 2024
3ee3e0e
✨ [Feature] 탬플릿 목록 조회 API (#695)
JaBeast Mar 7, 2024
acba2df
✨ [Feature] 탬플릿 삭제 API (#696)
JaBeast Mar 7, 2024
21dacea
💚 [chore] codecov, jacoco 모듈에 맞게 변경 (#683)
middlefitting Mar 7, 2024
f3ccde2
[FIX] #701 Fix/log path dev (#702)
AYoungSn Mar 7, 2024
6afca0e
[FEAT] add 방 신고 API without redis logic (#706)
ghyen Mar 7, 2024
06d6316
[Feature] 카테고리 삭제 API 및 flyway v1.3 수정 (#697)
yes-ee Mar 8, 2024
388fc60
[FEAT] #558 my applications get (#691)
wken5577 Mar 8, 2024
c274e24
✨ [Feature] admin 방 전체 조회 api pagination기능 추가 (#699)
AreSain Mar 8, 2024
0900834
[Feature] 카테고리 추가 API (#705)
yes-ee Mar 8, 2024
bba06df
✨ [Feature] 탬플릿 추가 API (#700)
JaBeast Mar 9, 2024
1fd9930
[feature] 상세조회 복면가왕 API 추가 (#710)
AreSain Mar 9, 2024
9a70e4b
[Refactoring] 방 생성 이후 dto로 response 수정 (#714)
AreSain Mar 10, 2024
f566f83
[FEAT] 댓글 신고 API with 패널티 부여 로직 (#711)
ghyen Mar 11, 2024
b8a9392
✨ [Feature] 게임 매칭 큐 조회 API 개발 (#525)
Kimhan-nah Mar 11, 2024
377dab9
✨ [Feature] 탬플릿 수정 API (#715)
JaBeast Mar 11, 2024
512ea32
[feature] Admin 방 상세 조회 api 작성 (#717)
AreSain Mar 11, 2024
7a31d5d
#578 feature 모집중인 공고 목록 조회 api (#712)
AYoungSn Mar 12, 2024
f6597d4
[REFACT] #724 Jpa 설정 클래스 통합 (#725)
AYoungSn Mar 12, 2024
d37e96c
✨ [Feature] slack 초대 API (#730)
AreSain Mar 13, 2024
1b7d451
✨ [Feature] admin 댓글,방,노쇼 신고조회 api (#719)
JaBeast Mar 13, 2024
62d3052
✨ [Feature] 방 상태 변경 스케쥴러 (#722)
JaBeast Mar 13, 2024
f4d5fb3
[FEAT] 패널티 추가, 수정 API 및 패널티 부여 로직 수정 및 RoomService에서 패널티 유저 체크 로직 추가 …
ghyen Mar 14, 2024
c47f16d
[FEAT] #559 application detail get api (#737)
wken5577 Mar 18, 2024
fc3bd55
647 노쇼 신고 api (#723)
ghyen Mar 19, 2024
1e79c37
[FEATURE] 패널티 리스트 조회 ADMIN API 추가 (#733)
yes-ee Mar 19, 2024
234a5ac
#552 feature 공고 상세 조회 api (#738)
AYoungSn Mar 19, 2024
9b8bdba
[FEAT] #560 application res api (#741)
wken5577 Mar 19, 2024
d220f9d
726 refactoring jpa 쿼리 최적화 (#739)
AYoungSn Mar 20, 2024
d266b67
✨ [Feature] && [Refactoring] 테스트코드 작성 및 폴더 구조 변경 (#744)
AreSain Mar 20, 2024
53d2a0d
✨ [Feature] 댓글 테스트 코드 추가 (#743)
JaBeast Mar 20, 2024
15c33df
#555 feature 지원하기 api (#742)
AYoungSn Mar 20, 2024
49a78da
[FEAT] #556 feature 지원 취소 api (#746)
AYoungSn Mar 20, 2024
edb7ba0
[Refactoring] party 전체 파일 리팩토링 및 프론트 api 명세와 맞지 않는 부분 수정 (#747)
AreSain Mar 21, 2024
e8db691
[FEAT] #557 patch application api (#749)
wken5577 Mar 23, 2024
927a005
[FIX] fix merge conflict
wken5577 Mar 23, 2024
307954e
[FIX] compile
wken5577 Mar 23, 2024
1255f81
Recruit - User 기능 연동 테스트 위한 PR (#748)
wken5577 Mar 23, 2024
a61cb94
:memo: [Docs] 5기 README.md 업데이트 (#462)
Kimhan-nah Mar 25, 2024
f07723d
🧪 [Test] Admin 템플릿 추가, 제거, 수정 테스트코드 작성 (#756)
AreSain Mar 25, 2024
a482455
🧪 [Test] Admin 댓글, 방, 노쇼 신고 리스트 조회 테스트 코드 작성 (#758)
AreSain Mar 25, 2024
9fe55a7
🧪 [Test] Admin 카테고리 추가 및 제거 테스트 코드 작성 (#760)
AreSain Mar 25, 2024
a31080c
🧪 [Test] Admin 방 목록 조회 및 방 상세 조회 및 방 Status변경 테스트코드 작성 (#762)
AreSain Mar 25, 2024
61520af
🧪 [Test] Admin 댓글 Show 여부 변경 테스트코드 작성 (#764)
AreSain Mar 25, 2024
e3f3193
🧪 [Test] && 🐛 [Bug] 방 시작하기 및 참여하기에서 시작되는 부분 테스트 코드 작성 && 마감된 방 && Fin…
AreSain Mar 25, 2024
9181742
[test] 카테고리, 템플릿 조회 테스트 코드 추가 (#754)
JaBeast Mar 26, 2024
980f1f6
🧪 [Test] 패널티 관련 테스트 코드 작성 (#767)
JaBeast Mar 26, 2024
13480d0
🔨 [Refactoring] && 🧪 [Test] Party 테스트코드 리팩토링 및 중복처리를 위한 에러코드 수정에 따른 t…
AreSain Mar 26, 2024
61c6fa5
🐛 [Bug] 카테고리가 etc로 나오는 버그 && admin 템플릿 수정에서 최대인원 최소인원에 상관없이 저장되는 버그 (…
AreSain Mar 26, 2024
5f665e6
🔨 [Refactoring] Lazy fetch type 리펙토링 (#772)
JaBeast Mar 26, 2024
b72317a
🐛 [Bug] 카테고리가 ID순이 아닌 이름순으로 정렬되는 버그 수정 (#776)
AreSain Mar 27, 2024
7c2d9d0
🐛 [Bug] [Refactoring] 6기 Party 서비스 전체 리팩토링 중 찾은 버그들 수정 (#779)
AreSain Mar 27, 2024
082a793
[FIX] swagger config party
wken5577 Mar 27, 2024
eb93b2e
[FIX] check style config
wken5577 Mar 27, 2024
4c241b6
[FIX] update yml script
wken5577 Mar 27, 2024
01de9a9
[TEST] 신고 test 코드 작성 및 중복 신고 예외 처리 로직 수정 (#777)
ghyen Mar 27, 2024
4094d62
🔨 [Refactoring] 6기 Party 서비스 전체 리팩토링 (#782)
AreSain Mar 28, 2024
d2117ee
🐛 [Bug] party penalty 여러번 받은 유저는 영원히 사용할 수 없는 버그 수정 및 (패널티 수정) 버그 수정 …
AreSain Mar 28, 2024
6613d12
🐛 [Bug] 방 생성시 카테고리를 프론트에서 받지 못하는 버그 (#788)
AreSain Mar 28, 2024
45e83f3
[FEAT] recruit status change api (#781)
wken5577 Mar 29, 2024
e4be599
[Merge] recruit-dev <- dev merge (#794)
Kimhan-nah Mar 30, 2024
c4a596a
✨ [Feature] 결과 message 등록 api (#789)
middlefitting Mar 30, 2024
1a10bc1
✨ [Feature] 공고 생성 API (#786)
Kimhan-nah Mar 30, 2024
22748cc
✨ [Feature] 공고 전체 조회 API (#797)
Kimhan-nah Mar 30, 2024
18ba598
✨ [Feature] 결과 message 조회 api (#796)
middlefitting Mar 30, 2024
6c42a3d
🔨 [Refactoring + Feature] 패널티 확인 API 작성 및 패널티 정책 수정 #790 (#791)
AreSain Mar 30, 2024
40bc92d
✨ [Feature] 최종결과 등록 (#799)
middlefitting Apr 1, 2024
ecf52a1
✨ [Feature] 공고 삭제 API (#800)
Kimhan-nah Apr 1, 2024
99ff2b7
🧪 [Unit Test] usertextcolorcheckservice 테스트 코드 (#661)
middlefitting Apr 3, 2024
0e45a97
🧪 [Unit Test] CoinPolicyAdminService 단위 테스트 코드 (#735)
Newsujin Apr 3, 2024
01bec09
🧪 [Unit Test] Game unit test (#628)
SONGS4RI Apr 3, 2024
e74003a
[FIX] #806 auth 필요없는 객체 삭제, db검증로직 추가 (#807)
wken5577 Apr 4, 2024
c2dff0a
✨ [Feature] 서류 결과 등록 API (#805)
Kimhan-nah Apr 4, 2024
1653b90
[Feature] Recruit 관리자(ADMIN) API (#795)
Kimhan-nah Apr 5, 2024
344ac29
✨ [Feature] 알림 메세지 미리보기 API (#798)
AYoungSn Apr 5, 2024
bb9344a
✨ [Feature] 지원자 결과 목록 조회 api (#801)
middlefitting Apr 5, 2024
66fb0cf
✨ [Feature] 지원자 목록 확인 API (#804)
middlefitting Apr 5, 2024
c059f95
✨ [Feature] 공고 수정 API (#802)
Kimhan-nah Apr 5, 2024
39f1dfc
✨ [Feature] 공고 admin API (#808)
Kimhan-nah Apr 6, 2024
6b98567
:bug: [Fix] Build 에러
Kimhan-nah Apr 6, 2024
f92b56f
[FIX] security config
wken5577 Apr 6, 2024
b6ed333
[FIX] security conf rollback
wken5577 Apr 6, 2024
792bdb1
🐛 [Fix] 공고 admin API dto 수정 및 validation 추가 (#809)
Kimhan-nah Apr 6, 2024
c42fc17
[FIX] security conf rollback -> add userDetailsService
wken5577 Apr 6, 2024
e4795e9
[FIX] userdetails service delete
wken5577 Apr 6, 2024
a6ff2f3
[FIX] 지원결과 확인 api수정
wken5577 Apr 6, 2024
10c2c9f
[FIX] 내 지원서 조회 api 수정
wken5577 Apr 6, 2024
49ea386
:bug: [Fix] 지원 취소 transactional 추가 및 validation
Kimhan-nah Apr 6, 2024
5163655
[FEAT] #811 admin recruit detail api (#812)
wken5577 Apr 7, 2024
15a1498
[FIX] #815 api response format (#816)
wken5577 Apr 8, 2024
d4e5e32
:bug: [Fix] 공고 전체 조회 response 필드명 수정
Kimhan-nah Apr 8, 2024
ccbaae4
🐛 [Fix] 공고 전체 조회 API의 잘못된 응답 수정 (#817)
Kimhan-nah Apr 8, 2024
f18ffd4
🔨 [Refactoring] 6기 party 피드백 적용 (#818)
AreSain Apr 10, 2024
ced8dc6
[FIX] recruit api req, resp data format (#820)
wken5577 Apr 10, 2024
3c26a64
🐛 [Bug] 방 나간 이후 참여한 방 목록에서 보이는 버그 #821 (#822)
AreSain Apr 10, 2024
6d0ebc0
[FIX] add docs and api format
wken5577 Apr 15, 2024
299df41
[FIX] recruit list에서 status 제거
wken5577 Apr 15, 2024
73cc094
[FIX] recruit가 마감된 recruit인지 확인 후 apply
wken5577 Apr 15, 2024
b158692
[FIX] application status 수정
wken5577 Apr 15, 2024
0f07c6a
[FIX] application status, test code
wken5577 Apr 15, 2024
6e38756
Merge branch 'main' into dev
AreSain Apr 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/checkstyle-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 👮Checkstyle validation

on:
pull_request:
branches: [ main, dev ]
branches: [ main, dev , recruit-dev]

jobs:
checkstyle:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-code-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 💻 Test code validation

on:
pull_request:
branches: [ main, dev ]
branches: [ main, dev, recruit-dev]

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build/
gg-pingpong-api/src/main/resources/application.yml
.DS_Store
python
/logs
**/logs


### STS ###
Expand Down
128 changes: 103 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@ https://42gg.kr/

- 4기: 2023.08.01 ~ 2023.09.21

- 5기 : 2023.11.01 ~ 2024.01.31

## ⚡️ 프로젝트 아키텍처
<img alt="systemArchitecture" src="https://github.com/42organization/42gg.server.dev.v2/assets/67796301/c51e8d73-d8f2-4f5e-935c-325ec263857e" >&nbsp;&nbsp;&nbsp;&nbsp;
![gg-5th-architecture](https://github.com/42organization/42gg.server.dev.v2/assets/33301153/f801e7b5-d579-467b-9ad0-2bfec506dcaa)



## ⚡️ 3기 진행 사항
## ⚡️ 팀소개
### 3기
<details>
<summary> 3기 진행 사항</summary>
<div markdown="1">

### ⚡️⚡ 로그인 연동 추가
- v1에서 지원하지 않던 카카오계정 연동 기능 추가(좌 : v1, 우: v2) </br></br>
Expand Down Expand Up @@ -77,30 +85,9 @@ https://42gg.kr/
<img width=80% alt="dockerPs" src="https://github.com/42organization/42gg.server.dev.v2/assets/67796301/7da03342-14ed-47c7-9183-a68ad663109c" >&nbsp;&nbsp;&nbsp;&nbsp;
</div>

## ⚡️ 4기 진행 사항
### ⚡️⚡ DB table 구조 변경
- 상점, 티어 등 서비스 확장을 위한 DB 재설계
<img width="1103" alt="ERD V3" src="https://github.com/8luerose/42GG_Server/assets/105616046/a1eb2c31-53cc-4c12-94ff-5ca51ec2d522">

### ⚡️⚡ 재화 시스템 추가
- 출석, 게임 승패에 연관해 재화 시스템 추가
<img width="400" alt="attendance" src="https://github.com/42organization/42gg.server.dev.v2/assets/95139402/caa564c8-cb1b-45eb-975c-9e685911e764">

### ⚡️⚡ 상점, 아이템 서비스 추가
- 유저 요구사항을 반영한 기능 확장
<img width="629" alt="스크린샷 2023-09-23 오후 11 48 01" src="https://github.com/8luerose/42GG_Server/assets/105616046/77ce958b-5901-4638-9833-ab27cc182e88">
<img width="689" alt="스크린샷 2023-09-23 오후 11 48 18" src="https://github.com/8luerose/42GG_Server/assets/105616046/f953cbc4-9d97-4485-b318-4fe73e3e3222">

### ⚡️⚡ 티어 시스템 추가
- 랭킹전 활성화를 위한 티어 시스템 추가
<img width="400" alt="tier" src="https://github.com/42organization/42gg.server.dev.v2/assets/95139402/342e0013-13e0-4482-84b5-4381df0498cf">

### ⚡️⚡ 관리자 페이지 구현
- 원활한 운영을 위한 관리자 기능 추가
<img width="400" alt="admin" src="https://github.com/42organization/42gg.server.dev.v2/assets/95139402/59756773-48f3-463a-91e4-6bb263aac2f5">
</div>
</details>

## ⚡️ 팀소개
### 3기
<table>
<thead>
<tr>
Expand Down Expand Up @@ -129,7 +116,37 @@ https://42gg.kr/

</table>



### 4기
<details>
<summary> 4기 진행 사항</summary>
<div markdown="1">

### ⚡️⚡ DB table 구조 변경
- 상점, 티어 등 서비스 확장을 위한 DB 재설계
<img width="1103" alt="ERD V3" src="https://github.com/8luerose/42GG_Server/assets/105616046/a1eb2c31-53cc-4c12-94ff-5ca51ec2d522">

### ⚡️⚡ 재화 시스템 추가
- 출석, 게임 승패에 연관해 재화 시스템 추가
<img width="400" alt="attendance" src="https://github.com/42organization/42gg.server.dev.v2/assets/95139402/caa564c8-cb1b-45eb-975c-9e685911e764">

### ⚡️⚡ 상점, 아이템 서비스 추가
- 유저 요구사항을 반영한 기능 확장
<img width="629" alt="스크린샷 2023-09-23 오후 11 48 01" src="https://github.com/8luerose/42GG_Server/assets/105616046/77ce958b-5901-4638-9833-ab27cc182e88">
<img width="689" alt="스크린샷 2023-09-23 오후 11 48 18" src="https://github.com/8luerose/42GG_Server/assets/105616046/f953cbc4-9d97-4485-b318-4fe73e3e3222">

### ⚡️⚡ 티어 시스템 추가
- 랭킹전 활성화를 위한 티어 시스템 추가
<img width="400" alt="tier" src="https://github.com/42organization/42gg.server.dev.v2/assets/95139402/342e0013-13e0-4482-84b5-4381df0498cf">

### ⚡️⚡ 관리자 페이지 구현
- 원활한 운영을 위한 관리자 기능 추가
<img width="400" alt="admin" src="https://github.com/42organization/42gg.server.dev.v2/assets/95139402/59756773-48f3-463a-91e4-6bb263aac2f5">

</div>
</details>

<table>
<thead>
<tr>
Expand Down Expand Up @@ -157,8 +174,66 @@ https://42gg.kr/

</table>

### 5기
<details>
<summary> 5기 진행 사항</summary>
<div markdown="1">

### ⚡️⚡ 토너먼트 개발
<img width="437" alt="5th-tournament" src="https://github.com/42organization/42gg.server.dev.v2/assets/33301153/edae9ab7-b871-4c33-9d2a-d571615b9a6f">

### ⚡️⚡ 테스트 커버리지 개선 (2024-03-19 기준)
### 전체 68% -> 74%
<img width="878" alt="5th-test-coverage-total" src="https://github.com/42organization/42gg.server.dev.v2/assets/33301153/a479b541-c93c-45bb-a75f-ecaa2332ab16">

### 단위 테스트 0% -> 30%
<img width="1312" alt="5th-test-coverage-unit" src="https://github.com/42organization/42gg.server.dev.v2/assets/33301153/1eeb1495-d500-4345-b1d2-ba1cfe4ec6c4">


### ⚡️⚡ 아키텍처 변경
### BEFORE
<img alt="systemArchitecture" src="https://github.com/42organization/42gg.server.dev.v2/assets/67796301/c51e8d73-d8f2-4f5e-935c-325ec263857e" >&nbsp;&nbsp;&nbsp;&nbsp;
### AFTER
![gg-5th-architecture](https://github.com/42organization/42gg.server.dev.v2/assets/33301153/f801e7b5-d579-467b-9ad0-2bfec506dcaa)

### ⚡️⚡ DB table 구조 변경
![image](https://github.com/42organization/42gg.server.dev.v2/assets/33301153/d4c68d74-590c-41db-9c47-0bdd4f249bc3)


</div>
</details>

<table>
<thead>
<tr>
<td align=center>🏓</td>
<td align=center>🏓</td>
<td align=center>🏓</td>
<td align=center>🏓</td>
<td align=center>🏓</td>
</tr>
</thead>
<tr>
<td align=center><a href="https://github.com/kokomong2">고승준 @kokomong2</a></td>
<td align=center><a href="https://github.com/Kimhan-nah">김한나 @Kimhan-nah</a></td>
<td align=center><a href="https://github.com/Newsujin">박수진 @Newsujin</a></td>
<td align=center><a href="https://github.com/SONGS4RI"> 이자훈 @SONGS4RI</a></td>
<td align=center><a href="https://github.com/middlefitting">정승철 @middlefitting</a></td>
</tr>
<tr>
<td align=center>토너먼트 개발, <br> 테스트 커버리지 개선</td>
<td align=center>팀장, 토너먼트 개발, <br> 테스트 커버리지 개선</td>
<td align=center>토너먼트 개발, <br> 테스트 커버리지 개선</td>
<td align=center>토너먼트 개발, <br> 테스트 커버리지 개선</td>
<td align=center>인프라 담당, <br> 테스트 커버리지 개선</td>
</tr>
</table>

## ⚡️ 필요 파일
<details>
<summary> application.yml </summary>
<div markdown="1">

다음과 같은 양식의 "application.yml"파일이 "src/main/resources/"경로에 필요합니다.
```
spring:
Expand Down Expand Up @@ -319,3 +394,6 @@ app:
refreshTokenExpiry: ""
```

</div>
</details>
29 changes: 28 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ editorconfig {
}

springBoot {
mainClass = "gg.pingpong.api.PingPongApiApplication"
mainClass = "gg.PingPongApiApplication"
}

group = 'io.42pp'
Expand Down Expand Up @@ -56,6 +56,9 @@ subprojects {
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.redisson:redisson:3.17.3'

//devtools
implementation 'org.springframework.boot:spring-boot-devtools'

/* spring doc */
implementation 'org.springdoc:springdoc-openapi-ui:1.6.6'

Expand Down Expand Up @@ -243,6 +246,30 @@ project(':gg-pingpong-api') {
implementation project(':gg-repo')
implementation project(':gg-admin-repo')
implementation project(':gg-utils')
implementation project(':gg-auth')
implementation project(':gg-recruit-api')
}
}

project(':gg-recruit-api') {
bootJar { enabled = false }
jar { enabled = true }
dependencies {
implementation project(':gg-data')
implementation project(':gg-repo')
implementation project(':gg-admin-repo')
implementation project(':gg-utils')
implementation project(':gg-auth')
}
}

project(':gg-auth') {
bootJar { enabled = false }
jar { enabled = true }
dependencies {
implementation project(':gg-data')
implementation project(':gg-repo')
implementation project(':gg-utils')
}
}

Expand Down
16 changes: 10 additions & 6 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ flags:
unitTest:
paths:
- gg-pingpong-api/src/main/java/gg/pingpong/api
- gg-pingpong-repo/src/main/java/gg/pingpong/repo
- gg-pingpong-admin-repo/src/main/java/gg/pingpong/admin/repo
- gg-pingpong-data/src/main/java/gg/pingpong/data
- gg-repo/src/main/java/gg/repo
- gg-admin-repo/src/main/java/gg/admin/repo
- gg-data/src/main/java/gg/data
- gg-auth/src/main/java/gg/auth
- gg-utils/src/main/java/gg/utils
integrationTest:
paths:
- gg-pingpong-api/src/main/java/gg/pingpong/api
- gg-pingpong-repo/src/main/java/gg/pingpong/repo
- gg-pingpong-admin-repo/src/main/java/gg/pingpong/admin/repo
- gg-pingpong-data/src/main/java/gg/pingpong/data
- gg-repo/src/main/java/gg/repo
- gg-admin-repo/src/main/java/gg/admin/repo
- gg-data/src/main/java/gg/data
- gg-auth/src/main/java/gg/auth
- gg-utils/src/main/java/gg/utils
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package gg.admin.repo.category;

import org.springframework.data.jpa.repository.JpaRepository;

import gg.data.party.Category;

public interface CategoryAdminRepository extends JpaRepository<Category, Long> {
Boolean existsByName(String categoryName);

Category findByName(String categoryName);
AYoungSn marked this conversation as resolved.
Show resolved Hide resolved
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package gg.admin.repo.comment;

import org.springframework.data.jpa.repository.JpaRepository;

import gg.data.party.Comment;

public interface CommentAdminRepository extends JpaRepository<Comment, Long> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import org.springframework.data.repository.query.Param;

import gg.admin.repo.game.out.GameTeamUser;
import gg.data.game.Game;
import gg.data.game.type.Mode;
import gg.data.game.type.StatusType;
import gg.data.season.Season;
import gg.data.pingpong.game.Game;
import gg.data.pingpong.game.type.Mode;
import gg.data.pingpong.game.type.StatusType;
import gg.data.pingpong.season.Season;

public interface GameAdminRepository extends JpaRepository<Game, Long> {

Expand All @@ -33,8 +33,10 @@ public interface GameAdminRepository extends JpaRepository<Game, Long> {
+ "order by t1.startTime desc;", nativeQuery = true)
List<GameTeamUser> findTeamsByGameIsIn(@Param("games") List<Long> games);

@Query(value = "SELECT g FROM Game g, Team t, TeamUser tu WHERE g.status = :status AND g.id = t.game.id"
+ " AND t.id = tu.team.id AND tu.user.id = :userId")
@Query(value = "SELECT g FROM Game g "
+ "INNER JOIN Team t ON g.id = t.game.id "
+ "INNER JOIN TeamUser tu ON tu.team.id = t.id "
+ "WHERE g.status = :status AND tu.user.id = :userId")
Optional<Game> findByStatusTypeAndUserId(@Param("status") StatusType status, @Param("userId") Long userId);

@Query(value = "SELECT g FROM Game g JOIN FETCH g.season WHERE g.id = :gameId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.springframework.data.jpa.repository.JpaRepository;

import gg.data.game.PChange;
import gg.data.pingpong.game.PChange;

public interface PChangeAdminRepository extends JpaRepository<PChange, Long>, PChangeAdminRepositoryCustom {
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.util.List;

import gg.data.game.PChange;
import gg.data.pingpong.game.PChange;

public interface PChangeAdminRepositoryCustom {
List<PChange> findByTeamUser(Long userId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import javax.persistence.EntityManager;
import javax.persistence.LockModeType;

import gg.data.game.PChange;
import gg.data.pingpong.game.PChange;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import org.springframework.data.jpa.repository.JpaRepository;

import gg.data.game.Game;
import gg.data.game.Team;
import gg.data.pingpong.game.Game;
import gg.data.pingpong.game.Team;

public interface TeamAdminRepository extends JpaRepository<Team, Long> {
List<Team> findAllByGame(Game game);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import gg.data.game.TeamUser;
import gg.data.pingpong.game.TeamUser;
import gg.data.user.User;

public interface TeamUserAdminRepository extends JpaRepository<TeamUser, Long> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import java.time.LocalDateTime;

import gg.data.game.type.Mode;
import gg.data.game.type.StatusType;
import gg.data.pingpong.game.type.Mode;
import gg.data.pingpong.game.type.StatusType;

public interface GameTeamUser {
Long getGameId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import gg.data.manage.SlotManagement;
import gg.data.pingpong.manage.SlotManagement;

public interface AdminSlotManagementsRepository extends JpaRepository<SlotManagement, Long> {
@Query("select slot from SlotManagement slot "
Expand All @@ -20,4 +20,8 @@ public interface AdminSlotManagementsRepository extends JpaRepository<SlotManage

Optional<SlotManagement> findFirstByOrderByIdDesc();

@Query("select sm from SlotManagement sm where (sm.endTime is null"
+ " or sm.endTime > :now) and sm.startTime <=:now")
Optional<SlotManagement> findCurrent(@Param("now") LocalDateTime now);

}
Loading
Loading