account

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalAccountsCount

func GetTotalAccountsCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertAccount

func InsertAccount(dbConnPgx utils.PgxIface, account *Account) (int, error)

func InsertAccounts

func InsertAccounts(dbConnPgx utils.PgxIface, accounts []Account) error

func RemoveAccount

func RemoveAccount(dbConnPgx utils.PgxIface, accountID *int) error

func UpdateAccount

func UpdateAccount(dbConnPgx utils.PgxIface, account *Account) error

Types

type Account

type Account struct {
	ID             *int      `json:"id" db:"id"`                           //1
	UUID           string    `json:"uuid" db:"uuid"`                       //2
	Name           string    `json:"name" db:"name"`                       //3
	AlternateName  string    `json:"alternateName" db:"alternate_name"`    //4
	Address        string    `json:"address" db:"address"`                 //5
	NameFromSource string    `json:"nameFromSource" db:"name_from_source"` //6
	PortfolioID    *int      `json:"portfolioId" db:"portfolio_id"`        //7
	SourceID       *int      `json:"sourceId" db:"source_id"`              //8
	AccountTypeID  *int      `json:"accountTypeId" db:"account_type_id"`   //9
	Description    string    `json:"description" db:"description"`         //10
	CreatedBy      string    `json:"createdBy" db:"created_by"`            //11
	CreatedAt      time.Time `json:"createdAt" db:"created_at"`            //12
	UpdatedBy      string    `json:"updatedBy" db:"updated_by"`            //13
	UpdatedAt      time.Time `json:"updatedAt" db:"updated_at"`            //14
	ChainID        *int      `json:"chainId" db:"chain_id"`                //15
}

Asset

func GetAccount

func GetAccount(dbConnPgx utils.PgxIface, accountID *int) (*Account, error)

func GetAccountByAddress

func GetAccountByAddress(dbConnPgx utils.PgxIface, address string) (*Account, error)

func GetAccountByAlternateName

func GetAccountByAlternateName(dbConnPgx utils.PgxIface, altenateName string) (*Account, error)

func GetAccountList

func GetAccountList(dbConnPgx utils.PgxIface, ids []int) ([]Account, error)

func GetAccountListByPagination

func GetAccountListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]Account, error)

for refinedev

Jump to

Keyboard shortcuts

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