-
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.
GETP-188 fix: 같은 프로젝트에 중복으로 지원이 가능한 오류 수정 (#122)
- Loading branch information
Showing
8 changed files
with
89 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
operation::/apply-for-project/apply-for-project[snippets="http-request,request-headers,path-parameters,request-fields,http-response,response-fields-data"] |
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
14 changes: 14 additions & 0 deletions
14
src/main/java/es/princip/getp/domain/project/exception/AlreadyAppliedProjectException.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,14 @@ | ||
package es.princip.getp.domain.project.exception; | ||
|
||
import es.princip.getp.infra.exception.BusinessLogicException; | ||
import es.princip.getp.infra.exception.ErrorDescription; | ||
|
||
public class AlreadyAppliedProjectException extends BusinessLogicException { | ||
|
||
private static final String code = "ALREADY_APPLIED_PROJECT"; | ||
private static final String message = "이미 지원한 프로젝트입니다."; | ||
|
||
public AlreadyAppliedProjectException() { | ||
super(ErrorDescription.of(code, message)); | ||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
.../getp/domain/project/command/presentation/description/ApplyProjectRequestDescription.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,19 @@ | ||
package es.princip.getp.domain.project.command.presentation.description; | ||
|
||
import es.princip.getp.domain.project.command.presentation.dto.request.ApplyProjectRequest; | ||
import org.springframework.restdocs.payload.FieldDescriptor; | ||
|
||
import static es.princip.getp.infra.util.FieldDescriptorHelper.getDescriptor; | ||
|
||
public class ApplyProjectRequestDescription { | ||
|
||
public static FieldDescriptor[] description() { | ||
final Class<?> clazz = ApplyProjectRequest.class; | ||
return new FieldDescriptor[] { | ||
getDescriptor("expectedDuration.startDate", "예상 작업 시작 기간", clazz), | ||
getDescriptor("expectedDuration.endDate", "예상 작업 종료 기간", clazz), | ||
getDescriptor("description", "프로젝트 지원 설명", clazz), | ||
getDescriptor("attachmentFiles", "첨부 파일", clazz) | ||
}; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...getp/domain/project/command/presentation/description/ApplyProjectResponseDescription.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,14 @@ | ||
package es.princip.getp.domain.project.command.presentation.description; | ||
|
||
import org.springframework.restdocs.payload.FieldDescriptor; | ||
|
||
import static es.princip.getp.infra.util.FieldDescriptorHelper.getDescriptor; | ||
|
||
public class ApplyProjectResponseDescription { | ||
|
||
public static FieldDescriptor[] description() { | ||
return new FieldDescriptor[] { | ||
getDescriptor("applicationId", "프로젝트 지원 ID") | ||
}; | ||
} | ||
} |