transactionasset

package
v2.0.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalTransactionAssetsCount

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

func InsertTransactionAsset

func InsertTransactionAsset(dbConnPgx utils.PgxIface, transactionAsset *TransactionAsset) (int, int, error)

func InsertTransactionAssets

func InsertTransactionAssets(dbConnPgx utils.PgxIface, transactionAssets []TransactionAsset) error

func RemoveTransactionAsset

func RemoveTransactionAsset(dbConnPgx utils.PgxIface, transactionID, assetID *int) error

func RemoveTransactionAssetByUUID

func RemoveTransactionAssetByUUID(dbConnPgx utils.PgxIface, transactionAssetUUID string) error

func UpdateTransactionAsset

func UpdateTransactionAsset(dbConnPgx utils.PgxIface, transactionAsset *TransactionAsset) error

func UpdateTransactionAssetByUUID

func UpdateTransactionAssetByUUID(dbConnPgx utils.PgxIface, transactionAsset *TransactionAsset) error

Types

type Attrs

type Attrs map[string]interface{}

func (*Attrs) Scan

func (a *Attrs) Scan(value interface{}) error

func (Attrs) Value

func (a Attrs) Value() (driver.Value, error)

type TransactionAsset

type TransactionAsset struct {
	TransactionID         *int      `json:"transactionId" db:"transaction_id"`                   //1
	AssetID               *int      `json:"assetId" db:"asset_id"`                               //2
	UUID                  string    `json:"uuid" db:"uuid"`                                      //3
	Name                  string    `json:"name" db:"name"`                                      //4
	AlternateName         string    `json:"alternateName" db:"alternate_name"`                   //5
	Description           string    `json:"description" db:"description"`                        //6
	Quantity              *float64  `json:"quantity" db:"quantity"`                              //7
	QuantityUSD           *float64  `json:"quantityUsd" db:"quantity_usd"`                       //8
	MarketDataID          *int      `json:"marketDataId" db:"market_data_id"`                    //9
	ManualExchangeRateUSD *float64  `json:"manualExchangeRateUsd" db:"manual_exchange_rate_usd"` //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
}

Asset

func GetTransactionAsset

func GetTransactionAsset(dbConnPgx utils.PgxIface, transactionID, assetID *int) (*TransactionAsset, error)

func GetTransactionAssetByUUID

func GetTransactionAssetByUUID(dbConnPgx utils.PgxIface, transactionAssetUUID string) (*TransactionAsset, error)

func GetTransactionAssetListByPagination

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

for refinedev

func GetTransactionAssets

func GetTransactionAssets(dbConnPgx utils.PgxIface) ([]TransactionAsset, error)

func GetTransactionAssetsByUUIDs

func GetTransactionAssetsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]TransactionAsset, error)

Jump to

Keyboard shortcuts

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