preset scraper added

This commit is contained in:
2024-09-10 15:57:48 +03:00
parent bfdfc634e4
commit 0ecf0ddec1
38 changed files with 790 additions and 167 deletions

18
pkg/service/prescene.go Normal file
View File

@@ -0,0 +1,18 @@
package service
import (
"git.amok.space/yevhen/resource-scraper/types/interface"
"git.amok.space/yevhen/resource-scraper/types/model"
)
type PresceneService struct {
repo _interface.Prescene
}
func NewPresceneService(repo _interface.Prescene) *PresceneService {
return &PresceneService{repo: repo}
}
func (p *PresceneService) GetPage(pageNumbers []string) ([]model.ExternalSources, error) {
return p.repo.GetPage(pageNumbers)
}