model

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

Documentation

Index

Constants

View Source
const PlDBusType = "playlist"

PlDBusType databus type playlist

Variables

This section is empty.

Functions

This section is empty.

Types

type ArcList

type ArcList struct {
	List []*PlView `json:"list"`
}

ArcList playlist archive list.

type ArcSort

type ArcSort struct {
	Aid  int64  `json:"aid"`
	Sort int64  `json:"sort"`
	Desc string `json:"desc"`
}

ArcSort struct.

type ArgStats

type ArgStats struct {
	*PlStat
}

ArgStats struct.

type PlStat

type PlStat struct {
	ID    int64      `json:"id"`
	Mid   int64      `json:"mid"`
	Fid   int64      `json:"fid"`
	View  int64      `json:"view"`
	Reply int64      `json:"reply"`
	Fav   int64      `json:"favorite"`
	Share int64      `json:"share"`
	MTime xtime.Time `json:"mtime"`
}

PlStat playlist stat

type PlView

type PlView struct {
	*View
	PlayDesc string `json:"play_desc"`
}

PlView playlist view struct

type Playlist

type Playlist struct {
	Pid int64 `json:"pid"`
	*favmdl.Folder
	Stat         *Stat          `json:"stat,omitempty"`
	Author       *arcmdl.Author `json:"owner,omitempty"`
	FavoriteTime time.Time      `json:"favorite_time,omitempty"`
	IsFavorite   bool           `json:"is_favorite"`
}

Playlist struct.

type SearchArc

type SearchArc struct {
	Aid         int64  `json:"aid"`
	Title       string `json:"title"`
	Pic         string `json:"pic"`
	Duration    string `json:"duration"`
	Mid         int64  `json:"mid"`
	Author      string `json:"author"`
	Play        int64  `json:"play"`
	Review      int64  `json:"review"`
	VideoReview int64  `json:"video_review"`
	Favorites   int64  `json:"favorites"`
}

SearchArc search archive struct

type Stat

type Stat struct {
	Pid   int64 `json:"pid"`
	View  int64 `json:"view"`
	Fav   int64 `json:"favorite"`
	Reply int64 `json:"reply"`
	Share int64 `json:"share"`
}

Stat playlist stat.

type ToView

type ToView struct {
	*Playlist
	List     []*View `json:"list"`
	Favorite bool    `json:"favorite"`
}

ToView to view page struct.

type Videos

type Videos struct {
	RightAids []int64 `json:"right_aids"`
	WrongAids []int64 `json:"wrong_aids"`
}

Videos add video result.

type View

type View struct {
	*arcmdl.Arc
	Pages []*arcmdl.Page `json:"pages"`
}

View arc view.

Jump to

Keyboard shortcuts

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