models

package
v0.0.0-...-988bea4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	ID          uint64 `gorm:"primary_key"`
	OrderID     int64  `sql:"not null"`
	CreatedAt   int64  `sql:"not null"`
	UserID      User   `gorm:"ForeignKey:UserRefer"`
	ConfirmedAt int64
}

Transaction log payment requests

type User

type User struct {
	ID                      uint64 `gorm:"primary_key"`
	SysID                   uint8  `gorm:"unique_index:user_search_index"`
	ExtID                   int64  `gorm:"unique_index:user_search_index"`
	ReachedStage01          int8
	ReachedSubStage01       int8
	ReachedStage02          int8 // not used. need in market
	ReachedSubStage02       int8 // not used. need in market
	IgnoreSavePointBlock    int8
	InifinityExtra00        int8
	InifinityExtra01        int8
	InifinityExtra02        int8
	InifinityExtra03        int8
	InifinityExtra04        int8
	InifinityExtra05        int8
	InifinityExtra06        int8
	InifinityExtra07        int8
	InifinityExtra08        int8
	InifinityExtra09        int8
	RemainingTries          int8
	RestoreTriesAt          int64 `sql:"not null"`
	Credits                 int
	FriendsBonusCreditsTime int64
	ProgressStandart        string `sql:"json"` // [][]int8 json
}

User struct in storage

func (*User) GetProgresStandart

func (u *User) GetProgresStandart() (progress [7][]int8)

GetProgresStandart return user progress as array

func (*User) SetProgresStandart

func (u *User) SetProgresStandart(progress [7][]int8)

SetProgresStandart set user progress

Jump to

Keyboard shortcuts

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