From 07b4240226ca1b075b3a0a10501ae7771ffee6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Wed, 7 Jan 2026 17:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96mongo=EF=BC=8C=E5=B0=81?= =?UTF-8?q?=E8=A3=85count=E9=80=BB=E8=BE=91=EF=BC=8C=E5=A4=84=E7=90=86obje?= =?UTF-8?q?ctId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mongo/mongo.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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