This commit is contained in:
2021-12-21 00:17:09 +01:00
commit 1506a57231
11 changed files with 187 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package download_request
import "downloader/internal/core/entities"
type Service interface {
Schedule(provider string, link string) (entities.Download, error)
Get(id string) (entities.Download, error)
}
type Repository interface {
Create(download entities.Download) (entities.Download, error)
GetById(id string) (entities.Download, error)
}