mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package entity
|
|
|
|
import (
|
|
"html/template"
|
|
"time"
|
|
)
|
|
|
|
type Illust struct {
|
|
ID int `json:"id"`
|
|
Title string `json:"title"`
|
|
Caption template.HTML `json:"caption"`
|
|
Images map[string]string `json:"image_urls"`
|
|
Artist UserBrief `json:"user"`
|
|
Date time.Time `json:"create_date"`
|
|
Pages int `json:"page_count"`
|
|
Views int `json:"total_view"`
|
|
Bookmarks int `json:"total_bookmarks"`
|
|
SingleImage map[string]string `json:"meta_single_page"`
|
|
MultipleImage []map[string]map[string]string `json:"meta_pages"`
|
|
// Tags Tag[];
|
|
}
|
|
|
|
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 UserBrief struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Account string `json:"account"`
|
|
Avatar map[string]string `json:"profile_image_urls"`
|
|
}
|