music

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: 19 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 archive dao.

func New

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

New init api url

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) Close

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

Close 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

func (d *Dao) MCategorys(c context.Context) (res []*music.Mcategory, err error)

MCategorys fn

func (*Dao) Music

func (d *Dao) Music(c context.Context, sids []int64) (res map[int64]*music.Music, err error)

Music fn

func (*Dao) Ping

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

Ping fn

func (*Dao) SearchBgmSIDs

func (d *Dao) SearchBgmSIDs(c context.Context, keyword string, pn, ps int) (ret []int64, page *search.Pager, err error)

SearchBgmSIDs fn

Jump to

Keyboard shortcuts

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