bnj

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: 15 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 bnj dao.

func New

func New(c *conf.Config) *Dao

New init bnj dao.

func (*Dao) CacheHasReward

func (d *Dao) CacheHasReward(c context.Context, mid, subID int64, step int) (bool, error)

CacheHasReward .

func (*Dao) CacheResetCD

func (d *Dao) CacheResetCD(c context.Context, mid int64, cd int32) (bool, error)

CacheResetCD .

func (*Dao) CacheTimeFinish

func (d *Dao) CacheTimeFinish(c context.Context) (res int64, err error)

CacheTimeFinish get data from mc

func (*Dao) Close

func (d *Dao) Close()

Close .

func (*Dao) DelCacheHasReward

func (d *Dao) DelCacheHasReward(c context.Context, mid, subID int64, step int) error

DelCacheHasReward .

func (*Dao) DelCacheTimeFinish

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

DelCacheTimeFinish delete data from mc

func (*Dao) DelCacheTimeLess

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

DelCacheTimeLess delete data from mc

func (*Dao) GrantCoupon

func (d *Dao) GrantCoupon(c context.Context, mid int64, couponID string) (err error)

GrantCoupon grant coupon to mid.

func (*Dao) HasReward

func (d *Dao) HasReward(c context.Context, mid, subID int64, step int) (res bool, err error)

HasReward .

func (*Dao) TTLResetCD

func (d *Dao) TTLResetCD(c context.Context, mid int64) (ttl int64, err error)

TTLResetCD get reset cd ttl

Jump to

Keyboard shortcuts

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