recommend

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URI      string `json:"uri,omitempty"`
	Title    string `json:"title,omitempty"`
	Cover    string `json:"cover,omitempty"`
	Content  string `json:"content,omitempty"`
	Subtitle string `json:"subtitle,omitempty"`
}

type Item

type Item struct {
	ID         int64           `json:"id,omitempty"`
	Name       string          `json:"name,omitempty"`
	Goto       string          `json:"goto,omitempty"` // goto: av, live, bangumi, topic, activity, ad
	TagID      int64           `json:"tid,omitempty"`
	From       int8            `json:"from,omitempty"`
	Source     string          `json:"source,omitempty"`
	AvFeature  json.RawMessage `json:"av_feature,omitempty"`
	Config     *Config         `json:"config,omitempty"`
	RcmdReason *RcmdReason     `json:"rcmd_reason,omitempty"`
	StatType   int8            `json:"stat_type,omitempty"`
	Items      []*Item         `json:"-"`
	Archive    *api.Arc        `json:"archive,omitempty"`
	Tag        *tag.Tag        `json:"tag,omitempty"`
	Limit      int             `json:"-"`
}

type RcmdReason

type RcmdReason struct {
	ID           int    `json:"id"`
	Content      string `json:"content"`
	BgColor      string `json:"bg_color"`
	IconLocation string `json:"icon_location"`
	Style        int    `json:"style"`
	Font         int    `jsn:"font"`
	Position     string `jsn:"position"`
	Grounding    string `jsn:"grounding"`
}

Jump to

Keyboard shortcuts

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