mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
refac: better error handling & moved IsOnline logic to cleaner place
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
package article
|
||||
|
||||
type Filters struct {
|
||||
IsOnline *bool
|
||||
}
|
||||
|
||||
type Repository interface {
|
||||
FindByFilters(filters Filters) ([]Article, error)
|
||||
Get(id uint32) (Article, error)
|
||||
GetByName(name string) (Article, error)
|
||||
GetAll() []Article
|
||||
|
||||
Reference in New Issue
Block a user