From b481cfe969f07f526a1afc8418839a6dda2d1361 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 20 Jul 2023 15:32:11 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20Engine.New=20=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/engine.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/engine.go b/engine/engine.go index 9b072bb..da1299b 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -203,6 +203,6 @@ func (this *Engine[T]) Execute(data T) error { return nil } -func New[T any](table string, g contracts.GlobalParams, relations ...string) *Engine[T] { - return &Engine[T]{code: table, g: g, relations: relations} +func New[T any](table string, relations ...string) *Engine[T] { + return &Engine[T]{code: table, relations: relations} }