weeklyhonor

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

This section is empty.

Types

type Dao

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

Dao is creative dao.

func New

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

New init api url

func (*Dao) ClickCounts

func (d *Dao) ClickCounts(c context.Context, mids []int64) (res map[int64]int32, err error)

ClickCounts honor click count map

func (*Dao) Close

func (d *Dao) Close() (err error)

Close creativeDb

func (*Dao) GetUpSwitch

func (d *Dao) GetUpSwitch(c context.Context, mid int64) (state uint8, err error)

GetUpSwitch get up switch state

func (*Dao) HonorInfoc

func (d *Dao) HonorInfoc(c context.Context, mid int64, success int32) (err error)

HonorInfoc log honor msg send status

func (*Dao) HonorLogs

func (d *Dao) HonorLogs(c context.Context, mid int64) (hls map[int]*model.HonorLog, err error)

HonorLogs .

func (*Dao) HonorStat

func (d *Dao) HonorStat(c context.Context, mid int64, date string) (stat *model.HonorStat, err error)

HonorStat get up honor.

func (*Dao) LatestHonorLogs

func (d *Dao) LatestHonorLogs(c context.Context, mids []int64) (hls []*model.HonorLog, err error)

LatestHonorLogs list latest honor logs by mids

func (*Dao) MockClickCounts

func (d *Dao) MockClickCounts(res map[int64]int32, err error) (guard *monkey.PatchGuard)

MockClickCounts is

func (*Dao) MockHonorStat

func (d *Dao) MockHonorStat(stat *model.HonorStat, err error) (guard *monkey.PatchGuard)

MockHonorStat is

func (*Dao) MockLatestHonorLogs

func (d *Dao) MockLatestHonorLogs(hls []*model.HonorLog, err error) (guard *monkey.PatchGuard)

MockLatestHonorLogs is

func (*Dao) MockSendNotify

func (d *Dao) MockSendNotify(err error) (guard *monkey.PatchGuard)

MockSendNotify is

func (*Dao) MockUpActivesList

func (d *Dao) MockUpActivesList(upActives []*upgrpc.UpActivity, newid int64, err error) (guard *monkey.PatchGuard)

MockUpActivesList is

func (*Dao) MockUpCount

func (d *Dao) MockUpCount(count int, err error) (guard *monkey.PatchGuard)

MockUpCount is

func (*Dao) Ping

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

Ping creativeDb

func (*Dao) SendNotify

func (d *Dao) SendNotify(c context.Context, mids []int64) (errMids []int64, err error)

SendNotify 发送站内信

func (*Dao) UpActivesList

func (d *Dao) UpActivesList(c context.Context, lastID int64, ps int) (upActives []*upgrpc.UpActivity, newid int64, err error)

UpActivesList list up-actives

func (*Dao) UpCount

func (d *Dao) UpCount(c context.Context, mid int64) (count int, err error)

UpCount get archives count.

func (*Dao) UpMids deprecated

func (d *Dao) UpMids(c context.Context, size int, lastid int64, activeOnly bool) (mids []int64, newid int64, err error)

Deprecated: use UpActivesList instead.

func (*Dao) UpsertCount

func (d *Dao) UpsertCount(c context.Context, mid int64, hid int) (affected int64, err error)

UpsertCount .

Jump to

Keyboard shortcuts

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