Documentation ¶
Index ¶
- func GetTotalTransactionAssetsCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertTransactionAsset(dbConnPgx utils.PgxIface, transactionAsset *TransactionAsset) (int, int, error)
- func InsertTransactionAssets(dbConnPgx utils.PgxIface, transactionAssets []TransactionAsset) error
- func RemoveTransactionAsset(dbConnPgx utils.PgxIface, transactionID, assetID *int) error
- func RemoveTransactionAssetByUUID(dbConnPgx utils.PgxIface, transactionAssetUUID string) error
- func UpdateTransactionAsset(dbConnPgx utils.PgxIface, transactionAsset *TransactionAsset) error
- func UpdateTransactionAssetByUUID(dbConnPgx utils.PgxIface, transactionAsset *TransactionAsset) error
- type Attrs
- type TransactionAsset
- func GetTransactionAsset(dbConnPgx utils.PgxIface, transactionID, assetID *int) (*TransactionAsset, error)
- func GetTransactionAssetByUUID(dbConnPgx utils.PgxIface, transactionAssetUUID string) (*TransactionAsset, error)
- func GetTransactionAssetListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]TransactionAsset, error)
- func GetTransactionAssets(dbConnPgx utils.PgxIface) ([]TransactionAsset, error)
- func GetTransactionAssetsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]TransactionAsset, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertTransactionAsset ¶
func InsertTransactionAssets ¶
func InsertTransactionAssets(dbConnPgx utils.PgxIface, transactionAssets []TransactionAsset) error
func RemoveTransactionAsset ¶
func UpdateTransactionAsset ¶
func UpdateTransactionAsset(dbConnPgx utils.PgxIface, transactionAsset *TransactionAsset) error
func UpdateTransactionAssetByUUID ¶
func UpdateTransactionAssetByUUID(dbConnPgx utils.PgxIface, transactionAsset *TransactionAsset) error
Types ¶
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)
Click to show internal directories.
Click to hide internal directories.