owl-blogs/app/repository/interfaces.go

13 lines
322 B
Go
Raw Normal View History

2023-06-25 18:04:06 +00:00
package repository
import "owl-blogs/domain/model"
type EntryRepository interface {
RegisterEntryType(entry model.Entry) error
Create(entry model.Entry) error
Update(entry model.Entry) error
Delete(entry model.Entry) error
FindById(id string) (model.Entry, error)
FindAll(types *[]string) ([]model.Entry, error)
}