Documentation
¶
Index ¶
- type AddView
- type BangumiImage
- type BangumiItem
- type BangumiJson
- type BangumiSubject
- type BangumiSubjectDetail
- type CategoryView
- type CategoryViewItem
- type DoubanBookSubject
- type DoubanCover
- type DoubanDetail
- type DoubanDirector
- type DoubanGameSubject
- type DoubanItem
- type DoubanJson
- type DoubanMovieSubject
- type DoubanSubject
- type Header
- type HeaderOption
- type HomeLastItem
- type HomeSummary
- type HomeView
- type HomeViewItem
- type HomeViewType
- type Infobox
- type ManageCategoryOption
- type ManageOption
- type ManageView
- type SearchView
- type StatusCounts
- type StatusLabel
- type Subject
- type SubjectExport
- type SubjectExportAPI
- type SubjectExportItem
- type SubjectSummary
- type SubjectView
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BangumiItem ¶
type BangumiJson ¶
type BangumiJson struct {
Data []BangumiItem `json:"data"`
}
type BangumiSubject ¶
type BangumiSubject struct {
ID int `json:"id"`
Name string `json:"name"`
NameCN string `json:"name_cn"`
ShortSummary string `json:"short_summary"`
Date string `json:"date"`
Eps int `json:"eps"`
Images BangumiImage `json:"images"`
}
import from file
type BangumiSubjectDetail ¶
type CategoryView ¶
type CategoryViewItem ¶
type CategoryViewItem struct {
SubjectType string
SubjectURL string
Title string
AltTitle string
Creator string
Press string
PubDate string
MarkDate string
Rating int
StatusText string
CreatorLabel string
PressLabel string
PubDateLabel string
ImageURL string
}
Category Page
type DoubanBookSubject ¶
type DoubanBookSubject struct {
Title string `json:"title"`
AltTitle string `json:"book_subtitle"`
PubDate []string `json:"pubdate"`
Author []string `json:"author"`
Press []string `json:"press"`
CardSubtitle string `json:"card_subtitle"`
Intro string `json:"intro"`
Type string `json:"type"`
Cover DoubanCover `json:"pic"`
}
import from api
type DoubanDetail ¶
type DoubanDetail struct {
Comment string `json:"comment"`
Rating struct {
Value int `json:"value"`
} `json:"rating"`
Status string `json:"status"`
CreateTime string `json:"create_time"`
Subject DoubanSubject `json:"subject"`
}
type DoubanDirector ¶
type DoubanDirector struct {
Name string `json:"name"`
}
type DoubanGameSubject ¶ added in v0.4.0
type DoubanItem ¶
type DoubanItem struct {
Type string `json:"type"`
Status string `json:"status"`
Interest DoubanDetail `json:"interest"`
}
type DoubanJson ¶
type DoubanJson struct {
Interest []DoubanItem `json:"interest"`
}
type DoubanMovieSubject ¶
type DoubanMovieSubject struct {
Title string `json:"title"`
AltTitle string `json:"original_title"`
PubDate []string `json:"pubdate"`
Directors []DoubanDirector `json:"directors"`
CardSubtitle string `json:"card_subtitle"`
Intro string `json:"intro"`
Type string `json:"type"`
Cover DoubanCover `json:"pic"`
}
type DoubanSubject ¶
type DoubanSubject struct {
Title string `json:"title"`
AltTitle *string `json:"book_subtitle"`
URL string `json:"url"`
PubDate []string `json:"pubdate"`
Directors *[]DoubanDirector `json:"directors"`
Author *[]string `json:"author"`
Press *[]string `json:"press"`
CardSubtitle string `json:"card_subtitle"`
Intro *string `json:"intro"`
Type string `json:"type"`
Cover DoubanCover `json:"pic"`
}
import from file
type Header ¶ added in v0.6.0
type Header struct {
Options []HeaderOption
User string
Current string
CurrentName string
}
type HeaderOption ¶ added in v0.6.0
Header
type HomeLastItem ¶ added in v0.6.0
Home Page
type HomeSummary ¶ added in v0.6.0
type HomeSummary struct {
MonthCount int
HalfYearCount int
YearCount int
LastItem HomeLastItem
}
type HomeView ¶
type HomeView struct {
Header Header
TimePeriod string
PageTitle string
RecentGroups []HomeViewType
}
type HomeViewItem ¶
type HomeViewType ¶ added in v0.6.0
type HomeViewType struct {
SubjectType string
SubjectTypeName string
SubjectActionFullName string
SubjectActionShortName string
SubjectUnitName string
CategoryIcon template.HTML
Items []HomeViewItem
Summary HomeSummary
}
type Infobox ¶
type Infobox struct {
Key string `json:"key"`
Value interface{} `json:"value"`
}
import from api
type ManageCategoryOption ¶ added in v0.6.0
type ManageOption ¶ added in v0.6.0
type ManageView ¶ added in v0.6.0
type ManageView struct {
Header Header
PageTitle string
ManageType int
Subject Subject
CreatorLabel string
PressLabel string
PubDateLabel string
SummaryLabel string
StatusText string
RatingStar int
ImageURL string
ExternalURLIcon template.HTML
SubmitURL string
CancelURL string
ButtonText string
CancelText string
ReadOnlyExternal bool
CategoryOptions []ManageCategoryOption
StatusOptions []ManageOption
RatingOptions []ManageOption
}
type SearchView ¶
type SearchView struct {
Header Header
PageTitle string
Query string
QueryType string
TotalCount int
CurrentPage int
TotalPages int
PageNumbers []int
PageParams template.URL
Subjects []CategoryViewItem
}
Search Page
type StatusCounts ¶
type StatusLabel ¶ added in v0.6.0
type Subject ¶
type Subject struct {
ID uint `gorm:"primaryKey;index:idx_type_id_status,priority:2;column:id"`
UUID string `gorm:"size:36;unique;column:uuid"`
SubjectType string `gorm:"size:16;index:idx_type_id_status,priority:1;index:idx_type_mark_status,priority:1;column:subject_type"`
Title string `gorm:"size:255;column:title"`
AltTitle string `gorm:"size:255;column:alt_title"`
Creator string `gorm:"size:512;column:creator"`
Press string `gorm:"size:255;column:press"`
Status int `gorm:"index:idx_type_id_status,priority:3;index:idx_type_mark_status,priority:3;column:status"`
Rating int `gorm:"column:rating"`
ExternalURL string `gorm:"size:255;index:idx_external_url;column:external_url"`
HasImage int `gorm:"column:has_image"`
Summary string `gorm:"type:text;column:summary"`
Comment string `gorm:"type:text;column:comment"`
PubDate string `gorm:"size:36;column:pub_date"`
MarkDate string `gorm:"size:36;index:idx_type_mark_status,priority:2;column:mark_date"`
CreatedAt int64 `gorm:"column:created_at"`
UpdatedAt int64 `gorm:"column:updated_at"`
}
Database / Detail Status - 1: 想看, 2: 在看, 3: 已看 (4: 搁置, 5: 抛弃)
type SubjectExport ¶
type SubjectExport struct {
Subjects []SubjectExportItem `json:"subjects"`
ExportTime string `json:"export_time"`
TotalCount int `json:"total_count"`
}
type SubjectExportAPI ¶ added in v0.5.0
type SubjectExportAPI struct {
Subjects []SubjectExportItem `json:"subjects"`
ResponseTime string `json:"response_time"`
TotalCount int `json:"total_count"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
type SubjectExportItem ¶
type SubjectExportItem struct {
UUID string `json:"uuid"`
SubjectType string `json:"subject_type"`
Title string `json:"title"`
AltTitle string `json:"alt_title"`
PubDate string `json:"pub_date"`
Creator string `json:"creator"`
Press string `json:"press"`
Status int `json:"status"`
Rating int `json:"rating"`
Summary string `json:"summary"`
Comment string `json:"comment"`
ExternalURL string `json:"external_url"`
MarkDate string `json:"mark_date"`
CreatedAt string `json:"created_at"`
}
type SubjectSummary ¶
Click to show internal directories.
Click to hide internal directories.