-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
155 additions
and
101 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
src/main/java/com/startlion/startlionserver/controller/ApplicationApi.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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.startlion.startlionserver.controller; | ||
|
||
import com.startlion.startlionserver.dto.request.application.ApplicationPage1PutRequest; | ||
import com.startlion.startlionserver.dto.request.application.ApplicationPage2PutRequest; | ||
import com.startlion.startlionserver.dto.request.application.ApplicationPage3PutRequest; | ||
import com.startlion.startlionserver.dto.request.application.ApplicationPage4PutRequest; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
|
||
import java.security.Principal; | ||
|
||
@Tag(name = "[Application] 지원서 관련 API") | ||
public interface ApplicationApi { | ||
|
||
@Operation(summary = "지원서 정보 가져오기 (저장된 지원서가 없을 시(applicationId = 0), 지원서 1페이지 질문 가져오기)") | ||
Object getApplication( | ||
@PathVariable(required = false) Long applicationId, | ||
@RequestParam(required = false) Integer page, | ||
Principal principal); | ||
|
||
@Operation(summary = "지원서 저장하기 1페이지 -> GET application/으로 접근했을 때 사용") | ||
ResponseEntity<String> postApplicationPage1(@RequestBody ApplicationPage1PutRequest request, Principal principal); | ||
|
||
@Operation(summary = "지원서 저장하기 1페이지 -> GET application/{applicationId}으로 접근했을 때 사용") | ||
ResponseEntity<String> updateApplicationPage1(@PathVariable @Parameter(description = "지원서 ID") Long applicationId, @RequestBody ApplicationPage1PutRequest request, Principal principal); | ||
|
||
@Operation(summary = "지원서 저장하기 2페이지") | ||
ResponseEntity<String> updateApplicationPage2(@PathVariable @Parameter(description = "지원서 ID") Long applicationId, @RequestBody ApplicationPage2PutRequest request, Principal principal); | ||
|
||
@Operation(summary = "지원서 저장하기 3페이지") | ||
ResponseEntity<String> updateApplicationPage3(@PathVariable @Parameter(description = "지원서 ID") Long applicationId, @RequestBody ApplicationPage3PutRequest request, Principal principal); | ||
|
||
@Operation(summary = "지원서 저장하기 4페이지 -> 제출") | ||
ResponseEntity<String> updateApplicationPage4(@PathVariable @Parameter(description = "지원서 ID") Long applicationId, @RequestBody ApplicationPage4PutRequest request, Principal principal); | ||
|
||
} |
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
12 changes: 0 additions & 12 deletions
12
src/main/java/com/startlion/startlionserver/controller/HomeController.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
src/main/java/com/startlion/startlionserver/controller/InterviewApi.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.startlion.startlionserver.controller; | ||
|
||
|
||
import com.startlion.startlionserver.dto.response.interview.InterviewDetailResponse; | ||
import com.startlion.startlionserver.dto.response.interview.InterviewResponse; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
|
||
import java.util.List; | ||
|
||
@Tag(name = "[Interview] 인터뷰 관련 API") | ||
public interface InterviewApi { | ||
|
||
@Operation(summary = "interview 정보 조회") | ||
ResponseEntity<List<InterviewResponse>> getInterviews(@RequestParam(required = false) String part); | ||
|
||
@Operation(summary = "interviewId로 interview 정보 조회") | ||
ResponseEntity<InterviewDetailResponse> getInterviewById(@PathVariable Long interviewId); | ||
|
||
} |
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: 16 additions & 0 deletions
16
src/main/java/com/startlion/startlionserver/controller/InterviewFileUploadApi.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.startlion.startlionserver.controller; | ||
|
||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestPart; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
|
||
@Tag(name = "[Interview] 인터뷰 파일 업로드 관련 API") | ||
public interface InterviewFileUploadApi { | ||
|
||
@Operation(summary = "파일 업로드") | ||
ResponseEntity<String> uploadFile(@RequestPart MultipartFile file, @PathVariable Long interviewId); | ||
} |
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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/startlion/startlionserver/controller/PartApi.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.startlion.startlionserver.controller; | ||
|
||
import com.startlion.startlionserver.dto.response.part.PartResponse; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
|
||
@Tag(name = "[Part] 파트 관련 API") | ||
public interface PartApi { | ||
|
||
@Operation(summary = "part 정보 조회") | ||
@ApiResponses( | ||
value = { | ||
@ApiResponse(responseCode = "200", description = "성공"), | ||
@ApiResponse(responseCode = "404", description = "찾을 수 없음"), | ||
@ApiResponse(responseCode = "500", description = "서버 오류") | ||
} | ||
) | ||
ResponseEntity<PartResponse> getPart(@PathVariable String name); | ||
|
||
|
||
} |
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
15 changes: 15 additions & 0 deletions
15
src/main/java/com/startlion/startlionserver/controller/UserApi.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.startlion.startlionserver.controller; | ||
|
||
import com.startlion.startlionserver.dto.response.application.ApplicationListWithSubmittedResponse; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.http.ResponseEntity; | ||
|
||
import java.security.Principal; | ||
|
||
@Tag(name = "[User] 유저 관련 API") | ||
public interface UserApi { | ||
|
||
@Operation(summary = "내 정보 조회") | ||
ResponseEntity<ApplicationListWithSubmittedResponse> getApplicationList(Principal principal); | ||
} |
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
4 changes: 3 additions & 1 deletion
4
src/main/java/com/startlion/startlionserver/domain/PathType.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,2 +1,4 @@ | ||
package com.startlion.startlionserver.domain;public enum PathType { | ||
package com.startlion.startlionserver.domain; | ||
|
||
public enum PathType { | ||
} |
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
Oops, something went wrong.