update user command

pull/1532/head
AndrewZuo01 2 years ago
parent 5eec833c74
commit 35c5678a87

@ -3,6 +3,7 @@ package mgo
import ( import (
"context" "context"
"github.com/OpenIMSDK/protocol/user" "github.com/OpenIMSDK/protocol/user"
"github.com/OpenIMSDK/tools/log"
"time" "time"
"github.com/OpenIMSDK/tools/mgoutil" "github.com/OpenIMSDK/tools/mgoutil"
@ -122,6 +123,7 @@ func (u *UserMgo) GetUserCommands(ctx context.Context, userID string, Type int32
var commands []user.CommandInfoResp var commands []user.CommandInfoResp
for cursor.Next(ctx) { for cursor.Next(ctx) {
log.ZDebug(ctx, "mongo", cursor)
var commandInfo user.CommandInfoResp var commandInfo user.CommandInfoResp
// Define a struct that represents your MongoDB document structure // Define a struct that represents your MongoDB document structure

Loading…
Cancel
Save