dao

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: 7 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
}

func New

func New(c *conf.Config) (dao *Dao)

New init mysql db

func (*Dao) Close

func (dao *Dao) Close()

Close close the resource.

func (*Dao) DelWalletCache

func (d *Dao) DelWalletCache(c context.Context, uid int64) (err error)

DelWalletCache 删除等级缓存

func (*Dao) InitWallet

func (d *Dao) InitWallet(c context.Context, user *model.User) (row int64, err error)

func (*Dao) MergeWallet

func (d *Dao) MergeWallet(c context.Context, uid int64, gold int64, iap_gold int64, silver int64) (row int64, err error)

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping dao ping

Jump to

Keyboard shortcuts

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