Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimHistory ¶
type ClaimHistory struct {
entity.Base
EntityID uuid.UUID `gorm:"not null"`
Amount float64 `gorm:"not null"`
}
ClaimHistory claim history entity
func (*ClaimHistory) MarshalBinary ¶
func (e *ClaimHistory) MarshalBinary() ([]byte, error)
MarshalBinary for redis
func (*ClaimHistory) UnmarshalBinary ¶
func (e *ClaimHistory) UnmarshalBinary(data []byte) error
UnmarshalBinary for redis
type IPAddress ¶
type IPAddress struct {
entity.Base
IPAddress string `gorm:"primary_key"`
IsBanned bool `gorm:"not null;default:false"`
Players []*Player
}
IPAddress IP Address entity
func (*IPAddress) MarshalBinary ¶
MarshalBinary for redis
func (*IPAddress) UnmarshalBinary ¶
UnmarshalBinary for redis
type Player ¶
type Player struct {
entity.Base
EntityID uuid.UUID `gorm:"not null"`
Type string `gorm:"not null"`
LastClaim time.Time `gorm:"not null"`
BonusAmountPct uint32 `gorm:"not null;default:1"`
ReferalID uint64 `gorm:"not null;auto_increment;unique_index"`
ReferalCount uint64 `gorm:"not null;default:0"`
ReferalClaimAmount float64 `gorm:"not null;default:0"`
ReferedByID uuid.UUID
Histories []*ClaimHistory
IPAddressList []*IPAddress
}
Player player entity
func (*Player) MarshalBinary ¶
MarshalBinary for redis
func (*Player) UnmarshalBinary ¶
UnmarshalBinary for redis
Click to show internal directories.
Click to hide internal directories.