Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identifiable ¶ added in v1.64.0
type Identifiable interface { IsIdentifiable() GetID() string }
type Purchase ¶
type Purchase struct { Product *Product `json:"product"` Wallet Wallet `json:"wallet"` Quantity int `json:"quantity"` }
func (Purchase) GetQuantity ¶ added in v1.64.0
type Sale ¶
type Sale struct { Product *Product `json:"product"` Rating int `json:"rating"` Location string `json:"location"` }
func (Sale) GetLocation ¶ added in v1.64.0
type User ¶
type User struct { ID string `json:"id"` Username string `json:"username"` History []History `json:"history"` RealName string `json:"realName"` }
func (User) IsIdentifiable ¶ added in v1.64.0
func (User) IsIdentifiable()
type WalletType1 ¶
type WalletType1 struct { Currency string `json:"currency"` Amount float64 `json:"amount"` SpecialField1 string `json:"specialField1"` }
func (WalletType1) GetAmount ¶ added in v1.64.0
func (this WalletType1) GetAmount() float64
func (WalletType1) GetCurrency ¶ added in v1.64.0
func (this WalletType1) GetCurrency() string
func (WalletType1) IsWallet ¶
func (WalletType1) IsWallet()
type WalletType2 ¶
type WalletType2 struct { Currency string `json:"currency"` Amount float64 `json:"amount"` SpecialField2 string `json:"specialField2"` }
func (WalletType2) GetAmount ¶ added in v1.64.0
func (this WalletType2) GetAmount() float64
func (WalletType2) GetCurrency ¶ added in v1.64.0
func (this WalletType2) GetCurrency() string
func (WalletType2) IsWallet ¶
func (WalletType2) IsWallet()
Click to show internal directories.
Click to hide internal directories.