mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
60 lines
1.9 KiB
Go
60 lines
1.9 KiB
Go
package entity
|
|
|
|
import (
|
|
"html/template"
|
|
"time"
|
|
)
|
|
|
|
type Illust struct {
|
|
ID int `json:"id"`
|
|
Title string `json:"title"`
|
|
Caption template.HTML `json:"caption"`
|
|
Artist User `json:"user"`
|
|
Date time.Time `json:"create_date"`
|
|
Pages int `json:"page_count"`
|
|
Views int `json:"total_view"`
|
|
Bookmarks int `json:"total_bookmarks"`
|
|
Tags []Tag `json:"tags"`
|
|
Images []Image
|
|
}
|
|
|
|
type Spotlight struct {
|
|
ID int `json:"id"`
|
|
Title string `json:"title"`
|
|
Thumbnail string `json:"thumbnail"`
|
|
URL string `json:"article_url"`
|
|
Date string `json:"publish_date"`
|
|
}
|
|
|
|
type Tag struct {
|
|
Name string `json:"name"`
|
|
TranslatedName string `json:"translated_name"`
|
|
}
|
|
|
|
type User struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Account string `json:"account"`
|
|
Avatar map[string]string `json:"profile_image_urls"`
|
|
Webpage string `json:"webpage"`
|
|
Gender string `json:"gender"`
|
|
Birth string `json:"birth"`
|
|
BirthDay string `json:"birth_day"`
|
|
BirthYear int `json:"birth_year"`
|
|
Region string `json:"region"`
|
|
BackgroundImage string `json:"background_image_url"`
|
|
Followers int `json:"total_follow_users"`
|
|
MyPixiv int `json:"total_mypixiv_users"`
|
|
Illusts int `json:"total_illusts"`
|
|
Mangas int `json:"total_mangas"`
|
|
TwitterURL string `json:"twitter_url"`
|
|
PawooURL string `json:"pawoo_url"`
|
|
}
|
|
|
|
type Image struct {
|
|
Small string `json:"square_medium"`
|
|
Medium string `json:"medium"`
|
|
Large string `json:"large"`
|
|
Original string `json:"original"`
|
|
}
|