[feat] Engine.New 参数调整
This commit is contained in:
parent
7616c8cdc9
commit
b481cfe969
@ -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}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user