Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateDTO ¶
Types ¶
type AccountOutput ¶
type AccountUseCase ¶
type AccountUseCase interface { ExecuteNewAccount(ctx context.Context, input NewAccountInput) (uuid.UUID, error) ExecuteDeposit(ctx context.Context, accountID uuid.UUID, value uint64) (uuid.UUID, error) ExecuteTransfer(ctx context.Context, payer, payee uuid.UUID, value uint64) (uuid.UUID, error) FindByID(ctx context.Context, accountID uuid.UUID) (*AccountOutput, error) FindAll(ctx context.Context) ([]*AccountOutput, error) ExecuteSnapshotTransaction(ctx context.Context, accountID uuid.UUID) ExecuteLogin(ctx context.Context, email, password string) (*entity.ResumeAccount, error) }
func NewAccountUseCase ¶
func NewAccountUseCase(r gateway.AccountRepository, m gateway.Mutex, n gateway.NotificationService, a gateway.AuthorizationService, ch chan uuid.UUID) AccountUseCase
type NewAccountInput ¶
type NewAccountInput struct { Name string `json:"customer_name" validate:"required"` Email string `json:"email" validate:"required"` Password string `json:"password" validate:"required"` Type string `json:"account_type" validate:"required"` DocumentNumber string `json:"document_number" validate:"required"` PhoneNumber string `json:"phone_number" validate:"required"` }
Click to show internal directories.
Click to hide internal directories.