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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAPI

func InitAPI(dao *Dao)

InitAPI init all service APIs

Types

type Dao

type Dao struct {
	UserExtAPI *userextApi.Client

	XuserexAPI *xUserEx.Client
	// contains filtered or unexported fields
}

Dao dao

func New

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

New init mysql db

func (*Dao) AsyncSetUserConf

func (d *Dao) AsyncSetUserConf(c context.Context, mid int64, targetId int64, key int64) (err error)

AsyncSetUserConf 异步设置用户一个配置 "存在"

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) DelUserConf

func (d *Dao) DelUserConf(c context.Context, mid int64, targetId int64, key int64) (err error)

DelUserConf 删除用户一个配置 "不存在"

func (*Dao) GetUserConf

func (d *Dao) GetUserConf(c context.Context, mid int64, targetId int64, keys []int64) (values model.ConfValues, err error)

GetUserConf 获取用户配置

func (*Dao) LiveWallet

func (d *Dao) LiveWallet(c context.Context, mid int64, platform string) (wallet *model.LiveWallet, err error)

LiveWallet 获取用户直播钱包数据

func (*Dao) PayCenterWallet

func (d *Dao) PayCenterWallet(c context.Context, mid int64, platform string) (wallet *model.Wallet, err error)

PayCenterWallet Wallet get user bcoin doc:http://info.bilibili.co/pages/viewpage.action?pageId=7559096

func (*Dao) Ping

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

Ping dao ping

func (*Dao) SetMoreUserConf

func (d *Dao) SetMoreUserConf(c context.Context, mid int64, targetId int64, values map[int64]string) (err error)

SetMoreUserConf 设置用户多个配置

func (*Dao) SetUserConf

func (d *Dao) SetUserConf(c context.Context, mid int64, targetId int64, key int64) (err error)

SetUserConf 设置用户一个配置 "存在"

Jump to

Keyboard shortcuts

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