Documentation ¶
Overview ¶
Package pixiv pixiv相关api
Index ¶
Constants ¶
View Source
const CacheDir = "data/pixiv/"
CacheDir ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generate ¶ added in v1.7.0
type Generate struct { Success bool `json:"success"` ErrorMsg string `json:"error"` ID int `json:"id"` Title string `json:"title"` Artist struct { ID int `json:"id"` Name string `json:"name"` } `json:"artist"` Multiple bool `json:"multiple"` OriginalURL string `json:"original_url"` OriginalURLProxy string `json:"original_url_proxy"` OriginalUrls []string `json:"original_urls"` OriginalUrlsProxy []string `json:"original_urls_proxy"` Thumbnails []string `json:"thumbnails"` }
Generate API 返回结果
type Illust ¶
type Illust struct { Pid int64 `db:"pid"` Title string `db:"title"` Caption string `db:"caption"` Tags string `db:"tags"` ImageUrls []string `db:"image_urls"` AgeLimit string `db:"age_limit"` CreatedTime string `db:"created_time"` UserID int64 `db:"user_id"` UserName string `db:"user_name"` }
Illust 插画结构体
func (*Illust) DownloadToCache ¶ added in v1.2.5
DownloadToCache 多线程下载第 page 页到 i.Path(page), 返回 error
type RankValue ¶
type RankValue struct { /* required, possible rank modes: - daily (default) - weekly - monthly - rookie - original - male - female - daily_r18 - weekly_r18 - male_r18 - female_r18 - r18g */ Mode string /* optional, possible rank type: - all (default) - illust - ugoira - manga */ Type string Page int Date string }
RankValue 搜索元素
Click to show internal directories.
Click to hide internal directories.