Files
resource-scraper/pkg/service/stb.go
2025-10-06 12:28:15 +03:00

20 lines
566 B
Go

package service
import (
"git.kplus.net.ua/yevhen/resource-scraper/internal/mail"
"git.kplus.net.ua/yevhen/resource-scraper/types/interface"
"git.kplus.net.ua/yevhen/resource-scraper/types/model"
)
type ShareTheBrutalityService struct {
repo _interface.ShareTheBrutality
}
func NewShareTheBrutalityService(repo _interface.ShareTheBrutality) *ShareTheBrutalityService {
return &ShareTheBrutalityService{repo: repo}
}
func (stb *ShareTheBrutalityService) GetMail(email string) ([]model.ExternalSources, *mail.EmailService) {
return stb.repo.GetMail(email)
}