Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepository ¶
type AuthRepository interface { // create store a new User Create(ctx context.Context, user *userDom.User) error // GetbyPhoneNumber retuns the User with the specified phone number GetbyPhoneNumber(ctx context.Context, phoneNumber string) (*userDom.User, error) }
AuthRepository is an interface that provides acces to the user storage
type AuthUseCase ¶
type AuthUseCase interface { // REgister stores a new user Register(ctx context.Context, user *userDom.User) error // login retuns User data and access token. Login(ctx context.Context, phoneNumber, password string) (*userDom.User, *cityDom.City, *provDom.Province, string, error) }
AuthUseCase is an interface that proides business logic for User
Click to show internal directories.
Click to hide internal directories.