payment

package
v0.0.0-...-418b934 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

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 (*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) ToDTO

ToDTO dto

func (*CryptoHistory) UnmarshalBinary

func (e *CryptoHistory) UnmarshalBinary(data []byte) error

UnmarshalBinary for redis

Jump to

Keyboard shortcuts

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