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