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 }