Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddFigureInfoCache(c context.Context, f *model.Figure) (err error)
- func (d *Dao) Close()
- func (d *Dao) FigureBatchInfoCache(c context.Context, mids []int64) (fs []*model.Figure, missIndex []int, err error)
- func (d *Dao) FigureInfo(c context.Context, mid int64) (res *model.Figure, err error)
- func (d *Dao) FigureInfoCache(c context.Context, mid int64) (f *model.Figure, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) PingRedis(c context.Context) (err error)
- func (d *Dao) Ranks(c context.Context) (ranks []*model.Rank, 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 figure DAO
func (*Dao) AddFigureInfoCache ¶
AddFigureInfoCache put figure to redis
func (*Dao) FigureBatchInfoCache ¶
func (d *Dao) FigureBatchInfoCache(c context.Context, mids []int64) (fs []*model.Figure, missIndex []int, err error)
FigureBatchInfoCache ...
func (*Dao) FigureInfo ¶
FigureInfo get user figure info
func (*Dao) FigureInfoCache ¶
FigureInfoCache get user figure info from redis
Click to show internal directories.
Click to hide internal directories.