@@ -28,12 +28,13 @@ public class AiMessageService {
2828 @ Value ("${rabbitmq.queue.save-data}" )
2929 private String saveDataQueue ;
3030
31- public GetThumbnailAndKeywordsResponseDTO analyzeHtmlFile (Long userId , String htmlFileKey ) {
31+ public GetThumbnailAndKeywordsResponseDTO analyzeHtmlFile (Long userId , String htmlFileKey , String siteUrl ) {
3232 try {
3333 // 1. 요청 메시지 생성
3434 Map <String , Object > message = new HashMap <>();
3535 message .put ("s3_key" , htmlFileKey );
3636 message .put ("user_id" , userId );
37+ message .put ("url" , siteUrl );
3738
3839 // 2. JSON 문자열로 변환
3940 String jsonMessage = objectMapper .writeValueAsString (message );
@@ -55,7 +56,7 @@ public GetThumbnailAndKeywordsResponseDTO analyzeHtmlFile(Long userId, String ht
5556 }
5657 }
5758
58- public void sendStarData (Long userId , Star star , String s3key , String userMemo , String summaryAI , List <String > keywordList ){
59+ public void sendStarData (Long userId , Star star , String s3key , String userMemo , String summaryAI , List <String > keywordList , String title , String siteUrl ){
5960 try {
6061 Map <String , Object > message = new HashMap <>();
6162 message .put ("userId" , userId );
@@ -64,6 +65,8 @@ public void sendStarData(Long userId, Star star, String s3key, String userMemo,
6465 message .put ("memo" , userMemo );
6566 message .put ("summary" , summaryAI );
6667 message .put ("keywords" , keywordList );
68+ message .put ("title" , title );
69+ message .put ("url" , siteUrl );
6770
6871 String jsonMessage = objectMapper .writeValueAsString (message );
6972
0 commit comments