Created
December 26, 2019 22:12
-
-
Save L04DB4L4NC3R/0f6862642ff871b1a754af9829c2ac18 to your computer and use it in GitHub Desktop.
Clean Arch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package user | |
import ( | |
"context" | |
) | |
type Repository interface { | |
FindByID(ctx context.Context, id uint) (*User, error) | |
BuildProfile(ctx context.Context, user *User) (*User, error) | |
CreateMinimal(ctx context.Context, email, password, phoneNumber string) (*User, error) | |
FindByEmailAndPassword(ctx context.Context, email, password string) (*User, error) | |
FindByEmail(ctx context.Context, email string) (*User, error) | |
DoesEmailExist(ctx context.Context, email string) (bool, error) | |
ChangePassword(ctx context.Context, email, password string) error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment