contract

package
v0.0.0-...-6dfac28 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountStore

type AccountStore interface {
	ListAccount(offset, limit int, nameSearch *string) ([]model.Account, int, error)
	CreateAccount(name string) (model.Account, error)
	GetAccountDetails(id int) (model.Account, error)
}

type TransactionStore

type TransactionStore interface {
	GetTransactionDetailsbyID(transactionID int) (model.Transaction, error)
	GetTransactionDetailsbyCode(transactionCode string) (model.Transaction, error)
	ListTransaction(offset, limit int, startTime time.Time, endTime time.Time, accountID []int) ([]model.Transaction, int, error)
	CreateTransaction(accountFrom int, accountTo int, amount int, remarks string) (model.Transaction, error)
}

Jump to

Keyboard shortcuts

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