update_account

package
v0.0.0-...-4d895cd Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetByID(ctx context.Context, accountID uint64) (*entities.Account, error)
	Update(ctx context.Context, account *entities.Account) (*entities.Account, error)
}

type UpdateAccountUseCase

type UpdateAccountUseCase struct {
	// contains filtered or unexported fields
}

func NewUseCase

func NewUseCase(repo Repository) *UpdateAccountUseCase

func (*UpdateAccountUseCase) Execute

func (u *UpdateAccountUseCase) Execute(
	ctx context.Context,
	ID uint64,
	name string,
	description *string,
	balance currency.Amount,
) (bool, error)

Execute Можно обновить только имя, описание и баланс.

Jump to

Keyboard shortcuts

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