youlibrary

package
v0.0.0-...-5fea7ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Character

type Character struct {
	Name      string  `json:"name"`
	Pic       string  `json:"pic"`
	Person    *Person `json:"person"`
	MalId     string  `json:"malId"`
	BangumiId string  `json:"bangumiId"`
	TmdbId    string  `json:"tmdbId"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewYouLibraryClient

func NewYouLibraryClient() *Client

func (*Client) GetSubjectById

func (c *Client) GetSubjectById(id uint) (*GetSubjectResponse, error)

func (*Client) Init

func (c *Client) Init(baseUrl string)

func (*Client) MatchVideoInfo

func (c *Client) MatchVideoInfo(keyword string, subjectType string) (*MatchSubjectResponse, error)

type GetSubjectResponse

type GetSubjectResponse struct {
	Success bool    `json:"success"`
	Data    Subject `json:"data"`
}

type MatchSubjectRequestBody

type MatchSubjectRequestBody struct {
	Keyword     string `json:"keyword"`
	SubjectType string `json:"Type"`
}

type MatchSubjectResponse

type MatchSubjectResponse struct {
	Success bool    `json:"success"`
	Data    Subject `json:"data"`
}

type Person

type Person struct {
	Id        uint   `json:"id"`
	Name      string `json:"name"`
	Pic       string `json:"pic"`
	MalId     string `json:"malId"`
	BangumiId string `json:"bangumiId"`
	TmdbId    string `json:"tmdbId"`
}

type Subject

type Subject struct {
	Id         uint         `json:"id"`
	Title      string       `json:"title"`
	Cover      string       `json:"cover"`
	Characters []*Character `json:"characters"`
	Release    string       `json:"release"`
	MalId      string       `json:"malId"`
	BangumiId  string       `json:"bangumiId"`
	TmdbId     string       `json:"tmdbId"`
}

Jump to

Keyboard shortcuts

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