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

Feature/#165 해커톤 api 구현 #237

Merged
merged 35 commits into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ea4c486
feat: 해커톤, 해커톤팀, 해커톤 팀원 관련 테이블 정의
llddang Dec 19, 2024
ee755c4
feat: 해커톤, 해커톤팀, 해커톤팀원 클래스 정의
llddang Dec 19, 2024
18dd50d
feat: 해커톤, 해커톤팀, 해커톤팀원 레포지토리 정의
llddang Dec 19, 2024
c6fe4f7
feat: 해커톤 관련 예외 및 예외 타입 정의
llddang Dec 19, 2024
d903d7f
feat: 해커톤 등록 API 구현
llddang Dec 19, 2024
597162d
feat: 해커톤 관리자의 목록 조회 구현
llddang Dec 20, 2024
028d57d
feat: 해커톤 상세 조회 API 구현
llddang Dec 20, 2024
e6e4777
feat: 해커톤 수정 API 구현
llddang Dec 20, 2024
a4c8238
feat: 해커톤 삭제 API 구현
llddang Dec 20, 2024
38c05be
feat: 해커톤 투표 결과 엑셀 파일 다운로드 API 구현
llddang Dec 20, 2024
c0a5df0
feat: 해커톤 활성 여부 변경 API 구현
llddang Dec 20, 2024
0f25feb
feat: 해커톤 팀 등수 수정 API 구현
llddang Dec 20, 2024
0ddae47
feat: 해커톤 목록 조회 시 대회 시작일 기준으로 내림차순 정렬
llddang Dec 20, 2024
1445a75
feat: hackathon vote 테이블 추가
llddang Dec 29, 2024
6ee51dc
feat: 관리자의 해커톤 전체 목록 조회 API test 추가
llddang Dec 29, 2024
2b62c10
feat: 관리자의 해커톤 상세 조회 API test 추가
llddang Dec 29, 2024
3eea364
feat: 관리자의 해커톤 등록 API Test 추가
llddang Dec 29, 2024
f8b5a16
feat: 관리자의 해커톤 수정 API test 추가
llddang Dec 29, 2024
fab10cc
feat: 관리자의 해커톤 삭제 API test
llddang Dec 29, 2024
34c96e0
feat: 관리자의 해커톤 투표 결과 다운로드 API test 추가
llddang Dec 29, 2024
cbf6c4e
feat: 관리자의 해커톤 활성화 상태 수정 API test
llddang Dec 29, 2024
93bfcc5
feat: 관리자의 해커톤 팀 상장 수정 API test 추가
llddang Dec 29, 2024
cbb70b4
feat: 관리자의 해커톤 팀 수정 API 구현 및 test 추가
llddang Dec 29, 2024
8f5550d
feat: 관리자의 해커톤 팀 삭제 API 구현 및 test 추가
llddang Dec 29, 2024
a449dfc
feat: 일반 해커톤 조회 API 구현 및 test 코드 작성
llddang Dec 30, 2024
043cd1e
feat: 일반 사용자의 해커톤 조회 및 test 코드 작성
llddang Dec 31, 2024
5c9c637
feat: 해커톤 상장 조회 API 구현 및 test 코드 작성
llddang Dec 31, 2024
b5763b3
feat: 해커톤 팀의 목록 조회 API 구현 및 test 코드 작성
llddang Jan 1, 2025
66131b4
feat: 해커톤 팀 조회 시 response에 팀원 목록 추가
llddang Jan 1, 2025
7fbb35d
feat: 해커톤 팀 상세 조회 API 구현 및 test 작성
llddang Jan 1, 2025
33c27e4
feat: 해커톤 팀 등록 API 구현 및 test 코드 작성
llddang Jan 1, 2025
8012f3a
feat: 해커톤 팀 수정 API 구현 및 test 코드 작성
llddang Jan 1, 2025
2d8f671
feat: 해커톤 팀 삭제 API 구현 및 test 코드 작성
llddang Jan 1, 2025
58a1c65
feat: 해커톤 팀 투표 및 투표 취소 API 구현 및 test 코드 작성
llddang Jan 1, 2025
7783179
feat: 해커톤 투표 조회 API 구현 및 test 코드 작성
llddang Jan 1, 2025
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
289 changes: 289 additions & 0 deletions backend/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -349,3 +349,292 @@ include::{snippets}/admin-auth-delete/request-body.adoc[]

.HTTP Response
include::{snippets}/admin-auth-delete/http-response.adoc[]

== 관리자 - 해커톤

=== `GET`: 관리자의 해커톤 전체 목록 조회

.HTTP Request
include::{snippets}/admin-hackathon-find-all/http-request.adoc[]

.Path Parameters
include::{snippets}/admin-hackathon-find-all/query-parameters.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-find-all/http-response.adoc[]

.Response Body
include::{snippets}/admin-hackathon-find-all/response-fields.adoc[]

=== `GET`: 관리자의 특정 해커톤 조회

.HTTP Request
include::{snippets}/admin-hackathon-find/http-request.adoc[]

.Path Parameters
include::{snippets}/admin-hackathon-find/path-parameters.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-find/http-response.adoc[]

.Response Body
include::{snippets}/admin-hackathon-find/response-fields.adoc[]

=== `POST`: 관리자의 해커톤 생성

.HTTP Request
include::{snippets}/admin-hackathon-register/http-request.adoc[]

.Request Body
include::{snippets}/admin-hackathon-register/request-parts.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-register/http-response.adoc[]

=== `PATCH`: 관리자의 해커톤 수정

.HTTP Request
include::{snippets}/admin-hackathon-update/http-request.adoc[]

.Request Body
include::{snippets}/admin-hackathon-update/request-parts.adoc[]

.Path Parameters
include::{snippets}/admin-hackathon-update/path-parameters.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-update/http-response.adoc[]

=== `DELETE`: 관리자의 해커톤 삭제

.HTTP Request
include::{snippets}/admin-hackathon-delete/http-request.adoc[]

.Path Parameters
include::{snippets}/admin-hackathon-delete/path-parameters.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-delete/http-response.adoc[]

=== `GET`: 관리자의 해커톤 투표 결과 다운로드

.HTTP Request
include::{snippets}/admin-hackathon-download-vote/http-request.adoc[]

.Path Parameters
include::{snippets}/admin-hackathon-download-vote/path-parameters.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-download-vote/http-response.adoc[]

=== `PATCH`: 관리자의 해커톤 활성화 수정

.HTTP Request
include::{snippets}/admin-hackathon-update-active/http-request.adoc[]

.Path Parameters
include::{snippets}/admin-hackathon-update-active/path-parameters.adoc[]

.Request Body
include::{snippets}/admin-hackathon-update-active/request-fields.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-update-active/http-response.adoc[]

=== `PATCH`: 관리자의 해커톤 팀의 상장 수정

.HTTP Request
include::{snippets}/admin-hackathon-change-prize/http-request.adoc[]

.Path Parameters
include::{snippets}/admin-hackathon-change-prize/path-parameters.adoc[]

.Request Body
include::{snippets}/admin-hackathon-change-prize/request-fields.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-change-prize/http-response.adoc[]


== 관리자 - 해커톤 팀
=== `PATCH`: 관리자의 해커톤 팀 수정

.HTTP Request
include::{snippets}/admin-hackathon-team-update/http-request.adoc[]

.Path Parameters
include::{snippets}/admin-hackathon-team-update/path-parameters.adoc[]

.Request Body
include::{snippets}/admin-hackathon-team-update/request-fields.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-team-update/http-response.adoc[]

=== `DELETE`: 관리자의 해커톤 팀 삭제

.HTTP Request
include::{snippets}/admin-hackathon-team-delete/http-request.adoc[]

.Path Parameters
include::{snippets}/admin-hackathon-team-delete/path-parameters.adoc[]

.HTTP Response
include::{snippets}/admin-hackathon-team-delete/http-response.adoc[]

== 일반 - 해커톤

=== `GET`: 해커톤 전체 조회

.HTTP Request
include::{snippets}/hackathon-find-all/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-find-all/query-parameters.adoc[]

.HTTP Response
include::{snippets}/hackathon-find-all/http-response.adoc[]

.Response Body
include::{snippets}/hackathon-find-all/response-fields.adoc[]

=== `GET`: 해커톤 상세 조회

.HTTP Request
include::{snippets}/hackathon-find/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-find/path-parameters.adoc[]

.HTTP Response
include::{snippets}/hackathon-find/http-response.adoc[]

.Response Body
include::{snippets}/hackathon-find/response-fields.adoc[]


=== `GET`: 해커톤 상장 조회

.HTTP Request
include::{snippets}/hackathon-find-prize/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-find-prize/path-parameters.adoc[]

.HTTP Response
include::{snippets}/hackathon-find-prize/http-response.adoc[]

.Response Body
include::{snippets}/hackathon-find-prize/response-fields.adoc[]


== 일반 - 해커톤 팀

=== `GET`: 해커톤 팀 목록 조회

.HTTP Request
include::{snippets}/hackathon-team-find-all/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-team-find-all/path-parameters.adoc[]

.HTTP Response
include::{snippets}/hackathon-team-find-all/http-response.adoc[]

.Response Body
include::{snippets}/hackathon-team-find-all/response-fields.adoc[]


=== `GET`: 해커톤 팀 상세 조회

.HTTP Request
include::{snippets}/hackathon-team-find/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-team-find/path-parameters.adoc[]

.HTTP Response
include::{snippets}/hackathon-team-find/http-response.adoc[]

.Response Body
include::{snippets}/hackathon-team-find/response-fields.adoc[]


=== `POST`: 해커톤 팀 등록

.HTTP Request
include::{snippets}/hackathon-team-register/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-team-register/path-parameters.adoc[]

.Request Body
include::{snippets}/hackathon-team-register/request-parts.adoc[]

.HTTP Response
include::{snippets}/hackathon-team-register/http-response.adoc[]


=== `PATCH`: 해커톤 팀 수정

.HTTP Request
include::{snippets}/hackathon-team-update/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-team-update/path-parameters.adoc[]

.Request Body
include::{snippets}/hackathon-team-update/request-fields.adoc[]

.HTTP Response
include::{snippets}/hackathon-team-update/http-response.adoc[]


=== `DELETE`: 해커톤 팀 삭제

.HTTP Request
include::{snippets}/hackathon-team-delete/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-team-delete/path-parameters.adoc[]

.HTTP Response
include::{snippets}/hackathon-team-delete/http-response.adoc[]


== 일반 - 해커톤 팀 투표

=== `GET`: 헤커톤 팀 투표 조회
.HTTP Request
include::{snippets}/hackathon-team-vote/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-team-vote/path-parameters.adoc[]

.HTTP Response
include::{snippets}/hackathon-team-vote/http-response.adoc[]

.Response Body
include::{snippets}/hackathon-team-vote/response-fields.adoc[]


=== `POST`: 헤커톤 팀 투표 등록
.HTTP Request
include::{snippets}/hackathon-team-vote-register/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-team-vote-register/path-parameters.adoc[]

.HTTP Response
include::{snippets}/hackathon-team-vote-register/http-response.adoc[]


=== `DELETE`: 헤커톤 팀 투표 취소
.HTTP Request
include::{snippets}/hackathon-team-vote-cancel/http-request.adoc[]

.Path Parameters
include::{snippets}/hackathon-team-vote-cancel/path-parameters.adoc[]

.HTTP Response
include::{snippets}/hackathon-team-vote-cancel/http-response.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private Workbook generateWorkbook(final MultipartFile file, String extension) {
}

private void saveFaculty(final String email, final String name, final String password) {
Member member = new Member(email, name, password, "01000000000", false);
Member member = new Member(email, name, password, "01000000000");

final Member savedMember = memberRepository.save(member);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public record RegisterFacultyRequest(
String name) {

public Member toMember(String password) {
return new Member(email, name, password, "01000000000", false);
return new Member(email, name, password, "01000000000");
}

public Member toMember(Long memberId, String password) {
return new Member(memberId, email, name, password, "01000000000", false);
return new Member(memberId, email, name, password, "01000000000");
}

public FacultyMember toFacultyMember(Long memberId, String password) {
Expand Down
Loading