Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Audio(c context.Context, ids []int64, level int, ip string) (au map[int64]*music.Audio, err error)
- func (d *Dao) Categorys(c context.Context, ids []int64) (res []*music.Category, resMap map[int]*music.Category, err error)
- func (d *Dao) Close() (err error)
- func (d *Dao) ExtAidsWithSameBgm(c context.Context, sid int64, pn int) (retAIDs []int64, total int, err error)
- func (d *Dao) MCategorys(c context.Context) (res []*music.Mcategory, err error)
- func (d *Dao) Music(c context.Context, sids []int64) (res map[int64]*music.Music, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SearchBgmSIDs(c context.Context, keyword string, pn, ps int) (ret []int64, page *search.Pager, 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 archive dao.
func (*Dao) Audio ¶
func (d *Dao) Audio(c context.Context, ids []int64, level int, ip string) (au map[int64]*music.Audio, err error)
Audio fn
func (*Dao) Categorys ¶
func (d *Dao) Categorys(c context.Context, ids []int64) (res []*music.Category, resMap map[int]*music.Category, err error)
Categorys fn
func (*Dao) ExtAidsWithSameBgm ¶
func (d *Dao) ExtAidsWithSameBgm(c context.Context, sid int64, pn int) (retAIDs []int64, total int, err error)
ExtAidsWithSameBgm fn 获取这个sid最多的使用的aids列表,
func (*Dao) MCategorys ¶
MCategorys fn
Click to show internal directories.
Click to hide internal directories.