user

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao user dao, wrap clients

func New

func New(c *conf.Config) *Dao

New new user dao

func (*Dao) GetAccountProfile

func (d *Dao) GetAccountProfile(ctx context.Context, uid int64) (profile *accModel.ProfileStat, err error)

GetAccountProfile get account profile

func (*Dao) GetLiveAchieve

func (d *Dao) GetLiveAchieve(ctx context.Context, uid int64) (achieve int64, err error)

GetLiveAchieve get rc achieve by liverpc

func (*Dao) GetLiveExp

func (d *Dao) GetLiveExp(ctx context.Context, uid int64) (expInfo *xuserv1.LevelInfo, err error)

GetLiveExp get live exp from xuser.exp.GetUserExp

func (*Dao) GetLiveRank

func (d *Dao) GetLiveRank(ctx context.Context, uid int64) (rank string, err error)

GetLiveRank get user rank by liverpc

func (*Dao) GetLiveVip

func (d *Dao) GetLiveVip(ctx context.Context, uid int64) (vipInfo *xuserv1.InfoReply, err error)

GetLiveVip get live vip/svip from xuser.vip.Info

func (*Dao) GetWallet

func (d *Dao) GetWallet(ctx context.Context, uid int64, platform string) (silver, gold int64, err error)

GetWallet get silver/gold from go-wallet by http request

Jump to

Keyboard shortcuts

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