-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ Path to Retrieve Last Message ID (#192)
* feat: impl last_message_id_save_service * feat: add message path about read_message * fix: outstream debug mesage level is changed from info to debug * rename: fix message_mapping end-point
- Loading branch information
1 parent
727c2df
commit f13722c
Showing
3 changed files
with
28 additions
and
1 deletion.
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
15 changes: 15 additions & 0 deletions
15
pennyway-socket/src/main/java/kr/co/pennyway/socket/service/LastMessageIdSaveService.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,15 @@ | ||
package kr.co.pennyway.socket.service; | ||
|
||
import kr.co.pennyway.domain.domains.chatstatus.service.ChatMessageStatusService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class LastMessageIdSaveService { | ||
private final ChatMessageStatusService chatMessageStatusService; | ||
|
||
public void execute(Long userId, Long chatRoomId, Long lastReadMessageId) { | ||
chatMessageStatusService.saveLastReadMessageId(userId, chatRoomId, lastReadMessageId); | ||
} | ||
} |