res

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	OnHold  uint32 `json:"on_hold"`
	Dropped uint32 `json:"dropped"`
	Wish    uint32 `json:"wish"`
	Collect uint32 `json:"collect"`
	Doing   uint32 `json:"doing"`
}

type Count

type Count struct {
	Field1  uint32 `json:"1"`
	Field2  uint32 `json:"2"`
	Field3  uint32 `json:"3"`
	Field4  uint32 `json:"4"`
	Field5  uint32 `json:"5"`
	Field6  uint32 `json:"6"`
	Field7  uint32 `json:"7"`
	Field8  uint32 `json:"8"`
	Field9  uint32 `json:"9"`
	Field10 uint32 `json:"10"`
}

type Error

type Error struct {
	Title       string      `json:"title"`
	Details     interface{} `json:"details"`
	Description string      `json:"description"`
}

Error default error response.

type Rating

type Rating struct {
	Rank  int32   `json:"rank"`
	Total uint32  `json:"total"`
	Count Count   `json:"count"`
	Score float64 `json:"score"`
}

type Subject

type Subject struct {
	ID           uint32              `json:"id"`
	Name         string              `json:"name"`
	NameCN       string              `json:"name_cn"`
	Summary      string              `json:"summary"`
	Image        model.SubjectImages `json:"images"`
	Tags         []compat.Tag        `json:"tags"`
	TypeID       model.SubjectType   `json:"type_id"`
	TypeText     string              `json:"type_text"`
	Wiki         wiki.Wiki           `json:"wiki"`
	Infobox      string              `json:"infobox"`
	Volumes      uint32              `json:"volumes"`
	Collection   Collection          `json:"collection"`
	Eps          uint32              `json:"eps"`
	Platform     uint16              `json:"platform_id"`
	PlatformText string              `json:"platform_text"`
	Airtime      uint8               `json:"air_time"`
	Locked       bool                `json:"locked"`
	NSFW         bool                `json:"nsfw"`
	Rating       Rating              `json:"rating"`
	Redirect     uint32              `json:"-"` // http 302 response
}

Jump to

Keyboard shortcuts

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