[feat] Engine.New 参数调整

This commit is contained in:
what 2023-07-20 15:32:11 +08:00
parent 7616c8cdc9
commit b481cfe969

View File

@ -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}
}