res

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	Images       model.PersonImages  `json:"images"`
	Name         string              `json:"name"`
	ShortSummary string              `json:"short_summary"`
	Career       []string            `json:"career"`
	ID           domain.PersonIDType `json:"id"`
	Type         uint8               `json:"type"`
	Locked       bool                `json:"locked"`
}

type Avatar

type Avatar struct {
	Large  string `json:"large"`
	Medium string `json:"medium"`
	Small  string `json:"small"`
}

func (Avatar) Fill

func (a Avatar) Fill(s string) Avatar

type CharacterRelatedPerson

type CharacterRelatedPerson struct {
	Images        model.PersonImages `json:"images"`
	Name          string
	SubjectName   string                 `json:"subject_name"`
	SubjectNameCn string                 `json:"subject_name_cn"`
	SubjectID     domain.SubjectIDType   `json:"subject_id"`
	ID            domain.CharacterIDType `json:"id"`
	Type          uint8                  `json:"type"`
}

type CharacterRelatedSubject

type CharacterRelatedSubject struct {
	Staff  string               `json:"staff"`
	Name   string               `json:"name"`
	NameCn string               `json:"name_cn"`
	Image  string               `json:"image"`
	ID     domain.SubjectIDType `json:"id"`
}

type CharacterV0

type CharacterV0 struct {
	BirthMon  *uint8             `json:"birth_mon"`
	Gender    *string            `json:"gender"`
	BirthDay  *uint8             `json:"birth_day"`
	BirthYear *uint16            `json:"birth_year"`
	BloodType *uint8             `json:"blood_type"`
	Images    model.PersonImages `json:"images"`
	Summary   string             `json:"summary"`
	Name      string             `json:"name"`
	Infobox   v0wiki             `json:"infobox"`
	Stat      Stat               `json:"stat"`
	ID        uint32             `json:"id"`
	Redirect  uint32             `json:"-"`
	Locked    bool               `json:"locked"`
	Type      uint8              `json:"type"`
	NSFW      bool               `json:"nsfw"`
}

type Collection

type Collection struct {
	UpdatedAt   time.Time            `json:"updated_at"`
	Comment     *string              `json:"comment"`
	Tags        []string             `json:"tags"`
	SubjectID   domain.SubjectIDType `json:"subject_id"`
	EpStatus    uint32               `json:"ep_status"`
	VolStatus   uint32               `json:"vol_status"`
	SubjectType uint8                `json:"subject_type"`
	Type        uint8                `json:"type"`
	Rate        uint8                `json:"rate"`
	Private     bool                 `json:"private"`
}

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 Creator

type Creator struct {
	Username string `json:"username"`
	Nickname string `json:"nickname"`
}

type Episode

type Episode struct {
	Airdate     string            `json:"airdate"`
	Name        string            `json:"name"`
	NameCN      string            `json:"name_cn"`
	Duration    string            `json:"duration"`
	Description string            `json:"desc"`
	Ep          float32           `json:"ep"`
	Sort        float32           `json:"sort"`
	ID          uint32            `json:"id"`
	SubjectID   uint32            `json:"subject_id"`
	Comment     uint32            `json:"comment"`
	Type        domain.EpTypeType `json:"type"`
	Disc        uint8             `json:"disc"`
}

type Error

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

Error default error response.

type Index

type Index struct {
	CreatedAt   time.Time `json:"created_at"`
	Creator     Creator   `json:"creator"`
	Title       string    `json:"title"`
	Description string    `json:"desc"`
	Total       uint32    `json:"total"`
	ID          uint32    `json:"id"`
	Stat        Stat      `json:"stat"`
	Ban         bool      `json:"ban"`
}

type Me

type Me struct {
	Avatar    Avatar `json:"avatar"`
	Sign      string `json:"sign"`
	URL       string `json:"url"`
	Username  string `json:"username"`
	Nickname  string `json:"nickname"`
	ID        uint32 `json:"id"`
	UserGroup uint8  `json:"user_group"`
}

type Paged

type Paged struct {
	Data   interface{} `json:"data"`
	Total  int64       `json:"total"`
	Limit  int         `json:"limit"`
	Offset int         `json:"offset"`
}

type PersonRelatedCharacter

type PersonRelatedCharacter struct {
	Images        model.PersonImages     `json:"images"`
	Name          string                 `json:"name"`
	SubjectName   string                 `json:"subject_name"`
	SubjectNameCn string                 `json:"subject_name_cn"`
	SubjectID     domain.SubjectIDType   `json:"subject_id"`
	ID            domain.CharacterIDType `json:"id"`
	Type          uint8                  `json:"type"`
}

type PersonRelatedSubject

type PersonRelatedSubject struct {
	Staff     string               `json:"staff"`
	Name      string               `json:"name"`
	NameCn    string               `json:"name_cn"`
	Image     string               `json:"image"`
	SubjectID domain.SubjectIDType `json:"id"`
}

type PersonV0

type PersonV0 struct {
	LastModified time.Time          `json:"last_modified"`
	BloodType    *uint8             `json:"blood_type"`
	BirthYear    *uint16            `json:"birth_year"`
	BirthDay     *uint8             `json:"birth_day"`
	BirthMon     *uint8             `json:"birth_mon"`
	Gender       *string            `json:"gender"`
	Images       model.PersonImages `json:"images"`
	Summary      string             `json:"summary"`
	Name         string             `json:"name"`
	Img          string             `json:"img"`
	Infobox      v0wiki             `json:"infobox"`
	Career       []string           `json:"career"`
	Stat         Stat               `json:"stat"`
	Redirect     uint32             `json:"-"`
	ID           uint32             `json:"id"`
	Locked       bool               `json:"locked"`
	Type         uint8              `json:"type"`
}

type Rating

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

type SlimSubjectV0

type SlimSubjectV0 struct {
	AddedAt time.Time           `json:"added_at"`
	Date    *string             `json:"date"`
	Image   model.SubjectImages `json:"images"`
	Name    string              `json:"name"`
	NameCN  string              `json:"name_cn"`
	Comment string              `json:"comment"`
	Infobox v0wiki              `json:"infobox"`
	ID      uint32              `json:"id"`
	TypeID  model.SubjectType   `json:"type"`
}

type Stat

type Stat struct {
	Comments uint32 `json:"comments"`
	Collects uint32 `json:"collects"`
}

type Subject

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

type SubjectCollectionStat

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

type SubjectRelatedCharacter

type SubjectRelatedCharacter struct {
	Images   model.PersonImages  `json:"images"`
	Name     string              `json:"name"`
	Relation string              `json:"relation"`
	Actors   []Actor             `json:"actors"`
	Type     uint8               `json:"type"`
	ID       domain.PersonIDType `json:"id"`
}

type SubjectRelatedPerson

type SubjectRelatedPerson struct {
	Images   model.PersonImages  `json:"images"`
	Name     string              `json:"name"`
	Relation string              `json:"relation"`
	Career   []string            `json:"career"`
	Type     uint8               `json:"type"`
	ID       domain.PersonIDType `json:"id"`
}

type SubjectRelatedSubject

type SubjectRelatedSubject struct {
	Images    model.SubjectImages  `json:"images"`
	Name      string               `json:"name"`
	NameCn    string               `json:"name_cn"`
	Relation  string               `json:"relation"`
	Type      model.SubjectType    `json:"type"`
	SubjectID domain.SubjectIDType `json:"id"`
}

type SubjectV0

type SubjectV0 struct {
	Date          *string               `json:"date"`
	Platform      *string               `json:"platform"`
	Image         model.SubjectImages   `json:"images"`
	Summary       string                `json:"summary"`
	Name          string                `json:"name"`
	NameCN        string                `json:"name_cn"`
	Tags          []compat.Tag          `json:"tags"`
	Infobox       v0wiki                `json:"infobox"`
	Rating        Rating                `json:"rating"`
	TotalEpisodes int64                 `json:"total_episodes"`
	Collection    SubjectCollectionStat `json:"collection"`
	ID            uint32                `json:"id"`
	Eps           uint32                `json:"eps"`
	Volumes       uint32                `json:"volumes"`
	Redirect      uint32                `json:"-"`
	Locked        bool                  `json:"locked"`
	NSFW          bool                  `json:"nsfw"`
	TypeID        model.SubjectType     `json:"type"`
}

Jump to

Keyboard shortcuts

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