-
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.
feat: 이동봉사자, 이동봉사 중개 Entity 변경 적용 (#13)
- Loading branch information
1 parent
436e758
commit b9781d1
Showing
7 changed files
with
64 additions
and
47 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
25 changes: 0 additions & 25 deletions
25
src/main/java/com/pawwithu/connectdog/domain/auth/dto/request/SignUpRequest.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/main/java/com/pawwithu/connectdog/domain/auth/dto/request/VolunteerSignUpRequest.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,17 @@ | ||
package com.pawwithu.connectdog.domain.auth.dto.request; | ||
|
||
import com.pawwithu.connectdog.domain.volunteer.entity.Volunteer; | ||
import com.pawwithu.connectdog.domain.volunteer.entity.VolunteerRole; | ||
|
||
public record VolunteerSignUpRequest(String email, String password, String nickname, Boolean isOptionAgr) { | ||
|
||
public Volunteer toEntity() { | ||
return Volunteer.builder() | ||
.email(email) | ||
.password(password) | ||
.nickname(nickname) | ||
.isOptionAgr(isOptionAgr) | ||
.role(VolunteerRole.USER) | ||
.build(); | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...n/java/com/pawwithu/connectdog/domain/intermediary/repository/IntermediaryRepository.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,10 @@ | ||
package com.pawwithu.connectdog.domain.intermediary.repository; | ||
|
||
import com.pawwithu.connectdog.domain.intermediary.entity.Intermediary; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface IntermediaryRepository extends JpaRepository<Intermediary, Long> { | ||
|
||
Boolean existsByEmail(String email); | ||
Boolean existsByName(String name); | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/pawwithu/connectdog/domain/volunteer/repository/VolunteerRepository.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.pawwithu.connectdog.domain.volunteer.repository; | ||
|
||
import com.pawwithu.connectdog.domain.volunteer.entity.Volunteer; | ||
import com.pawwithu.connectdog.domain.volunteer.entity.SocialType; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.util.Optional; | ||
|
||
public interface VolunteerRepository extends JpaRepository<Volunteer, Long> { | ||
|
||
// 소셜 타입과 소셜의 식별값으로 회원 찾는 메소드 -> 추가 정보를 입력받아 회원가입 진행 시 이용 | ||
Optional<Volunteer> findBySocialTypeAndSocialId(SocialType socialType, String socialId); | ||
Boolean existsByEmail(String email); | ||
Boolean existsByNickname(String nickname); | ||
|
||
} |
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