19 lines
438 B
Go
19 lines
438 B
Go
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)
|
|
}
|