model

package
v0.0.0-...-1de4c31 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KFail = errors.New("task failed.")
)

Functions

func CountLoad

func CountLoad(client *redis.Client, o orm.Ormer) error

func CountSync

func CountSync(client *redis.Client, o orm.Ormer) error

func NameIdLoad

func NameIdLoad(client *redis.Client, o orm.Ormer) error

func NameIdSync

func NameIdSync(client *redis.Client, o orm.Ormer) error

func OpenIdLoad

func OpenIdLoad(client *redis.Client, o orm.Ormer) error

func OpenIdSync

func OpenIdSync(client *redis.Client, o orm.Ormer) error

func UserLoad

func UserLoad(client *redis.Client, o orm.Ormer) error

func UserSync

func UserSync(client *redis.Client, o orm.Ormer) error

Types

type Count

type Count struct {
	Id  int
	Uid int
}

type NameId

type NameId struct {
	NameId string `orm:"pk;size(100)"`
	Uid    int
}

type OpenId

type OpenId struct {
	OpenId string `orm:"pk;size(100)"`
	Uid    int
}

type User

type User struct {
	Id       int64
	OpenId   int
	NameId   int
	Nickname string `orm:"size(32)"`
	Sex      int
	Province string `orm:"size(32)"`
	City     string `orm:"size(32)"`
	Country  string `orm:"size(32)"`
	Gold     int
	Diamond  int
	RCard    int
	HeadImg  string `orm:"size(1024)"`
}

Jump to

Keyboard shortcuts

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