-
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.
Browse files
Browse the repository at this point in the history
✨ FEAT. 병원 방문 일정 조회
- Loading branch information
Showing
5 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
src/main/java/com/hsu/shimpyoo/domain/hospital/repository/HospitalVisitRepository.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,9 +1,13 @@ | ||
package com.hsu.shimpyoo.domain.hospital.repository; | ||
|
||
import com.hsu.shimpyoo.domain.hospital.entity.HospitalVisit; | ||
import com.hsu.shimpyoo.domain.user.entity.User; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
@Repository | ||
public interface HospitalVisitRepository extends JpaRepository<HospitalVisit, Long> { | ||
List<HospitalVisit> findByUserId(User userId); | ||
} |
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
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
30 changes: 30 additions & 0 deletions
30
src/main/java/com/hsu/shimpyoo/domain/hospital/web/dto/HospitalVisitDto.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,30 @@ | ||
package com.hsu.shimpyoo.domain.hospital.web.dto; | ||
|
||
import com.hsu.shimpyoo.domain.hospital.entity.Hospital; | ||
import com.hsu.shimpyoo.domain.user.entity.User; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class HospitalVisitDto { | ||
// 병원 방문 기본 키 | ||
private Long hospitalVisitId; | ||
|
||
// 방문할 병원 이름 | ||
private String hospitalName; | ||
|
||
// 방문할 병원 주소 | ||
private String hospitalAddress; | ||
|
||
// 방문할 병원의 연락처 | ||
private String hospitalPhoneNumber; | ||
|
||
// 방문할 시각 | ||
private LocalDateTime visitTime; | ||
} |