-
Notifications
You must be signed in to change notification settings - Fork 0
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 #58 from IT-Cotato/feat/chat-bot-#24
Feat : 챗봇 기능을 수정합니다 (#24)
- Loading branch information
Showing
4 changed files
with
60 additions
and
5 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
5 changes: 4 additions & 1 deletion
5
src/main/java/com/ripple/BE/chatbot/repository/ChatbotRepository.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,12 +1,15 @@ | ||
package com.ripple.BE.chatbot.repository; | ||
|
||
import com.ripple.BE.chatbot.domain.ChatMessage; | ||
import java.time.LocalDateTime; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface ChatbotRepository extends JpaRepository<ChatMessage, Long> { | ||
Page<ChatMessage> findAllByUserIdOrderByCreatedDate(Long userId, Pageable pageable); | ||
Page<ChatMessage> findAllByUserIdOrderByCreatedDateDesc(Long userId, Pageable pageable); | ||
|
||
void deleteAllByUserId(Long userId); | ||
|
||
void deleteAllByCreatedDateBefore(LocalDateTime createdDate); | ||
} |
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