feat: get news by slug and and author detail
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package newssvc
|
||||
|
||||
import newsdomain "legalgo-BE-go/internal/domain/news"
|
||||
|
||||
func (i *impl) GetBySlug(slug string) (*newsdomain.News, error) {
|
||||
return i.newsRepo.GetBySlug(slug)
|
||||
}
|
||||
@@ -15,6 +15,7 @@ type impl struct {
|
||||
|
||||
type News interface {
|
||||
GetAll() ([]newsdomain.News, error)
|
||||
GetBySlug(string) (*newsdomain.News, error)
|
||||
Create(newsdomain.NewsReq, string) error
|
||||
Delete(string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user