56 lines
978 B
Go
56 lines
978 B
Go
package nhentai
|
|
|
|
type nhentaiResponse struct {
|
|
ID int `json:"id"`
|
|
Title struct {
|
|
English string `json:"english,omitempty"`
|
|
Chinese string `json:"chinese,omitempty"`
|
|
Japanese string `json:"japanese,omitempty"`
|
|
Pretty string `json:"pretty,omitempty"`
|
|
} `json:"title,omitempty"`
|
|
UploadDate int `json:"upload_date"`
|
|
Tags []struct {
|
|
Type string `json:"type"`
|
|
Name string `json:"name"`
|
|
URL string `json:"url"`
|
|
} `json:"tags"`
|
|
}
|
|
|
|
type hentai struct {
|
|
ID int
|
|
Title string
|
|
UploadDate int
|
|
/*
|
|
Language struct { //since there can be multiple languages I won't implement this shit
|
|
Name string
|
|
URL string
|
|
}
|
|
Artist struct {
|
|
Name string
|
|
URL string
|
|
}
|
|
Group struct {
|
|
Name string
|
|
URL string
|
|
}
|
|
Category struct {
|
|
Name string
|
|
URL string
|
|
}
|
|
|
|
Character struct {
|
|
Name string
|
|
URL string
|
|
}
|
|
|
|
Parody struct {
|
|
Name string
|
|
URL string
|
|
}
|
|
*/
|
|
|
|
Tags []struct {
|
|
Name string
|
|
URL string
|
|
}
|
|
}
|