Models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindLiquidUser

func BindLiquidUser(AutoId string, FromId string, FromType string, FromToken string) (*mongo.UpdateResult, error)

func CheckDefaultPlayerData

func CheckDefaultPlayerData(autoId string)

func CreateLiquidMember

func CreateLiquidMember(member bson.M) (*mongo.InsertOneResult, error)

func GetAutoID

func GetAutoID() string

func GetUserData

func GetUserData(autoId string, key string) (string, error)

func SetUserData

func SetUserData(autoId string, key string, value string)

Types

type LiquidAdminConfCounterSetting

type LiquidAdminConfCounterSetting struct {
	Admin   string `json:"admin" bson:"admin"`
	Counter int    `json:"counter" bson:"counter"`
}

type LiquidUser

type LiquidUser struct {
	AutoId     string    `json:"auto_id" bson:"auto_id"`
	InviteCode string    `json:"invite_code" bson:"invite_code"`
	Create     time.Time `json:"create" bson:"create"`
	Update     time.Time `json:"update" bson:"update"`
	FromType   string    `json:"from_type" bson:"from_type"`
	FromId     string    `json:"from_id" bson:"from_id"`
	FromToken  string    `json:"from_token" bson:"from_token"`
}

func CreateLiquidUser

func CreateLiquidUser(fromType string, fromId string) *LiquidUser

func FindLiquidGuestUser

func FindLiquidGuestUser(autoId string) *LiquidUser

func FindLiquidUserByAutoId

func FindLiquidUserByAutoId(AutoId string, InviteCode string) *LiquidUser

func FindLiquidUserFromType

func FindLiquidUserFromType(fromType string, fromId string) *LiquidUser

Jump to

Keyboard shortcuts

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