Documentation ¶
Index ¶
- Constants
- type Actor
- type CharacterRelatedPerson
- type CharacterRelatedSubject
- type Count
- type Episode
- type Paged
- type PersonImages
- type PersonRelatedCharacter
- type PersonRelatedSubject
- type Rating
- type SlimSubjectV0
- type Subject
- type SubjectCollectionStat
- type SubjectImages
- type SubjectRelatedCharacter
- type SubjectRelatedPerson
- type SubjectRelatedSubject
- type SubjectV0
Constants ¶
View Source
const (
DefaultImageURL = "https://lain.bgm.tv/img/no_icon_subject.png"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct { Images PersonImages `json:"images"` Name string `json:"name"` ShortSummary string `json:"short_summary"` Career []string `json:"career"` ID model.PersonIDType `json:"id"` Type uint8 `json:"type"` Locked bool `json:"locked"` }
type CharacterRelatedPerson ¶
type CharacterRelatedPerson struct { Images PersonImages `json:"images"` Name string SubjectName string `json:"subject_name"` SubjectNameCn string `json:"subject_name_cn"` SubjectID model.SubjectIDType `json:"subject_id"` ID model.CharacterIDType `json:"id"` Type uint8 `json:"type" doc:"person type"` }
type CharacterRelatedSubject ¶
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 model.EpisodeIDType `json:"id"` SubjectID model.SubjectIDType `json:"subject_id"` Comment uint32 `json:"comment"` Type model.EpTypeType `json:"type"` Disc uint8 `json:"disc"` }
type PersonImages ¶
type PersonImages struct { Small string `json:"small"` Grid string `json:"grid"` Large string `json:"large"` Medium string `json:"medium"` }
func PersonImage ¶
func PersonImage(s string) PersonImages
type PersonRelatedCharacter ¶
type PersonRelatedCharacter struct { Images PersonImages `json:"images"` Name string `json:"name"` SubjectName string `json:"subject_name"` SubjectNameCn string `json:"subject_name_cn"` SubjectID model.SubjectIDType `json:"subject_id"` ID model.CharacterIDType `json:"id"` Type uint8 `json:"type" doc:"character type"` }
type PersonRelatedSubject ¶
type SlimSubjectV0 ¶
type SlimSubjectV0 struct { AddedAt time.Time `json:"added_at"` Date *string `json:"date"` Image 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 Subject ¶
type Subject struct { Image 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"` Rating Rating `json:"rating"` Collection SubjectCollectionStat `json:"collection"` Volumes uint32 `json:"volumes"` Eps uint32 `json:"eps"` ID model.SubjectIDType `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 SubjectImages ¶
type SubjectImages struct { Small string `json:"small"` Grid string `json:"grid"` Large string `json:"large"` Medium string `json:"medium"` Common string `json:"common"` }
func SubjectImage ¶
func SubjectImage(s string) SubjectImages
type SubjectRelatedCharacter ¶
type SubjectRelatedCharacter struct { Images PersonImages `json:"images"` Name string `json:"name"` Relation string `json:"relation"` Actors []Actor `json:"actors"` Type uint8 `json:"type"` ID model.PersonIDType `json:"id"` }
type SubjectRelatedPerson ¶
type SubjectRelatedPerson struct { Images PersonImages `json:"images"` Name string `json:"name" doc:"person name"` Relation string `json:"relation"` Career []string `json:"career"` Type uint8 `json:"type"` ID model.PersonIDType `json:"id" doc:"person ID"` }
type SubjectRelatedSubject ¶
type SubjectRelatedSubject struct { Images SubjectImages `json:"images"` Name string `json:"name"` NameCn string `json:"name_cn"` Relation string `json:"relation"` Type model.SubjectType `json:"type"` SubjectID model.SubjectIDType `json:"id"` }
type SubjectV0 ¶
type SubjectV0 struct { Date *string `json:"date"` Platform *string `json:"platform"` Image SubjectImages `json:"images"` Summary string `json:"summary"` Name string `json:"name"` NameCN string `json:"name_cn"` Infobox v0wiki `json:"infobox"` Rating Rating `json:"rating"` TotalEpisodes int64 `json:"total_episodes"` Collection SubjectCollectionStat `json:"collection"` ID model.SubjectIDType `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"` }
Click to show internal directories.
Click to hide internal directories.