Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
8adfdc9
chore: 프로젝트 초기화 설정
sallyjellyy May 3, 2021
d4c91f0
chore: 스프링 부트 초기화 및 application.properties DB 설정
sallyjellyy May 3, 2021
a920746
feat: 도메인 구현
sallyjellyy May 7, 2021
c0115da
feat: GameRepository, TeamRepository 구현
sallyjellyy May 7, 2021
c1b005b
feat: 전체 게임 리스트를 불러오는 GameService, GameController 구현
sallyjellyy May 7, 2021
aa140fb
feat: 테이블 스키마 작성
sallyjellyy May 7, 2021
4693684
test: 테스트 데이터 작성
sallyjellyy May 7, 2021
822941c
feat: 전체 게임리스트를 반환할 때 사용할 GameListDTO 구현
sallyjellyy May 7, 2021
3ab1447
feat: DTO 포맷에 맞게 테이블 결과를 불러오는 쿼리 작성
sallyjellyy May 7, 2021
cf8970d
feat: 게임 레포지토리에 있는 메서드를 이용해서 전체 게임리스트를 불러오는 기능 구현
sallyjellyy May 7, 2021
05e8a64
chore: 쿼리 디버그 설정 추가
sallyjellyy May 7, 2021
c850d7b
feat: 게임에서 팀을 아이디값으로 가지고있게 변경
sallyjellyy May 9, 2021
d7f96f7
feat: 게임, 팀, 플레이어 조회 실패시 나타낼 예외 생성
sallyjellyy May 9, 2021
e6e88ce
feat: findGameById 메서드 추가
sallyjellyy May 9, 2021
d095894
feat: 팀에서 플레이어를 Set으로 가지도록 필드 추가
sallyjellyy May 9, 2021
0372671
feat: TeamService 구현
sallyjellyy May 9, 2021
0826a95
feat: 정해둔 형식으로 한 게임의 선수정보 불러오는 메서드 구현
sallyjellyy May 9, 2021
ed9dbf4
feat: NotFoundException 구현
sallyjellyy May 9, 2021
d3d8b92
feat: ErrorCode를 enum으로 구현
sallyjellyy May 9, 2021
0c44218
feat: 리스폰스 바디로 보내줄 ErrorResponse 구현
sallyjellyy May 9, 2021
a284220
feat: GlobalExceptionHandler 구현
sallyjellyy May 9, 2021
c9905f2
style: 코드 포매팅, optimize import
sallyjellyy May 9, 2021
c9117a6
feat: 입장할 수 있는 게임인지 상태를 가져오는 browseGameStatus 구현
sallyjellyy May 9, 2021
5a12ff9
refactor: ErrorResponse 생성자 구조 변경
sallyjellyy May 9, 2021
217dec1
feat: TeamNotPlayableException 구현 및 처리
sallyjellyy May 11, 2021
6ac4369
feat: 팀 정보를 불러올 때 안의 players를 id값 순서에 맞게 정렬하도록 리스트로 변환하여 정렬
sallyjellyy May 11, 2021
2c1f637
feat: 선택한 팀의 상태에 따라 팀 정보를 반환하는 메서드 구현
sallyjellyy May 11, 2021
d2c2ccb
refactor: 팀 상태를 반환하는 메서드의 반환타입과 로직 변경
sallyjellyy May 11, 2021
49298c8
refactor: 프론트 요청에 따라 DTO 변수 순서 변경
sallyjellyy May 11, 2021
4078a93
feat: 선수 정보용 DTO 구현
sallyjellyy May 11, 2021
60b4438
refactor: atHome 에서 plateAppearance로 변수명 변경
sallyjellyy May 11, 2021
4a804f0
feat: 선수의 기록을 업데이트 할 때 받을 RequestPlayerRecordDTO 구현
sallyjellyy May 11, 2021
b6eaaf1
feat: 선수의 기록을 업데이트하는 메서드 구현
sallyjellyy May 11, 2021
42fcdb8
feat: 선수의 기록을 업데이트 해주는 메서드를 서비스단에서 구현
sallyjellyy May 11, 2021
3cb87c4
feat: 스코어 구현
sallyjellyy May 11, 2021
0d92b45
feat: 팀에서 스코어를 셋으로 가지도록 구현
sallyjellyy May 11, 2021
74e8791
feat: 스코어 테이블 추가
sallyjellyy May 11, 2021
5de440a
feat: 스코어를 추가하는 메서드 서비스단에서 구현
sallyjellyy May 11, 2021
b33453e
chore: 로그 기록용 설정 추가
sallyjellyy May 11, 2021
ce6730b
chore: 로그 기록 gitignore에 추가
sallyjellyy May 11, 2021
dee24bc
test: 테스트 데이터 추가
sallyjellyy May 11, 2021
00bdd64
feat: 게임리스트를 불러오는 곳에서 팀 아이디 추가
sallyjellyy May 11, 2021
e627055
feat: 스코어를 내보낼 때 쓸 TeamScoreDTO 구현
sallyjellyy May 11, 2021
a49744b
feat: 게임단위로 스코어를 감싸줄 GameScoreDTO 구현
sallyjellyy May 11, 2021
0a801a8
feat: 팀 스코어를 팀 아이디로 가져오는 메서드 구현
sallyjellyy May 11, 2021
d2f4f7f
feat: 스코어를 클라이언트에서 받아오고 내보내는 기능 구현
sallyjellyy May 11, 2021
3857555
feat: userSelected 필드에 추가
sallyjellyy May 11, 2021
a7e87fc
feat: userSelected 테이블에 컬럼으로 추가
sallyjellyy May 11, 2021
c3234a2
refactor: 코드 정리
sallyjellyy May 11, 2021
926d844
refactor: DTO 패키지 정리
sallyjellyy May 11, 2021
0481ce5
refactor: 의미를 명확하게 하기 위해 변수명 변경
sallyjellyy May 11, 2021
660c20d
refactor: 선수 기록 업데이트 후 팀에 저장하는 부분 수정
sallyjellyy May 11, 2021
7968604
feat: 선수 기록 업데이트하는 기능 추가
sallyjellyy May 11, 2021
aeb66b7
refactor: 평균값이 소수점 세자리까지 나올 수 있도록 AVERAGE_FORMAT 값 수정
sallyjellyy May 11, 2021
bd8aeac
refactor: patch와 post 성공 시 200대 응답코드 반환하도록 추가
sallyjellyy May 11, 2021
5d8f748
refactor: RequestPlayerRecordDTO 클래스명 변경
sallyjellyy May 11, 2021
1ac8f0a
refactor: set 초기화
sallyjellyy May 11, 2021
40ad146
refactor: 주석 추가
sallyjellyy May 11, 2021
4c41e8a
refactor: 불필요한 지역 변수 할당 제거
sallyjellyy May 14, 2021
9349f55
refactor: average 데이터 타입 변경 및 average 계산 로직 변경
sallyjellyy May 14, 2021
f6a28e0
Merge branch 'dev-BE' of https://github.com/min27604/baseball into de…
sallyjellyy May 17, 2021
a0448dc
refactor: 정렬수행의 위치 변경
sallyjellyy May 17, 2021
a1e1620
refactor: 코드 정리
sallyjellyy May 17, 2021
fb3478d
refactor: GameService에 로직을 추가
sallyjellyy May 17, 2021
dad5131
refactor: GameController, TeamController 분리
sallyjellyy May 17, 2021
d8af350
refactor: BrowseAllGames 로직 변경
sallyjellyy May 17, 2021
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
41 changes: 41 additions & 0 deletions BE/baseball/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### log ###
*.log
**/logs/
24 changes: 24 additions & 0 deletions BE/baseball/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
plugins {
id 'org.springframework.boot' version '2.4.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}

group = 'com.codesquad'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
runtimeOnly 'mysql:mysql-connector-java'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

test {
useJUnitPlatform()
}
Binary file added BE/baseball/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions BE/baseball/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
185 changes: 185 additions & 0 deletions BE/baseball/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 89 additions & 0 deletions BE/baseball/gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions BE/baseball/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'baseball'
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.codesquad.baseball;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BaseballApplication {

public static void main(String[] args) {
SpringApplication.run(BaseballApplication.class, args);
}

}
Loading