Documentation ¶
Index ¶
- func InsertTransactionAsset(transactionAsset TransactionAsset) (int, int, error)
- func InsertTransactionAssets(transactionAssets []TransactionAsset) error
- func RemoveTransactionAsset(transactionID int, assetID int) error
- func RemoveTransactionAssetByUUID(transactionAssetUUID string) error
- func UpdateTransactionAsset(transactionAsset TransactionAsset) error
- func UpdateTransactionAssetByUUID(transactionAsset TransactionAsset) error
- type Attrs
- type TransactionAsset
- func GetTopTenTransactionAssets() ([]TransactionAsset, error)
- func GetTransactionAsset(transactionID int, assetID int) (*TransactionAsset, error)
- func GetTransactionAssetByUUID(transactionAssetUUID string) (*TransactionAsset, error)
- func GetTransactionAssetList() ([]TransactionAsset, error)
- func GetTransactionAssetsByUUIDs(UUIDList []string) ([]TransactionAsset, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertTransactionAsset ¶
func InsertTransactionAsset(transactionAsset TransactionAsset) (int, int, error)
func InsertTransactionAssets ¶
func InsertTransactionAssets(transactionAssets []TransactionAsset) error
func RemoveTransactionAsset ¶
func UpdateTransactionAsset ¶
func UpdateTransactionAsset(transactionAsset TransactionAsset) error
func UpdateTransactionAssetByUUID ¶
func UpdateTransactionAssetByUUID(transactionAsset TransactionAsset) error
Types ¶
type TransactionAsset ¶
type TransactionAsset struct { TransactionID *int `json:"transactionId"` AssetID *int `json:"assetId"` UUID string `json:"uuid"` Name string `json:"name"` AlternateName string `json:"alternateName"` Description string `json:"description"` Quantity *float64 `json:"quantity"` QuantityUSD *float64 `json:"quantityUsd"` MarketDataID *int `json:"marketDataId"` ManualExchangeRateUSD *float64 `json:"manualExchangeRateUsd"` CreatedBy string `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy string `json:"updatedBy"` UpdatedAt time.Time `json:"updatedAt"` }
Asset
func GetTopTenTransactionAssets ¶
func GetTopTenTransactionAssets() ([]TransactionAsset, error)
func GetTransactionAsset ¶
func GetTransactionAsset(transactionID int, assetID int) (*TransactionAsset, error)
func GetTransactionAssetByUUID ¶
func GetTransactionAssetByUUID(transactionAssetUUID string) (*TransactionAsset, error)
func GetTransactionAssetList ¶
func GetTransactionAssetList() ([]TransactionAsset, error)
func GetTransactionAssetsByUUIDs ¶
func GetTransactionAssetsByUUIDs(UUIDList []string) ([]TransactionAsset, error)
Click to show internal directories.
Click to hide internal directories.