upadted to 1.24.0; fixed stb and spiddped doubles in precene
This commit is contained in:
19
pkg/service/stb.go
Normal file
19
pkg/service/stb.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"git.amok.space/yevhen/resource-scraper/internal/mail"
|
||||
"git.amok.space/yevhen/resource-scraper/types/interface"
|
||||
"git.amok.space/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)
|
||||
}
|
||||
Reference in New Issue
Block a user