club

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 Admin

type Admin struct {
	Username string   `json:"username"`
	Roles    []string `json:"roles"`
}

Admin represents club admin and officer.

type Club

type Club struct {
	ID          int     `json:"id"`
	Name        string  `json:"name"`
	Image       string  `json:"image"`
	Information string  `json:"information"`
	Category    string  `json:"category"`
	Type        string  `json:"type"`
	Date        string  `json:"date"`
	Admins      []Admin `json:"admins"`
	Member      Member  `json:"member"`
	Picture     Picture `json:"picture"`
	Related     Related `json:"related"`
}

Club represents the main model for MyAnimeList clubs information.

type List

type List struct {
	ID              int    `json:"id"`
	Name            string `json:"name"`
	Image           string `json:"image"`
	Summary         string `json:"summary"`
	Username        string `json:"username"`
	Member          int    `json:"member"`
	LastCommentDate string `json:"last_comment_date"`
	LastCommentUser string `json:"last_comment_user"`
	LastPost        string `json:"last_post"`
}

List represents the main model for MyAnimeList clubs list.

type Member

type Member struct {
	Count int    `json:"count"`
	Users []User `json:"users"`
}

Member represents club member.

type Picture

type Picture struct {
	Count    int             `json:"count"`
	Pictures []SimplePicture `json:"pictures"`
}

Picture represents club picture stats.

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

Related represents club relations.

type SimplePicture

type SimplePicture struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Picture string `json:"picture"`
	Comment int    `json:"comment"`
}

SimplePicture represents simple each club picture.

type User

type User struct {
	Username string `json:"username"`
	Image    string `json:"image"`
}

User represents each club member user.

Jump to

Keyboard shortcuts

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