mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-12 21:16:00 +08:00
m
This commit is contained in:
Vendored
+2
@@ -157,11 +157,13 @@ func (c *msgCache) getSeqs(ctx context.Context, items []string, getkey func(s st
|
||||
}
|
||||
m = make(map[string]int64, len(items))
|
||||
for i, v := range result {
|
||||
log.ZDebug(ctx, "getSeqs", "v", v)
|
||||
if v.Err() != nil && err != redis.Nil {
|
||||
return nil, errs.Wrap(v.Err())
|
||||
}
|
||||
m[items[i]] = utils.StringToInt64(v.String())
|
||||
}
|
||||
log.ZDebug(ctx, "getSeqs", "m", m)
|
||||
return m, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ type ConversationModel struct {
|
||||
Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"`
|
||||
MaxSeq int64 `gorm:"column:max_seq" json:"maxSeq"`
|
||||
MinSeq int64 `gorm:"column:min_seq" json:"minSeq"`
|
||||
IsReadSeq int64 `gorm:"column:is_read_seq" json:"isReadSeq"`
|
||||
}
|
||||
|
||||
func (ConversationModel) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user