Documentation
¶
Index ¶
- func NewAccountUseCase(connect *sql.DB, logger *zap.SugaredLogger) domain.AccountUseCase
- type AccountUseCase
- func (a AccountUseCase) CreateAccount(ctx context.Context, dto domain.CreateAccountDto) (uuid.UUID, error)
- func (a AccountUseCase) GetAccount(ctx context.Context, email string) (*domain.Account, error)
- func (a AccountUseCase) SetLastLogin(ctx context.Context, userID uuid.UUID) error
- func (a AccountUseCase) UpdateAccount(ctx context.Context, account *domain.Account) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountUseCase ¶
func NewAccountUseCase(connect *sql.DB, logger *zap.SugaredLogger) domain.AccountUseCase
NewAccountUseCase - constructor function
Types ¶
type AccountUseCase ¶
type AccountUseCase struct {
// contains filtered or unexported fields
}
AccountUseCase is a implementation of domain.AccountUseCase
func (AccountUseCase) CreateAccount ¶
func (a AccountUseCase) CreateAccount(ctx context.Context, dto domain.CreateAccountDto) (uuid.UUID, error)
CreateAccount - method to create user's account
func (AccountUseCase) GetAccount ¶
GetAccount returns joined data from "accounts" and "authenticators" tables
func (AccountUseCase) SetLastLogin ¶
func (AccountUseCase) UpdateAccount ¶
UpdateAccount is a update account and authenticator method
Click to show internal directories.
Click to hide internal directories.