Documentation ¶
Index ¶
- type Dao
- func (d *Dao) ChangeUpSwitch(c context.Context, mid int64, state uint8) (err error)
- func (d *Dao) ClickMC(c context.Context, mid int64) (err error)
- func (d *Dao) Close() (err error)
- func (d *Dao) GetUpSwitch(c context.Context, mid int64) (state uint8, err error)
- func (d *Dao) HonorLogs(c context.Context, mid int64) (hls map[int]*model.HonorLog, err error)
- func (d *Dao) HonorMC(c context.Context, mid int64, date string) (res *model.HonorLog, err error)
- func (d *Dao) HonorStat(c context.Context, mid int64, date string) (stat *model.HonorStat, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SetClickMC(c context.Context, mid int64) (err error)
- func (d *Dao) SetHonorMC(c context.Context, mid int64, date string, hs *model.HonorLog) (err error)
- func (d *Dao) SetStatMC(c context.Context, mid int64, date string, hs *model.HonorStat) (err error)
- func (d *Dao) StatMC(c context.Context, mid int64, date string) (hs *model.HonorStat, err error)
- func (d *Dao) UpsertClickCount(c context.Context, mid int64) (err error)
- func (d *Dao) UpsertCount(c context.Context, mid int64, hid int) (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 data dao.
func (*Dao) ChangeUpSwitch ¶
ChangeUpSwitch change up switch on/off
func (*Dao) GetUpSwitch ¶
GetUpSwitch get up switch state
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) SetClickMC ¶
SetClickMC add click cache
func (*Dao) SetHonorMC ¶
SetHonorMC add honor cache.
func (*Dao) UpsertClickCount ¶
UpsertClickCount log weeklyhonor click count
Click to show internal directories.
Click to hide internal directories.