Add in progress
This commit is contained in:
@@ -51,3 +51,7 @@ func (l *localService) Schedule(link string) (*entities.Download, error) {
|
||||
func (l *localService) Get(id string) (*entities.Download, error) {
|
||||
return l.repository.GetById(id)
|
||||
}
|
||||
|
||||
func (l *localService) GetAll(active bool) ([]*entities.Download, error) {
|
||||
return l.repository.Get(active)
|
||||
}
|
||||
|
@@ -5,4 +5,5 @@ import "downloader/internal/core/entities"
|
||||
type Service interface {
|
||||
Schedule(link string) (*entities.Download, error)
|
||||
Get(id string) (*entities.Download, error)
|
||||
GetAll(active bool) ([]*entities.Download, error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user