diff --git a/src/main/java/com/gdg/kkia/chatbot/service/ChatbotResponseService.java b/src/main/java/com/gdg/kkia/chatbot/service/ChatbotResponseService.java index 48bd40f..a0ef236 100644 --- a/src/main/java/com/gdg/kkia/chatbot/service/ChatbotResponseService.java +++ b/src/main/java/com/gdg/kkia/chatbot/service/ChatbotResponseService.java @@ -8,6 +8,7 @@ import com.gdg.kkia.member.entity.Member; import com.gdg.kkia.member.repository.MemberRepository; import com.gdg.kkia.chatbot.entity.ChatbotResponse; +import com.gdg.kkia.point.service.PointLogService; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -22,6 +23,7 @@ public class ChatbotResponseService { private final ChatbotResponseRepository chatbotResponseRepository; private final MemberRepository memberRepository; + private final PointLogService pointLogService; @Transactional public void saveChatbotResponses(Long memberId, GeminiRequestType type, List conversations) { @@ -47,6 +49,7 @@ public void saveChatbotResponses(Long memberId, GeminiRequestType type, List prompt) { String requestUrl = apiUrl + "?key=" + geminiApiKey; @@ -157,8 +155,7 @@ public ChatResponse startChat(Long memberId, GeminiRequestType type, List ATTENDANCE_LISTS = Arrays.asList( PointLog.Type.ATTENDANCE_DAY_1,