Update method

This commit is contained in:
Eden Kirin
2024-06-26 11:24:58 +02:00
parent 450345ba6b
commit 326866dc49
2 changed files with 33 additions and 0 deletions

View File

@ -24,6 +24,7 @@ type RepoBase[T schema.Tabler] struct {
ExistsMethod[T]
CountMethod[T]
SaveMethod[T]
UpdateMethod[T]
DeleteMethod[T]
}
@ -51,6 +52,7 @@ func (m *RepoBase[T]) Init(dbConn *gorm.DB, options *RepoOptions) {
&m.ExistsMethod,
&m.CountMethod,
&m.SaveMethod,
&m.UpdateMethod,
&m.DeleteMethod,
}
m.InitMethods(methods)