global

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum

type Enum[T any] struct {
	ID    string `alias:"Enum" bson:"_id" db:"_id"`
	Items []T
}

枚举模型

func (Enum[T]) GetID

func (m Enum[T]) GetID() string

type UserRandSeed added in v1.4.0

type UserRandSeed struct {
	ID   string `alias:"" bson:"_id" db:"_id"`
	Seed map[string]string
}

用户随机种子

func (UserRandSeed) GetID added in v1.4.0

func (m UserRandSeed) GetID() string

type UserValue

type UserValue struct {
	ID    string `alias:"" bson:"_id" db:"_id"`
	Value map[int]int64
}

用户数值

func (UserValue) GetID

func (m UserValue) GetID() string

func (UserValue) GetValue

func (m UserValue) GetValue() map[int]int64

type UserValueLog

type UserValueLog struct {
	ValueType int
	Count     int64
	OldCount  int64
	ID        string `alias:"" bson:"_id" db:"_id"`
	Source    string
	UserID    string
}

用户数值日志

func (UserValueLog) GetID

func (m UserValueLog) GetID() string

func (UserValueLog) IsChange

func (m UserValueLog) IsChange() bool

func (*UserValueLog) SetCount

func (m *UserValueLog) SetCount(v int64)

func (*UserValueLog) SetID

func (m *UserValueLog) SetID(v string)

Jump to

Keyboard shortcuts

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