refactor: streamline conversation ID usage in message service methods

This commit is contained in:
mlogclub
2026-05-08 21:54:08 +08:00
parent 33b4caab03
commit 1a2550a089
2 changed files with 13 additions and 13 deletions
@@ -68,8 +68,7 @@ func (s *conversationEventLogService) Delete(id int64) {
repositories.ConversationEventLogRepository.Delete(sqls.DB(), id)
}
func (s *conversationEventLogService) CreateEvent(ctx *sqls.TxContext, conversationID int64, eventType enums.IMEventType,
operatorType enums.IMSenderType, operatorID int64, content, payload string) error {
func (s *conversationEventLogService) CreateEvent(ctx *sqls.TxContext, conversationID int64, eventType enums.IMEventType, operatorType enums.IMSenderType, operatorID int64, content, payload string) error {
return repositories.ConversationEventLogRepository.Create(ctx.Tx, &models.ConversationEventLog{
ConversationID: conversationID,
EventType: eventType,