feat: get news by slug and and author detail
This commit is contained in:
@@ -11,6 +11,7 @@ type accessor struct {
|
||||
|
||||
type News interface {
|
||||
GetAll() ([]newsdomain.News, error)
|
||||
GetBySlug(string) (*newsdomain.News, error)
|
||||
Create(newsdomain.News) error
|
||||
Delete(string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user