refac: better error handling & moved IsOnline logic to cleaner place
This commit is contained in:
1 parent
b50efae8a8
commit
5282770caa
6 files changed
+120
-46
No files matched your search
@@ -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