Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
19
native/desktop/maplefile/internal/usecase/user/getbyemail.go
Normal file
19
native/desktop/maplefile/internal/usecase/user/getbyemail.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package user
|
||||
|
||||
import (
|
||||
"codeberg.org/mapleopentech/monorepo/native/desktop/maplefile/internal/domain/user"
|
||||
)
|
||||
|
||||
type GetByEmailUseCase struct {
|
||||
userRepo user.Repository
|
||||
}
|
||||
|
||||
func ProvideGetByEmailUseCase(userRepo user.Repository) *GetByEmailUseCase {
|
||||
return &GetByEmailUseCase{
|
||||
userRepo: userRepo,
|
||||
}
|
||||
}
|
||||
|
||||
func (uc *GetByEmailUseCase) Execute(email string) (*user.User, error) {
|
||||
return uc.userRepo.GetByEmail(email)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue