-
Notifications
You must be signed in to change notification settings - Fork 5
feat/#649 운영 서포터즈 구성원 수정 API 구현 #661
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
...n/java/org/ject/support/admin/member/dto/command/EditMemberSupportersActivityCommand.java
This file contains hidden or 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 org.ject.support.admin.member.dto.command; | ||
|
|
||
| import java.time.LocalDate; | ||
|
|
||
| import org.ject.support.admin.member.dto.request.UpdateMemberSupportersRequest; | ||
| import org.ject.support.domain.member.JobFamily; | ||
| import org.ject.support.domain.recruit.domain.RecruitTypeDetail; | ||
|
|
||
| public record EditMemberSupportersActivityCommand( | ||
| JobFamily jobFamily, | ||
| RecruitTypeDetail recruitTypeDetail, | ||
| LocalDate startDate, | ||
| LocalDate endDate, | ||
| String memo | ||
| ) { | ||
| public static EditMemberSupportersActivityCommand from(UpdateMemberSupportersRequest request) { | ||
| return new EditMemberSupportersActivityCommand( | ||
| request.jobFamily(), | ||
| request.recruitTypeDetail(), | ||
| request.startDate(), | ||
| request.endDate(), | ||
| request.memo() | ||
| ); | ||
| } | ||
| } |
54 changes: 54 additions & 0 deletions
54
src/main/java/org/ject/support/admin/member/dto/request/UpdateMemberSupportersRequest.java
This file contains hidden or 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,54 @@ | ||
| package org.ject.support.admin.member.dto.request; | ||
|
|
||
| import java.time.LocalDate; | ||
|
|
||
| import org.ject.support.domain.member.ActivityStatus; | ||
| import org.ject.support.domain.member.JobFamily; | ||
| import org.ject.support.domain.recruit.domain.RecruitTypeDetail; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.Email; | ||
| import jakarta.validation.constraints.Pattern; | ||
| import jakarta.validation.constraints.Size; | ||
|
|
||
| @Schema(description = "운영 서포터즈 구성원 수정 요청. 전달하지 않은 항목은 기존 값 유지") | ||
| public record UpdateMemberSupportersRequest( | ||
|
|
||
| @Schema(description = "이름", example = "김젝트", maxLength = 20, nullable = true) | ||
| @Size(max = 20, message = "이름은 20자 이하로 입력해주세요.") | ||
| @Pattern(regexp = "^[^\\s]+$", message = "이름은 공백없이 입력해주세요") | ||
| String name, | ||
|
|
||
| @Schema(description = "전화번호", example = "01012345678", nullable = true) | ||
| @Pattern(regexp = "^010\\d{8}$", message = "010으로 시작하는 11자리 숫자를 입력해주세요.") | ||
| String phoneNumber, | ||
|
|
||
| @Schema(description = "이메일", example = "supporter@ject.kr", maxLength = 30, nullable = true) | ||
| @Email(message = "올바른 이메일 형식이 아닙니다.") | ||
| @Size(max = 30, message = "이메일은 30자 이하로 입력해주세요.") | ||
| String email, | ||
|
|
||
| @Schema(description = "직군", example = "OPS", allowableValues = {"OPS", "INFRA", "BX", "ER"}, nullable = true) | ||
| JobFamily jobFamily, | ||
|
|
||
| @Schema(description = "모집 단위", example = "REGULAR", allowableValues = {"REGULAR", "NEW", "REFILL"}, nullable = true) | ||
| RecruitTypeDetail recruitTypeDetail, | ||
|
|
||
| @Schema(description = "활동 상태", example = "ACTIVE", allowableValues = {"ACTIVE", "ENDED", "DROPOUT"}, nullable = true) | ||
| ActivityStatus activityStatus, | ||
|
|
||
| @Schema(description = "활동 시작일", example = "2026-01-01", nullable = true) | ||
| LocalDate startDate, | ||
|
|
||
| @Schema(description = "활동 종료일", example = "2026-12-31", nullable = true) | ||
| LocalDate endDate, | ||
|
|
||
| @Schema(description = "활동 증명서 번호", example = "JECT-SUPPORTERS-001", maxLength = 20, nullable = true) | ||
| @Size(max = 20, message = "활동 증명서 번호는 20자 이하로 입력해주세요.") | ||
| String activityCertNumber, | ||
|
|
||
| @Schema(description = "비고", example = "차기 활동 참여 희망", maxLength = 100, nullable = true) | ||
| @Size(max = 100, message = "비고는 100자 이하로 입력해주세요.") | ||
| String memo | ||
| ) { | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.