This commit is contained in:
Andrey Chervyakov 2021-03-17 18:54:45 +06:00
parent e426559cec
commit ddaf0dcbfc
6 changed files with 42 additions and 40 deletions

View file

@ -14,12 +14,12 @@ type Service interface {
}
type PgService struct {
rep PgRepository
rep Repository
cache *cache.Cache
}
func NewPgService(rep PgRepository) PgService {
return PgService{
func NewService(rep Repository) Service {
return &PgService{
rep: rep,
cache: cache.New(cache.NoExpiration, 0),
}