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} }