domain

package
v0.0.0-...-400441b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 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 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.

Jump to

Keyboard shortcuts

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