news

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	ID       int    `json:"id"`
	Title    string `json:"title"`
	Image    string `json:"image"`
	Content  string `json:"content"`
	Date     string `json:"date"`
	Username string `json:"username"`
	ForumID  int    `json:"forum_id"`
	Comment  int    `json:"comment"`
}

List represents the main model for MyAnimeList news list.

type News

type News struct {
	ID       int      `json:"id"`
	Title    string   `json:"title"`
	Content  string   `json:"content"`
	Date     string   `json:"date"`
	Username string   `json:"username"`
	ForumID  int      `json:"forum_id"`
	Comment  int      `json:"comment"`
	Tags     []string `json:"tags"`
	Related  Related  `json:"related"`
}

News represents the main model for MyAnimeList news.

type Related struct {
	Anime  []common.IDName `json:"anime"`
	Manga  []common.IDName `json:"manga"`
	People []common.IDName `json:"people"`
}

Related represents news database relation.

type Tag added in v0.5.0

type Tag struct {
	Name        string `json:"name"`
	Tag         string `json:"tag"`
	Description string `json:"description"`
}

Tag represent detail news tags.

type TagCategory added in v0.5.0

type TagCategory struct {
	Anime    []Tag `json:"anime"`
	Manga    []Tag `json:"manga"`
	People   []Tag `json:"people"`
	Music    []Tag `json:"music"`
	Event    []Tag `json:"event"`
	Industry []Tag `json:"industry"`
}

TagCategory represents the main model for MyAnimeList news tag category list.

Jump to

Keyboard shortcuts

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