Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoBalance ¶
type CryptoBalance struct { entity.Base EntityID uuid.UUID `gorm:"primary_key;not null"` Type string `gorm:"not null"` Balance float32 `gorm:"not null;default:0"` Histories []*CryptoHistory `gorm:"foreignkey:BalanceID"` }
CryptoBalance CryptoBalance entity
func (*CryptoBalance) MarshalBinary ¶
func (e *CryptoBalance) MarshalBinary() ([]byte, error)
MarshalBinary for redis
func (*CryptoBalance) ToDTO ¶
func (e *CryptoBalance) ToDTO() (*module.CryptoBalanceDTO, error)
ToDTO dto
func (*CryptoBalance) UnmarshalBinary ¶
func (e *CryptoBalance) UnmarshalBinary(data []byte) error
UnmarshalBinary for redis
type CryptoCurrency ¶
type CryptoCurrency struct { entity.Base EntityID uuid.UUID `gorm:"primary_key;not null"` Balance []*CryptoBalance `gorm:"not null"` }
CryptoCurrency struct
func (*CryptoCurrency) MarshalBinary ¶
func (e *CryptoCurrency) MarshalBinary() ([]byte, error)
MarshalBinary for redis
func (*CryptoCurrency) ToDTO ¶
func (e *CryptoCurrency) ToDTO() (*module.CryptoCurrencyDTO, error)
func (*CryptoCurrency) UnmarshalBinary ¶
func (e *CryptoCurrency) UnmarshalBinary(data []byte) error
UnmarshalBinary for redis
type CryptoHistory ¶
type CryptoHistory struct { entity.Base Amount float32 `gorm:"not null"` Reason string `gorm:"not null"` WithdrawAddress string Tx string }
CryptoHistory transaction history
func (*CryptoHistory) MarshalBinary ¶
func (e *CryptoHistory) MarshalBinary() ([]byte, error)
MarshalBinary for redis
func (*CryptoHistory) UnmarshalBinary ¶
func (e *CryptoHistory) UnmarshalBinary(data []byte) error
UnmarshalBinary for redis
Click to show internal directories.
Click to hide internal directories.