Documentation ¶
Index ¶
- type Dao
- func (d *Dao) ClickCounts(c context.Context, mids []int64) (res map[int64]int32, err error)
- func (d *Dao) Close() (err error)
- func (d *Dao) GetUpSwitch(c context.Context, mid int64) (state uint8, err error)
- func (d *Dao) HonorInfoc(c context.Context, mid int64, success int32) (err error)
- func (d *Dao) HonorLogs(c context.Context, mid int64) (hls map[int]*model.HonorLog, err error)
- func (d *Dao) HonorStat(c context.Context, mid int64, date string) (stat *model.HonorStat, err error)
- func (d *Dao) LatestHonorLogs(c context.Context, mids []int64) (hls []*model.HonorLog, err error)
- func (d *Dao) MockClickCounts(res map[int64]int32, err error) (guard *monkey.PatchGuard)
- func (d *Dao) MockHonorStat(stat *model.HonorStat, err error) (guard *monkey.PatchGuard)
- func (d *Dao) MockLatestHonorLogs(hls []*model.HonorLog, err error) (guard *monkey.PatchGuard)
- func (d *Dao) MockSendNotify(err error) (guard *monkey.PatchGuard)
- func (d *Dao) MockUpActivesList(upActives []*upgrpc.UpActivity, newid int64, err error) (guard *monkey.PatchGuard)
- func (d *Dao) MockUpCount(count int, err error) (guard *monkey.PatchGuard)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SendNotify(c context.Context, mids []int64) (errMids []int64, err error)
- func (d *Dao) UpActivesList(c context.Context, lastID int64, ps int) (upActives []*upgrpc.UpActivity, newid int64, err error)
- func (d *Dao) UpCount(c context.Context, mid int64) (count int, err error)
- func (d *Dao) UpMids(c context.Context, size int, lastid int64, activeOnly bool) (mids []int64, newid int64, err error)deprecated
- func (d *Dao) UpsertCount(c context.Context, mid int64, hid int) (affected int64, err error)
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 (*Dao) ClickCounts ¶
ClickCounts honor click count map
func (*Dao) GetUpSwitch ¶
GetUpSwitch get up switch state
func (*Dao) HonorInfoc ¶
HonorInfoc log honor msg send status
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 ¶
LatestHonorLogs list latest honor logs by mids
func (*Dao) MockClickCounts ¶
MockClickCounts is
func (*Dao) MockHonorStat ¶
MockHonorStat is
func (*Dao) MockLatestHonorLogs ¶
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) SendNotify ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.