kit/pkg/link/link_repository.go

12 lines
271 B
Go
Raw Normal View History

2023-10-25 08:49:59 +00:00
package link
// Repository represent the link repository contract
type Repository interface {
Store(a *Model) error
GetByHash(hash string) (*Model, error)
GetByID(id int64) (*Model, error)
Update(a *Model) error
GetAll() ([]*Model, error)
Delete(id int64) error
}