-
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.
- Loading branch information
Showing
13 changed files
with
125 additions
and
19 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
17 changes: 17 additions & 0 deletions
17
src/main/java/umc/kkijuk/server/introduce/controller/response/FindIntroduceResponse.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 umc.kkijuk.server.introduce.controller.response; | ||
|
||
import lombok.*; | ||
|
||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
|
||
@Data | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
public class FindIntroduceResponse { | ||
private Long introId; | ||
private String title; | ||
private String content; | ||
private LocalDateTime createdDate; | ||
} |
17 changes: 17 additions & 0 deletions
17
...ain/java/umc/kkijuk/server/introduce/controller/response/FindMasterIntroduceResponse.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 umc.kkijuk.server.introduce.controller.response; | ||
|
||
import lombok.*; | ||
|
||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
|
||
@Data | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
public class FindMasterIntroduceResponse { | ||
private Long masterIntroId; | ||
private String title; | ||
private String content; | ||
private LocalDateTime createdDate; | ||
} |
11 changes: 0 additions & 11 deletions
11
src/main/java/umc/kkijuk/server/introduce/domain/MasterIntroduceRepository.java
This file was deleted.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
src/main/java/umc/kkijuk/server/introduce/repository/MasterIntroduceRepository.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 umc.kkijuk.server.introduce.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
import umc.kkijuk.server.introduce.domain.MasterIntroduce; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface MasterIntroduceRepository extends JpaRepository<MasterIntroduce, Long> { | ||
Optional<MasterIntroduce> findByMemberId(Long memberId); | ||
@Query("SELECT m FROM MasterIntroduce m " + | ||
"JOIN m.masterQuestion mq " + | ||
"WHERE mq.content LIKE %:keyword%") | ||
List<MasterIntroduce> searchMasterIntroduceByKeyword(String keyword); | ||
} |
3 changes: 2 additions & 1 deletion
3
...duce/domain/MasterQuestionRepository.java → .../repository/MasterQuestionRepository.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,6 +1,7 @@ | ||
package umc.kkijuk.server.introduce.domain; | ||
package umc.kkijuk.server.introduce.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import umc.kkijuk.server.introduce.domain.MasterQuestion; | ||
|
||
public interface MasterQuestionRepository extends JpaRepository<MasterQuestion, Long> { | ||
} |
3 changes: 2 additions & 1 deletion
3
.../introduce/domain/QuestionRepository.java → ...roduce/repository/QuestionRepository.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
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
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