pixivstruct

package
v0.0.0-...-9e8ec43 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 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 Body

type Body struct {
	ID                      string           `json:"id"`
	Lang                    string           `json:"lang"`
	Entry                   Entry            `json:"entry"`
	Tags                    []Tag            `json:"tags"`
	ThumbnailURL            string           `json:"thumbnailUrl"`
	Title                   string           `json:"title"`
	PublishDate             int              `json:"publishDate"`
	Category                string           `json:"category"`
	SubCategory             string           `json:"subCategory"`
	SubCategoryLabel        string           `json:"subCategoryLabel"`
	SubCategoryIntroduction string           `json:"subCategoryIntroduction"`
	Introduction            string           `json:"introduction"`
	Footer                  string           `json:"footer"`
	Illusts                 []BodyIllust     `json:"illusts"`
	RelatedArticles         []RelatedArticle `json:"relatedArticles"`
	FollowingUserIDs        []interface{}    `json:"followingUserIds"`
	IsOnlyOneUser           bool             `json:"isOnlyOneUser"`
}

type BodyIllust

type BodyIllust struct {
	SpotlightArticleID                  int         `json:"spotlight_article_id"`
	IllustID                            int         `json:"illust_id"`
	Description                         string      `json:"description"`
	Language                            string      `json:"language"`
	IllustUserID                        string      `json:"illust_user_id"`
	IllustTitle                         string      `json:"illust_title"`
	IllustExt                           string      `json:"illust_ext"`
	IllustWidth                         string      `json:"illust_width"`
	IllustHeight                        string      `json:"illust_height"`
	IllustRestrict                      string      `json:"illust_restrict"`
	IllustXRestrict                     string      `json:"illust_x_restrict"`
	IllustCreateDate                    string      `json:"illust_create_date"`
	IllustUploadDate                    string      `json:"illust_upload_date"`
	IllustServerID                      string      `json:"illust_server_id"`
	IllustHash                          string      `json:"illust_hash"`
	IllustType                          string      `json:"illust_type"`
	IllustSanityLevel                   int         `json:"illust_sanity_level"`
	IllustBookStyle                     string      `json:"illust_book_style"`
	IllustPageCount                     string      `json:"illust_page_count"`
	IllustCustomThumbnailUploadDatetime interface{} `json:"illust_custom_thumbnail_upload_datetime"`
	IllustComment                       string      `json:"illust_comment"`
	UserAccount                         string      `json:"user_account"`
	UserName                            string      `json:"user_name"`
	UserComment                         string      `json:"user_comment"`
	URL                                 URL         `json:"url"`
	UgoiraMeta                          interface{} `json:"ugoira_meta"`
	UserIcon                            string      `json:"user_icon"`
}

type BookmarkDetail

type BookmarkDetail struct {
	IsBookmarked bool                `json:"is_bookmarked"`
	Tags         []BookmarkDetailTag `json:"tags"`
	Restrict     string              `json:"restrict"`
}

type BookmarkDetailTag

type BookmarkDetailTag struct {
	Name         string `json:"name"`
	IsRegistered bool   `json:"is_registered"`
}

type Comment

type Comment struct {
	ID             uint64   `json:"id"`
	CommentComment string   `json:"comment"`
	Date           string   `json:"date"`
	User           *User    `json:"user"`
	HasReplies     bool     `json:"has_replies"`
	ParentComment  *Comment `json:"parent_comment"`
}

type Entry

type Entry struct {
	ID                        string                `json:"id"`
	Title                     string                `json:"title"`
	PureTitle                 string                `json:"pure_title"`
	Catchphrase               string                `json:"catchphrase"`
	Header                    string                `json:"header"`
	Body                      string                `json:"body"`
	Footer                    string                `json:"footer"`
	Sidebar                   string                `json:"sidebar"`
	PublishDate               int                   `json:"publish_date"`
	Language                  string                `json:"language"`
	PixivisionCategorySlug    string                `json:"pixivision_category_slug"`
	PixivisionCategory        PixivisionCategory    `json:"pixivision_category"`
	PixivisionSubcategorySlug string                `json:"pixivision_subcategory_slug"`
	PixivisionSubcategory     PixivisionSubcategory `json:"pixivision_subcategory"`
	Tags                      []Tag                 `json:"tags"`
	ArticleURL                string                `json:"article_url"`
	Intro                     string                `json:"intro"`
	FacebookCount             string                `json:"facebook_count"`
	TwitterCount              string                `json:"twitter_count"`
}

type Error

type Error struct {
	UserMessage        string `json:"user_message"`
	Message            string `json:"message"`
	Reason             string `json:"reason"`
	UserMessageDetails struct {
	} `json:"user_message_details"`
}

type Frame

type Frame struct {
	File  string `json:"file"`
	Delay int    `json:"delay"`
}

type Illust

type Illust struct {
	ID             int             `json:"id"`
	Title          string          `json:"title"`
	Type           string          `json:"type"`
	Images         *Images         `json:"image_urls"`
	Caption        string          `json:"caption"`
	Restrict       int             `json:"restrict"`
	User           *User           `json:"user"`
	Tags           []Tag           `json:"tags"`
	Tools          []string        `json:"tools"`
	CreateData     string          `json:"create_data"`
	PageCount      int             `json:"page_count"`
	Width          int             `json:"width"`
	Height         int             `json:"height"`
	SanityLevel    int             `json:"sanity_level"`
	XRestrict      int             `json:"x_restrict"`
	Series         *Series         `json:"series"`
	MetaSinglePage *MetaSinglePage `json:"meta_single_page"`
	MetaPages      []MetaPage      `json:"meta_pages"`
	TotalView      int             `json:"total_view"`
	TotalBookmarks int             `json:"total_bookmarks"`
	IsBookmarked   bool            `json:"is_bookmarked"`
	Visible        bool            `json:"visible"`
	IsMuted        bool            `json:"is_muted"`
	TotalComments  int             `json:"total_comments"`
}

type IllustBookmarkDetail

type IllustBookmarkDetail struct {
	Error          Error          `json:"error"`
	BookmarkDetail BookmarkDetail `json:"bookmark_detail"`
}

type IllustCommentAddResult

type IllustCommentAddResult struct {
	Error   Error   `json:"error"`
	Comment Comment `json:"comment"`
}

type IllustComments

type IllustComments struct {
	Error         Error     `json:"error"`
	TotalComments uint64    `json:"total_comments"`
	Comments      []Comment `json:"comments"`
	NextURL       string    `json:"next_url"`
}

type IllustRecommended

type IllustRecommended struct {
	Error          Error          `json:"error"`
	Illusts        []Illust       `json:"illusts"`
	RankingIllusts []interface{}  `json:"ranking_illusts"`
	ContestExists  bool           `json:"contest_exists"`
	PrivacyPolicy  *PrivacyPolicy `json:"privacy_policy"`
	NextURL        string         `json:"next_url"`
}

type IllustResponse

type IllustResponse struct {
	Error  Error  `json:"error"`
	Illust Illust `json:"illust"`
}

type IllustsResponse

type IllustsResponse struct {
	Error   Error    `json:"error"`
	Illusts []Illust `json:"illusts"`
	NextURL string   `json:"next_url"`
}

type ImageUrls

type ImageUrls struct {
	SquareMedium string `json:"square_medium"`
	Medium       string `json:"medium"`
	Large        string `json:"large"`
}

type Images

type Images struct {
	SquareMedium string `json:"square_medium"`
	Medium       string `json:"medium"`
	Large        string `json:"large"`
	Original     string `json:"original"`
}

type MetaPage

type MetaPage struct {
	Images Images `json:"image_urls"`
}

type MetaSinglePage

type MetaSinglePage struct {
	OriginalImageURL string `json:"original_image_url"`
}

type NovelContent

type NovelContent struct {
	Error   bool   `json:"error"`
	Message string `json:"message"`
	Body    struct {
		BookmarkCount     int       `json:"bookmarkCount"`
		CommentCount      int       `json:"commentCount"`
		MarkerCount       int       `json:"markerCount"`
		CreateDate        time.Time `json:"createDate"`
		UploadDate        time.Time `json:"uploadDate"`
		Description       string    `json:"description"`
		ID                string    `json:"id"`
		Title             string    `json:"title"`
		LikeCount         int       `json:"likeCount"`
		PageCount         string    `json:"pageCount"`
		UserID            string    `json:"userId"`
		UserName          string    `json:"userName"`
		ViewCount         int       `json:"viewCount"`
		IsOriginal        bool      `json:"isOriginal"`
		IsBungei          bool      `json:"isBungei"`
		XRestrict         int       `json:"xRestrict"`
		Restrict          int       `json:"restrict"`
		Content           string    `json:"content"`
		CoverURL          string    `json:"coverUrl"`
		SuggestedSettings struct {
			ViewMode        int         `json:"viewMode"`
			ThemeBackground int         `json:"themeBackground"`
			ThemeSize       interface{} `json:"themeSize"`
			ThemeSpacing    interface{} `json:"themeSpacing"`
		} `json:"suggestedSettings"`
		IsBookmarkable bool        `json:"isBookmarkable"`
		BookmarkData   interface{} `json:"bookmarkData"`
		LikeData       bool        `json:"likeData"`
		PollData       interface{} `json:"pollData"`
		Marker         interface{} `json:"marker"`
		Tags           struct {
			AuthorID string `json:"authorId"`
			IsLocked bool   `json:"isLocked"`
			Tags     []struct {
				Tag       string `json:"tag"`
				Locked    bool   `json:"locked"`
				Deletable bool   `json:"deletable"`
				UserID    string `json:"userId"`
				UserName  string `json:"userName"`
			} `json:"tags"`
			Writable bool `json:"writable"`
		} `json:"tags"`
		SeriesNavData        interface{}   `json:"seriesNavData"`
		DescriptionBoothID   interface{}   `json:"descriptionBoothId"`
		DescriptionYoutubeID interface{}   `json:"descriptionYoutubeId"`
		ComicPromotion       interface{}   `json:"comicPromotion"`
		FanboxPromotion      interface{}   `json:"fanboxPromotion"`
		ContestBanners       []interface{} `json:"contestBanners"`
		ContestData          interface{}   `json:"contestData"`
		Request              interface{}   `json:"request"`
		ImageResponseOutData []interface{} `json:"imageResponseOutData"`
		ImageResponseData    []interface{} `json:"imageResponseData"`
		ImageResponseCount   int           `json:"imageResponseCount"`
		HasGlossary          bool          `json:"hasGlossary"`
		ZoneConfig           struct {
			Responsive struct {
				URL string `json:"url"`
			} `json:"responsive"`
			Rectangle struct {
				URL string `json:"url"`
			} `json:"rectangle"`
			Five00X500 struct {
				URL string `json:"url"`
			} `json:"500x500"`
			Header struct {
				URL string `json:"url"`
			} `json:"header"`
			Footer struct {
				URL string `json:"url"`
			} `json:"footer"`
			ExpandedFooter struct {
				URL string `json:"url"`
			} `json:"expandedFooter"`
			Logo struct {
				URL string `json:"url"`
			} `json:"logo"`
			Relatedworks struct {
				URL string `json:"url"`
			} `json:"relatedworks"`
		} `json:"zoneConfig"`
		ExtraData struct {
			Meta struct {
				Title             string `json:"title"`
				Description       string `json:"description"`
				Canonical         string `json:"canonical"`
				DescriptionHeader string `json:"descriptionHeader"`
				Ogp               struct {
					Description string `json:"description"`
					Image       string `json:"image"`
					Title       string `json:"title"`
					Type        string `json:"type"`
				} `json:"ogp"`
				Twitter struct {
					Description string `json:"description"`
					Image       string `json:"image"`
					Title       string `json:"title"`
					Card        string `json:"card"`
				} `json:"twitter"`
			} `json:"meta"`
		} `json:"extraData"`
		TitleCaptionTranslation struct {
			WorkTitle   interface{} `json:"workTitle"`
			WorkCaption interface{} `json:"workCaption"`
		} `json:"titleCaptionTranslation"`
		IsUnlisted         bool        `json:"isUnlisted"`
		Language           string      `json:"language"`
		TextEmbeddedImages interface{} `json:"textEmbeddedImages"`
		CommentOff         int         `json:"commentOff"`
		CharacterCount     int         `json:"characterCount"`
		WordCount          int         `json:"wordCount"`
		UseWordCount       bool        `json:"useWordCount"`
		ReadingTime        int         `json:"readingTime"`
		AiType             int         `json:"aiType"`
	} `json:"body"`
}

type NovelDetail

type NovelDetail struct {
	Novel NovelInfo `json:"novel"`
	Error Error     `json:"error"`
}

type NovelInfo

type NovelInfo struct {
	ID                   int       `json:"id"`
	Title                string    `json:"title"`
	Caption              string    `json:"caption"`
	Restrict             int       `json:"restrict"`
	XRestrict            int       `json:"x_restrict"`
	IsOriginal           bool      `json:"is_original"`
	ImageUrls            ImageUrls `json:"image_urls"`
	CreateDate           time.Time `json:"create_date"`
	Tags                 []Tags    `json:"tags"`
	PageCount            int       `json:"page_count"`
	TextLength           int       `json:"text_length"`
	User                 User      `json:"user"`
	Series               Series    `json:"series"`
	IsBookmarked         bool      `json:"is_bookmarked"`
	TotalBookmarks       int       `json:"total_bookmarks"`
	TotalView            int       `json:"total_view"`
	Visible              bool      `json:"visible"`
	TotalComments        int       `json:"total_comments"`
	IsMuted              bool      `json:"is_muted"`
	IsMypixivOnly        bool      `json:"is_mypixiv_only"`
	IsXRestricted        bool      `json:"is_x_restricted"`
	NovelAiType          int       `json:"novel_ai_type"`
	CommentAccessControl int       `json:"comment_access_control"`
}

type PixivisionCategory

type PixivisionCategory struct {
	Label        string `json:"label"`
	Introduction string `json:"introduction"`
}

type PixivisionSubcategory

type PixivisionSubcategory struct {
	Label        string `json:"label"`
	LabelEn      string `json:"label_en"`
	Title        string `json:"title"`
	Introduction string `json:"introduction"`
	ImageURL     string `json:"image_url"`
	BigImageURL  string `json:"big_image_url"`
}

type PrivacyPolicy

type PrivacyPolicy struct {
}

type Profile

type Profile struct {
	Webpage                    interface{} `json:"webpage"`
	Gender                     string      `json:"gender"`
	Birth                      string      `json:"birth"`
	BirthDay                   string      `json:"birth_day"`
	BirthYear                  uint64      `json:"birth_year"`
	Region                     string      `json:"region"`
	AddressID                  uint64      `json:"address_id"`
	CountryCode                string      `json:"country_code"`
	Job                        string      `json:"job"`
	JobID                      uint64      `json:"job_id"`
	TotalFollowUsers           uint64      `json:"total_follow_users"`
	TotalMypixivUsers          uint64      `json:"total_mypixiv_users"`
	TotalIllusts               uint64      `json:"total_illusts"`
	TotalManga                 uint64      `json:"total_manga"`
	TotalNovels                uint64      `json:"total_novels"`
	TotalIllustBookmarksPublic uint64      `json:"total_illust_bookmarks_public"`
	TotalIllustSeries          uint64      `json:"total_illust_series"`
	TotalNovelSeries           uint64      `json:"total_novel_series"`
	BackgroundImageURL         string      `json:"background_image_url"`
	TwitterAccount             string      `json:"twitter_account"`
	TwitterURL                 string      `json:"twitter_url"`
	PawooURL                   string      `json:"pawoo_url"`
	IsPremium                  bool        `json:"is_premium"`
	IsUsingCustomProfileImage  bool        `json:"is_using_custom_profile_image"`
}

type ProfileImageUrls

type ProfileImageUrls struct {
	Medium string `json:"medium"`
}

type ProfilePublicity

type ProfilePublicity struct {
	Gender    string `json:"gender"`
	Region    string `json:"region"`
	BirthDay  string `json:"birth_day"`
	BirthYear string `json:"birth_year"`
	Job       string `json:"job"`
	Pawoo     bool   `json:"pawoo"`
}

type RelatedArticle

type RelatedArticle struct {
	ID                        string        `json:"id"`
	Ja                        PrivacyPolicy `json:"ja"`
	En                        PrivacyPolicy `json:"en"`
	Zh                        PrivacyPolicy `json:"zh"`
	ZhTw                      PrivacyPolicy `json:"zh_tw"`
	PublishDate               int           `json:"publish_date"`
	Category                  string        `json:"category"`
	PixivisionCategorySlug    string        `json:"pixivision_category_slug"`
	PixivisionSubcategorySlug string        `json:"pixivision_subcategory_slug"`
	Thumbnail                 string        `json:"thumbnail"`
	ThumbnailIllustID         string        `json:"thumbnail_illust_id"`
	HasBody                   string        `json:"has_body"`
	IsPr                      string        `json:"is_pr"`
	PrClientName              string        `json:"pr_client_name"`
	EditStatus                string        `json:"edit_status"`
	TranslationStatus         string        `json:"translation_status"`
	IsSample                  string        `json:"is_sample"`
	Illusts                   []interface{} `json:"illusts"`
	NovelIDs                  []interface{} `json:"novel_ids"`
	Memo                      string        `json:"memo"`
	FacebookCount             string        `json:"facebook_count"`
	TweetCount                string        `json:"tweet_count"`
	TweetMaxCount             string        `json:"tweet_max_count"`
	Tags                      []interface{} `json:"tags"`
	TagIDs                    interface{}   `json:"tag_ids"`
	NumberedTags              []interface{} `json:"numbered_tags"`
	MainAbtestPatternID       string        `json:"main_abtest_pattern_id"`
	AdvertisementID           string        `json:"advertisement_id"`
}

type SearchIllustResult

type SearchIllustResult struct {
	Error           Error    `json:"error"`
	Illusts         []Illust `json:"illusts"`
	NextURL         string   `json:"next_url"`
	SearchSpanLimit int      `json:"search_span_limit"`
}

type Series

type Series struct {
	ID    uint64 `json:"id"`
	Title string `json:"title"`
}

type SeriesContent

type SeriesContent struct {
	Error   bool   `json:"error"`
	Message string `json:"message"`
	Body    struct {
		SeriesContents []struct {
			Id     string `json:"id"`
			UserId string `json:"userId"`
			Series struct {
				Id           int `json:"id"`
				ViewableType int `json:"viewableType"`
				ContentOrder int `json:"contentOrder"`
			} `json:"series"`
			Title             string      `json:"title"`
			CommentHtml       string      `json:"commentHtml"`
			Tags              []string    `json:"tags"`
			Restrict          int         `json:"restrict"`
			XRestrict         int         `json:"xRestrict"`
			IsOriginal        bool        `json:"isOriginal"`
			TextLength        int         `json:"textLength"`
			CharacterCount    int         `json:"characterCount"`
			WordCount         int         `json:"wordCount"`
			UseWordCount      bool        `json:"useWordCount"`
			ReadingTime       int         `json:"readingTime"`
			BookmarkCount     int         `json:"bookmarkCount"`
			Url               string      `json:"url"`
			UploadTimestamp   int         `json:"uploadTimestamp"`
			ReuploadTimestamp int         `json:"reuploadTimestamp"`
			IsBookmarkable    bool        `json:"isBookmarkable"`
			BookmarkData      interface{} `json:"bookmarkData"`
			AiType            int         `json:"aiType"`
		} `json:"seriesContents"`
	} `json:"body"`
}

type ShowcaseArticle

type ShowcaseArticle struct {
	Error   bool   `json:"error"`
	Message string `json:"message"`
	Body    []Body `json:"body"`
}

type Tag

type Tag struct {
	Name           string `json:"name"`
	TranslatedName string `json:"translated_name"`
}

type Tags

type Tags struct {
	Name                string      `json:"name"`
	TranslatedName      interface{} `json:"translated_name"`
	AddedByUploadedUser bool        `json:"added_by_uploaded_user"`
}

type TrendTag

type TrendTag struct {
	Tag            string  `json:"tag"`
	TranslatedName string  `json:"translated_name"`
	Illust         *Illust `json:"illust"`
}

type TrendingTagsIllust

type TrendingTagsIllust struct {
	Error     Error      `json:"error"`
	TrendTags []TrendTag `json:"trend_tags"`
}

type URL

type URL struct {
	The1200X1200    string `json:"1200x1200"`
	The768X1200     string `json:"768x1200"`
	Ugoira600X600   string `json:"ugoira600x600"`
	Ugoira1920X1080 string `json:"ugoira1920x1080"`
}

type UgoiraMetadata

type UgoiraMetadata struct {
	Error                        Error               `json:"error"`
	UgoiraMetadataUgoiraMetadata UgoiraMetadataClass `json:"ugoira_metadata"`
}

type UgoiraMetadataClass

type UgoiraMetadataClass struct {
	ZipURLs UserImages `json:"zip_urls"`
	Frames  []Frame    `json:"frames"`
}

type User

type User struct {
	ID            int         `json:"id"`
	Name          string      `json:"name"`
	Account       string      `json:"account"`
	Comment       string      `json:"comment"`
	IsFollowed    bool        `json:"is_followed"`
	ProfileImages *UserImages `json:"profile_image_urls"`
}

type UserBookmarkTags

type UserBookmarkTags struct {
	Error        Error         `json:"error"`
	BookmarkTags []interface{} `json:"bookmark_tags"`
	NextURL      string        `json:"next_url"`
}

type UserDetail

type UserDetail struct {
	Error            Error            `json:"error"`
	User             User             `json:"user"`
	Profile          Profile          `json:"profile"`
	ProfilePublicity ProfilePublicity `json:"profile_publicity"`
	Workspace        Workspace        `json:"workspace"`
}

type UserFollowList

type UserFollowList struct {
	Error        Error         `json:"error"`
	UserPreviews []UserPreview `json:"user_previews"`
	NextURL      string        `json:"next_url"`
}

type UserImages

type UserImages struct {
	Medium string `json:"medium"`
}

type UserList

type UserList struct {
	Error Error         `json:"error"`
	Users []interface{} `json:"users"`
}

type UserPreview

type UserPreview struct {
	User    User          `json:"user"`
	Illusts []Illust      `json:"illusts"`
	Novels  []interface{} `json:"novels"`
	IsMuted bool          `json:"is_muted"`
}

type Workspace

type Workspace struct {
	Pc                string `json:"pc"`
	Monitor           string `json:"monitor"`
	Tool              string `json:"tool"`
	Scanner           string `json:"scanner"`
	Tablet            string `json:"tablet"`
	Mouse             string `json:"mouse"`
	Printer           string `json:"printer"`
	Desktop           string `json:"desktop"`
	Music             string `json:"music"`
	Desk              string `json:"desk"`
	Chair             string `json:"chair"`
	Comment           string `json:"comment"`
	WorkspaceImageURL string `json:"workspace_image_url"`
}

Jump to

Keyboard shortcuts

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