DengBiao pirms 1 gada
vecāks
revīzija
b4d73faf99
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. +7
    -0
      internal/logic/domain/message/repo/message_repo.go

+ 7
- 0
internal/logic/domain/message/repo/message_repo.go Parādīt failu

@@ -2,6 +2,7 @@ package repo

import (
"fmt"
"gim/internal/business/comm/utils"
"gim/internal/logic/domain/message/model"
"gim/pkg/db"
"gim/pkg/gerrors"
@@ -66,6 +67,12 @@ func (d *messageRepo) GetMessageSeqForSendTime(userId int64, sendTime time.Time)
First(&message).Error; err != nil {
return 0, gerrors.WrapError(err)
}
utils.FilePutContents("GetMessageSeqForSendTime", utils.SerializeStr(map[string]interface{}{
"userId": userId,
"sendTime": sendTime,
"message": message,
"seq": message.Seq,
}))
return message.Seq, nil
}



Notiek ielāde…
Atcelt
Saglabāt