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

Recruit - User 기능 연동 테스트 위한 PR #748

Merged
merged 14 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -4,7 +4,7 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
**/application.yml
gg-pingpong-api/src/main/resources/application.yml
.DS_Store
python
/logs
Expand Down
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
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 @@ -238,6 +241,19 @@ subprojects {
project(':gg-pingpong-api') {
bootJar { enabled = true }
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')
implementation project(':gg-recruit-api')
}
}

project(':gg-recruit-api') {
bootJar { enabled = false }
jar { enabled = true }
dependencies {
implementation project(':gg-data')
implementation project(':gg-repo')
Expand Down
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 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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Repository;

import gg.data.match.RedisMatchUser;
import gg.data.match.type.MatchKey;
import gg.data.pingpong.match.RedisMatchUser;
import gg.data.pingpong.match.type.MatchKey;
import lombok.RequiredArgsConstructor;

@Repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import gg.data.season.Season;
import gg.data.pingpong.season.Season;

public interface SeasonAdminRepository extends JpaRepository<Season, Long> {
/* 입력시간과 모드로 입력시간 이후 가장 가까운 시즌 가져오기 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

import gg.data.store.CoinPolicy;
import gg.data.pingpong.store.CoinPolicy;

public interface CoinPolicyAdminRepository extends JpaRepository<CoinPolicy, Long> {
Optional<CoinPolicy> findFirstByOrderByIdDesc();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import gg.data.store.Item;
import gg.data.pingpong.store.Item;

public interface ItemAdminRepository extends JpaRepository<Item, Long> {
Page<Item> findAll(Pageable pageable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import gg.data.store.Megaphone;
import gg.data.pingpong.store.Megaphone;

public interface MegaphoneAdminRepository extends JpaRepository<Megaphone, Long> {
Page<Megaphone> findMegaphonesByUserIntraId(String intraId, Pageable pageable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import gg.data.store.Receipt;
import gg.data.pingpong.store.Receipt;

public interface ReceiptAdminRepository extends JpaRepository<Receipt, Long>, ReceiptAdminRepositorySearch {
Page<Receipt> findAll(Pageable pageable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import gg.data.store.Receipt;
import gg.data.pingpong.store.Receipt;

public interface ReceiptAdminRepositorySearch {
@Query(value = "select re from Receipt re where re.purchaserIntraId = :intraId or re.ownerIntraId = :intraId")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.game;
package gg.data.pingpong.game;

import java.time.LocalDateTime;
import java.util.ArrayList;
Expand All @@ -20,9 +20,9 @@

import org.hibernate.annotations.DynamicUpdate;

import gg.data.game.type.Mode;
import gg.data.game.type.StatusType;
import gg.data.season.Season;
import gg.data.pingpong.game.type.Mode;
import gg.data.pingpong.game.type.StatusType;
import gg.data.pingpong.season.Season;
import gg.utils.exception.BusinessChecker;
import gg.utils.exception.ErrorCode;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.game;
package gg.data.pingpong.game;

import javax.persistence.Column;
import javax.persistence.Entity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.game;
package gg.data.pingpong.game;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.game;
package gg.data.pingpong.game;

import javax.persistence.Entity;
import javax.persistence.FetchType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.game.type;
package gg.data.pingpong.game.type;

import java.util.Locale;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.game.type;
package gg.data.pingpong.game.type;

import java.util.Locale;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.manage;
package gg.data.pingpong.manage;

import java.time.LocalDateTime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.match;
package gg.data.pingpong.match;

import java.io.Serializable;
import java.time.LocalDateTime;
Expand All @@ -12,7 +12,7 @@
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import gg.data.match.type.Option;
import gg.data.pingpong.match.type.Option;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package gg.data.match;
package gg.data.pingpong.match;

import java.io.Serializable;

import javax.persistence.Id;

import org.springframework.data.redis.core.RedisHash;

import gg.data.match.type.Option;
import gg.data.pingpong.match.type.Option;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.match.type;
package gg.data.pingpong.match.type;

import java.time.LocalDateTime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.match.type;
package gg.data.pingpong.match.type;

import java.util.Locale;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.match.type;
package gg.data.pingpong.match.type;

import java.util.Locale;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.match.type;
package gg.data.pingpong.match.type;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.rank;
package gg.data.pingpong.rank;

import java.io.Serializable;

Expand All @@ -16,7 +16,7 @@
import org.hibernate.annotations.DynamicUpdate;

import gg.data.BaseTimeEntity;
import gg.data.season.Season;
import gg.data.pingpong.season.Season;
import gg.data.user.User;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.rank;
package gg.data.pingpong.rank;

import java.io.Serializable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package gg.data.rank.redis;
package gg.data.pingpong.rank.redis;

import java.io.Serializable;

import org.springframework.data.redis.core.RedisHash;

import gg.data.rank.Rank;
import gg.data.pingpong.rank.Rank;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.season;
package gg.data.pingpong.season;

import java.time.LocalDateTime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.store;
package gg.data.pingpong.store;

import java.time.LocalDateTime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.store;
package gg.data.pingpong.store;

import java.time.LocalDateTime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.store;
package gg.data.pingpong.store;

import java.time.LocalDateTime;

Expand All @@ -11,7 +11,7 @@
import javax.persistence.Id;
import javax.validation.constraints.NotNull;

import gg.data.store.type.ItemType;
import gg.data.pingpong.store.type.ItemType;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gg.data.store;
package gg.data.pingpong.store;

import java.time.LocalDate;

Expand Down
Loading
Loading