domain

package
v0.0.0-...-b6cb40f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL