[feat] 命名更新
This commit is contained in:
parent
9683179bf8
commit
7616c8cdc9
@ -203,6 +203,6 @@ func (this *Engine[T]) Execute(data T) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewEngine[T any](table string, g contracts.GlobalParams, relations ...string) *Engine[T] {
|
func New[T any](table string, g contracts.GlobalParams, relations ...string) *Engine[T] {
|
||||||
return &Engine[T]{code: table, g: g, relations: relations}
|
return &Engine[T]{code: table, g: g, relations: relations}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user