diff --git a/mongo/mongo.go b/mongo/mongo.go index 5e92b80..3f2141a 100644 --- a/mongo/mongo.go +++ b/mongo/mongo.go @@ -229,9 +229,9 @@ const PageSize = 20 // Find 查询多条记录 func (m *MongoDB) Find(ctx context.Context, filter bson.M, result interface{}, collection string, page *beans.Page, orderBy []beans.OrderBy) (total int64, err error) { - //if err = utils.ValidStructPtr(result); err != nil { - // return - //} + if err = utils.ValidStructPtr(result); err != nil { + return + } user, err := utils.GetUserInfo(ctx) if err != nil { return