fix type = 0

pull/1681/head
AndrewZuo01 2 years ago
parent 274c63eb5e
commit c8a7231081

@ -186,17 +186,11 @@ func (u *UserMgo) GetAllUserCommand(ctx context.Context, userID string) ([]*user
Value string `bson:"value"` Value string `bson:"value"`
CreateTime int64 `bson:"createTime"` CreateTime int64 `bson:"createTime"`
} }
var documents struct {
Type int64 `bson:"type"`
UUID string `bson:"uuid"`
Value string `bson:"value"`
CreateTime int64 `bson:"createTime"`
}
log.ZDebug(ctx, "usercommandget", document, documents)
if err := cursor.Decode(&document); err != nil { if err := cursor.Decode(&document); err != nil {
return nil, err return nil, err
} }
log.ZDebug(ctx, "usercommandget", "docuemnt", document)
commandInfo := &user.AllCommandInfoResp{ commandInfo := &user.AllCommandInfoResp{
Type: document.Type, Type: document.Type,
Uuid: document.UUID, Uuid: document.UUID,

Loading…
Cancel
Save