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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ViewTpMap map
	ViewTpMap = map[int8]string{
		0:  "subtitle",
		1:  "font",
		2:  "filter",
		5:  "sticker",
		7:  "videoup_sticker",
		8:  "transition",
		9:  "cooperate",
		10: "theme",
	}
)

Functions

This section is empty.

Types

type Audio

type Audio struct {
	Title string `json:"title"`
	Cover string `json:"cover_url"`
}

Audio str

type Basic

type Basic struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Max         int             `json:"max"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	MTime       time.Time `json:"mtime"`
	Tags        []string  `json:"tags"`
}

Basic str

type BgmExt

type BgmExt struct {
	Msc          *Music          `json:"msc"`
	ExtMscs      []*Music        `json:"ext_mscs"`
	ExtArcs      []*api.Arc      `json:"ext_arcs"`
	UpProfile    *accMdl.Profile `json:"up_profile"`
	ShouldFollow bool            `json:"show_follow"`
}

BgmExt str

type BuildComp

type BuildComp struct {
	Condition int8 `json:"conditions"`
	Build     int  `json:"build"`
}

BuildComp str

type Category

type Category struct {
	ID          int      `json:"id"`
	PID         int      `json:"pid"`
	Name        string   `json:"name"`
	Index       int      `json:"index"`
	CameraIndex int      `json:"camera_index"`
	Children    []*Music `json:"children"`
}

Category str

type Cooperate

type Cooperate struct {
	ID       int64           `json:"id"`
	Name     string          `json:"name"`
	Cover    string          `json:"cover"`
	Rank     int             `json:"rank"`
	Extra    json.RawMessage `json:"-"`
	Material `json:"-"`
	MTime    time.Time `json:"mtime"`
	New      int8      `json:"new"`
	Tags     []string  `json:"tags"`
	// special extra column for cooperate
	MaterialAID int64              `json:"material_aid"`
	MaterialCID int64              `json:"material_cid"`
	DemoAID     int64              `json:"demo_aid"`
	DemoCID     int64              `json:"demo_cid"`
	MissionID   int64              `json:"mission_id"`
	SubType     int                `json:"sub_type"`
	Style       int                `json:"style"`
	Mission     *activity.Activity `json:"mission_info"`
	HotVal      int                `json:"hotval"`
	ArcCnt      int                `json:"-"`
	DownloadURL string             `json:"download_url"`
}

Cooperate str db+search+api

type Filter

type Filter struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	MTime       time.Time `json:"mtime"`
	New         int8      `json:"new"`
	Tags        []string  `json:"tags"`
	FilterType  int8      `json:"filter_type"`
}

Filter str

type FilterCategory

type FilterCategory struct {
	ID       int64     `json:"id"`
	Name     string    `json:"name"`
	Rank     int       `json:"rank"`
	Tp       int       `json:"type"`
	Children []*Filter `json:"children"`
	New      int       `json:"new"`
}

FilterCategory str

type Font

type Font struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	MTime       time.Time `json:"mtime"`
	New         int8      `json:"new"`
	Tags        []string  `json:"tags"`
}

Font str

type Hotword

type Hotword struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	MTime       time.Time `json:"mtime"`
	New         int8      `json:"new"`
	Tags        []string  `json:"tags"`
}

Hotword str

type Intro

type Intro struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	MTime       time.Time `json:"mtime"`
	New         int8      `json:"new"`
	Tags        []string  `json:"tags"`
}

Intro str

type Material

type Material struct {
	Type       int8            `json:"type"`
	Platform   int             `json:"platform"`
	Build      json.RawMessage `json:"build"`
	BuildComps []*BuildComp    `json:"build_comps"`
	White      int8            `json:"white"`
	New        int8            `json:"new"`
}

Material str

func (*Material) AllowMaterial

func (v *Material) AllowMaterial(m Material, platStr string, buildParam int, white bool) (ret bool)

AllowMaterial fn 1:platform first; 2:build alg; 3:user whitelist

type MaterialBind

type MaterialBind struct {
	CID   int64
	MID   int64
	CName string
	CRank int
	BRank int
	Tp    int
	New   int
}

MaterialBind str

type Mcategory

type Mcategory struct {
	ID    int64     `json:"id"`
	SID   int64     `json:"sid"`
	Tid   int       `json:"tid"`
	Index int       `json:"index"`
	CTime time.Time `json:"ctime"`
	New   int8      `json:"new"`
}

Mcategory str

type Music

type Music struct {
	ID             int64           `json:"id"`
	TID            int             `json:"tid"`
	Index          int             `json:"index"`
	SID            int64           `json:"sid"`
	Name           string          `json:"name"`
	Musicians      string          `json:"musicians"`
	UpMID          int64           `json:"mid"`
	Cover          string          `json:"cover"`
	Stat           string          `json:"stat"`
	Playurl        string          `json:"playurl"`
	State          int             `json:"state"`
	Duration       int             `json:"duration"`
	FileSize       int             `json:"filesize"`
	CTime          time.Time       `json:"ctime"`
	Pubtime        time.Time       `json:"pubtime"`
	MTime          time.Time       `json:"mtime"`
	TagsStr        string          `json:"-"`
	Tags           []string        `json:"tags"`
	Timeline       json.RawMessage `json:"-"`
	Tl             []*TimePoint    `json:"timeline"`
	RecommendPoint int64           `json:"recommend_point"`
	Cooperate      int8            `json:"cooperate"`
	CooperateURL   string          `json:"cooperate_url"`
	New            int8            `json:"new"`
	Hotval         int             `json:"hotval"`
}

Music str

type Sticker

type Sticker struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	SubType     int64     `json:"sub_type"`
	Tip         string    `json:"tip"`
	MTime       time.Time `json:"mtime"`
	New         int8      `json:"new"`
	Tags        []string  `json:"tags"`
}

Sticker str

type Subtitle

type Subtitle struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Max         int             `json:"max"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	MTime       time.Time `json:"mtime"`
	New         int8      `json:"new"`
	Tags        []string  `json:"tags"`
}

Subtitle str

type Theme

type Theme struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	MTime       time.Time `json:"mtime"`
	New         int8      `json:"new"`
	Tags        []string  `json:"tags"`
}

Theme str

type TimePoint

type TimePoint struct {
	Point     int64  `json:"point"`
	Comment   string `json:"comment"`
	Recommend int    `json:"recommend"`
}

TimePoint str

type Transition

type Transition struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	MTime       time.Time `json:"mtime"`
	New         int8      `json:"new"`
	Tags        []string  `json:"tags"`
}

Transition str

type VSticker

type VSticker struct {
	ID          int64           `json:"id"`
	Name        string          `json:"name"`
	Cover       string          `json:"cover"`
	DownloadURL string          `json:"download_url"`
	Rank        int             `json:"rank"`
	Extra       json.RawMessage `json:"-"`
	Material    `json:"-"`
	MTime       time.Time `json:"mtime"`
	New         int8      `json:"new"`
	Tags        []string  `json:"tags"`
}

VSticker str

type VstickerCategory

type VstickerCategory struct {
	ID       int64       `json:"id"`
	Name     string      `json:"name"`
	Rank     int         `json:"rank"`
	Tp       int         `json:"type"`
	Children []*VSticker `json:"children"`
	New      int         `json:"new"`
}

VstickerCategory str

Jump to

Keyboard shortcuts

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