From 3749f04e6acdbc467bb588c574c9470af2be8688 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Tue, 21 Nov 2023 11:49:29 +0800 Subject: [PATCH] =?UTF-8?q?3D=E6=A8=A1=E5=9E=8B=E6=95=B0=E6=8D=AE=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=A4=87=E4=BB=BD=E9=95=9C=E5=83=8F=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/gmodel/fs_product_model3d_light_logic.go | 2 +- model/gmodel/fs_tool_logs_logic.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/model/gmodel/fs_product_model3d_light_logic.go b/model/gmodel/fs_product_model3d_light_logic.go index c9c77270..0f3f3592 100755 --- a/model/gmodel/fs_product_model3d_light_logic.go +++ b/model/gmodel/fs_product_model3d_light_logic.go @@ -3,7 +3,7 @@ package gmodel import "context" func (t *FsProductModel3dLightModel) FindAll(ctx context.Context) (resp []FsProductModel3dLight, err error) { - err = t.db.WithContext(ctx).Model(&FsProductModel3dLight{}).Limit(10).Find(&resp).Error + err = t.db.WithContext(ctx).Model(&FsProductModel3dLight{}).Find(&resp).Error return resp, err } func (l *FsProductModel3dLightModel) FindOne(ctx context.Context, id int64) (resp *FsProductModel3dLight, err error) { diff --git a/model/gmodel/fs_tool_logs_logic.go b/model/gmodel/fs_tool_logs_logic.go index 1a4ca200..092beb5e 100644 --- a/model/gmodel/fs_tool_logs_logic.go +++ b/model/gmodel/fs_tool_logs_logic.go @@ -4,6 +4,6 @@ import "context" // TODO: 使用model的属性做你想做的 func (t *FsToolLogsModel) FindAll(ctx context.Context) (resp []FsToolLogs, err error) { - err = t.db.WithContext(ctx).Model(&FsToolLogs{}).Limit(10).Find(&resp).Error + err = t.db.WithContext(ctx).Model(&FsToolLogs{}).Find(&resp).Error return resp, err }