Documentation ¶
Index ¶
- Constants
- func PersonRevisionTypes() []uint8
- func SubjectTypeString(s uint8) string
- type Character
- type CharacterIDType
- type Collection
- type Count
- type Creator
- type EpTypeType
- type Episode
- type IDType
- type Index
- type Person
- type PersonCharacterRelation
- type PersonIDType
- type PersonImages
- type Platform
- type Rating
- type Revision
- type RevisionTypeType
- type Subject
- type SubjectCharacterRelation
- type SubjectIDType
- type SubjectImages
- type SubjectInternalRelation
- type SubjectPersonRelation
- type SubjectType
- type User
Constants ¶
View Source
const ( RevisionTypeSubject = 1 // 条目 RevisionTypeSubjectCharacterRelation = 5 // 条目->角色关联 RevisionTypeSubjectCastRelation = 6 // 条目->声优关联 RevisionTypeSubjectPersonRelation = 10 // 条目->人物关联 RevisionTypeSubjectMerge = 11 // 条目管理 RevisionTypeSubjectErase = 12 RevisionTypeSubjectRelation = 17 // 条目关联 RevisionTypeSubjectLock = 103 RevisionTypeSubjectUnlock = 104 RevisionTypeCharacter = 2 // 角色 RevisionTypeCharacterSubjectRelation = 4 // 角色->条目关联 RevisionTypeCharacterCastRelation = 7 // 角色->声优关联 RevisionTypeCharacterMerge = 13 // 角色管理 RevisionTypeCharacterErase = 14 RevisionTypePerson = 3 // 人物 RevisionTypePersonCastRelation = 8 // 人物->声优关联 RevisionTypePersonSubjectRelation = 9 // 人物->条目关联 RevisionTypePersonMerge = 15 // 人物管理 RevisionTypePersonErase = 16 RevisionTypeEp = 18 // 章节 RevisionTypeEpMerge = 181 // 章节管理 RevisionTypeEpMove = 182 RevisionTypeEpLock = 183 RevisionTypeEpUnlock = 184 RevisionTypeEpErase = 185 )
Variables ¶
This section is empty.
Functions ¶
func PersonRevisionTypes ¶ added in v0.10.1
func PersonRevisionTypes() []uint8
func SubjectTypeString ¶
Types ¶
type Character ¶
type Character struct { Name string Image string Infobox string Summary string ID uint32 Redirect uint32 CollectCount uint32 CommentCount uint32 FieldBirthYear uint16 Producer bool Type uint8 Artist bool Seiyu bool Writer bool Illustrator bool Actor bool FieldBloodType uint8 FieldGender uint8 FieldBirthMon uint8 Locked bool FieldBirthDay uint8 NSFW bool }
type CharacterIDType ¶ added in v0.10.1
type CharacterIDType = uint32
type Collection ¶
type EpTypeType ¶ added in v0.10.1
type EpTypeType = int8
type Person ¶
type Person struct { Name string Image string Infobox string Summary string ID uint32 Redirect uint32 CollectCount uint32 CommentCount uint32 FieldBirthYear uint16 Producer bool Mangaka bool Type uint8 Artist bool Seiyu bool Writer bool Illustrator bool Actor bool FieldBloodType uint8 FieldGender uint8 FieldBirthMon uint8 Locked bool FieldBirthDay uint8 }
type PersonCharacterRelation ¶
type PersonIDType ¶ added in v0.10.1
type PersonIDType = uint32
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 Platform ¶
type RevisionTypeType ¶ added in v0.10.1
type RevisionTypeType = uint8
type Subject ¶
type Subject struct { Image string Summary string Name string Date string // first release date NameCN string Infobox string CompatRawTags []byte // compat field for old tags OnHold uint32 Dropped uint32 Volumes uint32 Eps uint32 Wish uint32 Collect uint32 Doing uint32 ID uint32 PlatformID uint16 TypeID SubjectType Ban uint8 Airtime uint8 // air weekday, start from NSFW bool Rating Rating Redirect uint32 }
type SubjectCharacterRelation ¶ added in v0.10.1
type SubjectIDType ¶ added in v0.10.1
type SubjectIDType = uint32 // in case we need future change, but I guess not...
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 SubjectInternalRelation ¶
type SubjectPersonRelation ¶ added in v0.10.1
type SubjectType ¶
type SubjectType = uint8
const ( SubjectBook SubjectType = iota + 1 SubjectAnime SubjectMusic SubjectGame SubjectReal )
Click to show internal directories.
Click to hide internal directories.