-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/repository
- Loading branch information
Showing
23 changed files
with
124 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
# 변경된 파일들 이름만 추출하여 저장 | ||
stagedFiles=$(git diff --staged --name-only) | ||
|
||
# SpotlessApply 실행 | ||
echo "Running spotlessApply. Formatting code..." | ||
|
||
./gradlew spotlessApply | ||
|
||
# 변경사항이 발생한 파일들 다시 git add | ||
for file in $stagedFiles; do | ||
if test -f "$file"; then | ||
git add "$file" | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
src/main/java/com/gdgoc/study_group/curriculum/dto/CurriculumDTO.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/main/java/com/gdgoc/study_group/member/application/MemberService.java
This file was deleted.
Oops, something went wrong.
36 changes: 34 additions & 2 deletions
36
src/main/java/com/gdgoc/study_group/member/dao/MemberRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,43 @@ | ||
package com.gdgoc.study_group.member.repository; | ||
package com.gdgoc.study_group.member.dao; | ||
|
||
import com.gdgoc.study_group.member.domain.Member; | ||
import com.gdgoc.study_group.study.domain.Study; | ||
import com.gdgoc.study_group.studyMember.domain.StudyMemberStatus; | ||
import java.util.List; | ||
import java.util.Optional; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface MemberRepository extends JpaRepository<Member, Long> { | ||
/** | ||
* 해당 멤버가 해당 상태를 가진 스터디 목록들을 반환합니다. | ||
* | ||
* @param memberId 검색할 대상이 되는 멤버의 PK | ||
* @param memberStatus 검색할 대상이 되는 멤버가 스터디에서 가지길 기대하는 상태 | ||
* @return 해당 멤버가 포함되고, 해당 상태를 상태로 가지는 스터디들을 반환합니다. | ||
*/ | ||
@Query( | ||
"SELECT sm.study FROM StudyMember sm WHERE" | ||
+ " sm.member.id = :id AND" | ||
+ " sm.studyMemberStatus = :memberStatus") | ||
List<Study> findByMemberIdAndStatus( | ||
@Param("id") Long memberId, @Param("memberStatus") StudyMemberStatus memberStatus); | ||
|
||
Member findByGithub(String github); | ||
/** | ||
* 해당 멤버의 스터디에서의 상태를 조회합니다. | ||
* | ||
* @param memberId 검색할 멤버의 id | ||
* @param studyId 검색할 스터디의 id | ||
* @return 해당 스터디에서 멤버의 상태(Optional) | ||
*/ | ||
@Query( | ||
"SELECT sm.studyMemberStatus FROM StudyMember sm WHERE sm.member.id = :memberId AND" | ||
+ " sm.study.id = :studyId") | ||
Optional<StudyMemberStatus> findMemberStatus( | ||
@Param("memberId") Long memberId, @Param("studyId") Long studyId); | ||
|
||
Member findByGithub(String github); | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/java/com/gdgoc/study_group/round/dao/RoundRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/gdgoc/study_group/roundMember/dao/RoundMemberRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
src/main/java/com/gdgoc/study_group/study/api/StudyController.java
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
src/main/java/com/gdgoc/study_group/study/application/StudyService.java
This file was deleted.
Oops, something went wrong.
16 changes: 7 additions & 9 deletions
16
src/main/java/com/gdgoc/study_group/study/dao/StudyRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
package com.gdgoc.study_group.study.repository; | ||
package com.gdgoc.study_group.study.dao; | ||
|
||
import com.gdgoc.study_group.study.domain.Status; | ||
import com.gdgoc.study_group.study.domain.Study; | ||
import com.gdgoc.study_group.study.domain.StudyStatus; | ||
import java.util.List; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
@Repository | ||
public interface StudyRepository extends JpaRepository<Study, Long> { | ||
|
||
// 특정 Status인 스터디 목록 조회 | ||
List<Study> findByStatus(Status status); | ||
|
||
// 모집 중인 스터디 목록 조회(status != FINISHED) | ||
List<Study> findByStatusNot(Status status); | ||
// 특정 Status인 스터디 목록 조회 | ||
List<Study> findByStatus(StudyStatus studyStatus); | ||
|
||
// 모집 중인 스터디 목록 조회(status != FINISHED) | ||
List<Study> findByStatusNot(StudyStatus studyStatus); | ||
} |
Oops, something went wrong.