transfer

package
v0.0.0-...-20a34b2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-2.0 Imports: 2 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 {
	Store(*Transfer) error
	GetById(string) (Transfer, error)
	ListByAccId(string) ([]Transfer, error)
	GenerateId() string
	Transaction(driver.Tx) Repository
}

type Service

type Service interface {
	Transfer(Account_origin_id string, Account_destination_id string, amount int) (Transfer, error)
	ShowAllAccountTransfers(Account_Id string) ([]Transfer, error)
}

type Transfer

type Transfer struct {
	Id                     string    `json:"id"`
	Account_origin_id      string    `json:"account_origin_id"`
	Account_destination_id string    `json:"account_destination_id"`
	Amount                 int       `json:"amount"`
	Created_at             time.Time `json:"created_at"`
}

func NewTransfer

func NewTransfer(Account_origin_id string, Account_destination_id string, Amount int) *Transfer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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