获取session添加该会话消息数量参数
This commit is contained in:
parent
2731a5dfec
commit
4063c72166
|
|
@ -30,6 +30,8 @@ func FindSessionByUserID(userID int) []proto.SessionResponse {
|
|||
for _, v := range sessions {
|
||||
var session proto.SessionResponse
|
||||
session.ID = v.ID
|
||||
session.CreatedAt = v.CreatedAt
|
||||
session.UpdatedAt = v.UpdatedAt
|
||||
session.Name = v.Name
|
||||
session.UserID = v.UserID
|
||||
session.MsgCount = smap[int(v.ID)]
|
||||
|
|
|
|||
Loading…
Reference in New Issue