2024-09-09 03:32:10 +05:00

20 lines
365 B
Go

package widget
import (
"context"
widgetRepository "donat-widget/internal/repository/widget"
)
type Repository interface {
Create(ctx context.Context, userId int) (int, error)
}
type Service struct {
repository Repository
}
func New(pool widgetRepository.Pool) *Service {
repository := widgetRepository.New(pool)
return &Service{repository: repository}
}