Update method
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user