Documentation ¶
Index ¶
- func GetTotalTransactionsCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertTransaction(dbConnPgx utils.PgxIface, transaction *Transaction) (int, error)
- func InsertTransactions(dbConnPgx utils.PgxIface, transactions []Transaction) error
- func RemoveTransaction(dbConnPgx utils.PgxIface, transactionID *int) error
- func UpdateTransaction(dbConnPgx utils.PgxIface, transaction *Transaction) error
- type Attrs
- type Transaction
- func GetStartAndEndDateDiffTransactions(dbConnPgx utils.PgxIface, diffInDate *int) ([]Transaction, error)
- func GetTransaction(dbConnPgx utils.PgxIface, transactionID *int) (*Transaction, error)
- func GetTransactions(dbConnPgx utils.PgxIface, ids []int) ([]Transaction, error)
- func GetTransactionsByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]Transaction, error)
- func GetTransactionsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertTransaction ¶
func InsertTransaction(dbConnPgx utils.PgxIface, transaction *Transaction) (int, error)
func InsertTransactions ¶
func InsertTransactions(dbConnPgx utils.PgxIface, transactions []Transaction) error
func UpdateTransaction ¶
func UpdateTransaction(dbConnPgx utils.PgxIface, transaction *Transaction) error
Types ¶
type Transaction ¶
type Transaction 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 StartDate time.Time `json:"startDate" db:"start_date"` //5 EndDate time.Time `json:"endDate" db:"end_date"` //6 Description string `json:"description" db:"description"` //7 TxHash string `json:"txHash" db:"tx_hash"` //8 StatusID *int `json:"statusId" db:"status_id"` //9 FromAccountID *int `json:"fromAccountId" db:"from_account_id"` //10 ToAccountID *int `json:"toAccountId" db:"to_account_id"` //11 ChainID *int `json:"chainId" db:"chain_id"` //12 CreatedBy string `json:"createdBy" db:"created_by"` //13 CreatedAt time.Time `json:"createdAt" db:"created_at"` //14 UpdatedBy string `json:"updatedBy" db:"updated_by"` //15 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //16 }
Transaction
func GetStartAndEndDateDiffTransactions ¶
func GetStartAndEndDateDiffTransactions(dbConnPgx utils.PgxIface, diffInDate *int) ([]Transaction, error)
func GetTransaction ¶
func GetTransaction(dbConnPgx utils.PgxIface, transactionID *int) (*Transaction, error)
func GetTransactions ¶
func GetTransactions(dbConnPgx utils.PgxIface, ids []int) ([]Transaction, error)
func GetTransactionsByPagination ¶
func GetTransactionsByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]Transaction, error)
for refinedev
func GetTransactionsByUUIDs ¶
func GetTransactionsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]Transaction, error)
Click to show internal directories.
Click to hide internal directories.