|
|
@@ -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 |
|
|
|
} |
|
|
|
|
|
|
|