Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 343 Bytes
package usecase
import (
"cleanarchitecture-sample/domain"
"cleanarchitecture-sample/usecase/interfaces"
)
type UserInteractor struct {
UserRepository interfaces.UserRepository
Logger interfaces.Logger
}
func (i *UserInteractor) Add(u domain.User) (int, error) {
i.Logger.Log("store user!")
return i.UserRepository.Store(u)
}