[feat] 命名更新

This commit is contained in:
what 2023-07-20 15:04:53 +08:00
parent 9683179bf8
commit 7616c8cdc9

View File

@ -203,6 +203,6 @@ func (this *Engine[T]) Execute(data T) error {
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}
}