-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from PawWithU/feat/222-get-my-info-api
[Feature] 모집자, 봉사자 내 정보 관리 및 모집자명 중복 확인 API 구현
- Loading branch information
Showing
15 changed files
with
165 additions
and
16 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
7 changes: 7 additions & 0 deletions
7
src/main/java/com/pawwithu/connectdog/domain/auth/dto/request/IntermediaryNameRequest.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,7 @@ | ||
package com.pawwithu.connectdog.domain.auth.dto.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record IntermediaryNameRequest(@NotBlank(message = "모집자명은 필수 입력 값입니다.") | ||
String name) { | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/pawwithu/connectdog/domain/auth/dto/response/IntermediaryNameResponse.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,8 @@ | ||
package com.pawwithu.connectdog.domain.auth.dto.response; | ||
|
||
public record IntermediaryNameResponse(Boolean isDuplicated) { | ||
public static IntermediaryNameResponse of(Boolean isDuplicated){ | ||
return new IntermediaryNameResponse(isDuplicated); | ||
} | ||
} | ||
|
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
9 changes: 9 additions & 0 deletions
9
...thu/connectdog/domain/intermediary/dto/response/IntermediaryGetMySettingInfoResponse.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,9 @@ | ||
package com.pawwithu.connectdog.domain.intermediary.dto.response; | ||
|
||
import com.pawwithu.connectdog.domain.intermediary.entity.Intermediary; | ||
|
||
public record IntermediaryGetMySettingInfoResponse(String realName, String phone, String email) { | ||
public static IntermediaryGetMySettingInfoResponse from(Intermediary intermediary) { | ||
return new IntermediaryGetMySettingInfoResponse(intermediary.getRealName(), intermediary.getPhone(), intermediary.getEmail()); | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
.../pawwithu/connectdog/domain/volunteer/dto/response/VolunteerGetMySettingInfoResponse.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,9 @@ | ||
package com.pawwithu.connectdog.domain.volunteer.dto.response; | ||
|
||
import com.pawwithu.connectdog.domain.volunteer.entity.SocialType; | ||
|
||
public record VolunteerGetMySettingInfoResponse(String name, String phone, SocialType socialType, String email) { | ||
public static VolunteerGetMySettingInfoResponse of(String name, String phone, SocialType socialType, String email){ | ||
return new VolunteerGetMySettingInfoResponse(name, phone, socialType, email); | ||
} | ||
} |
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.