Documentation
¶
Index ¶
- type AttachmentDTO
- type AuthTokenDTO
- type BackupDTO
- type BaseDTO
- type CategoryDTO
- type CategoryWithPostCount
- type Comment
- type EnvironmentDTO
- type IndependentSheet
- type Journal
- type JournalWithComment
- type Link
- type Log
- type LoginPreCheckDTO
- type Menu
- type Meta
- type Option
- type Page
- type Photo
- type Post
- type PostDetail
- type PostMinimal
- type Statistic
- type StatisticWithUser
- type Tag
- type TagWithPostCount
- type ThemeAuthor
- type ThemeConfigGroup
- type ThemeConfigItem
- type ThemeConfigOption
- type ThemeFile
- type ThemeProperty
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentDTO ¶
type AttachmentDTO struct {
ID int32 `json:"id"`
Name string `json:"name"`
Path string `json:"path"`
FileKey string `json:"fileKey"`
ThumbPath string `json:"thumbPath"`
MediaType string `json:"mediaType"`
Suffix string `json:"suffix"`
Width int32 `json:"width"`
Height int32 `json:"height"`
Size int64 `json:"size"`
AttachmentType consts.AttachmentType `json:"type"`
}
type AuthTokenDTO ¶
type CategoryDTO ¶
type CategoryDTO struct {
ID int32 `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description string `json:"description"`
Thumbnail string `json:"thumbnail"`
ParentID int32 `json:"parentId"`
Password string `json:"password"`
CreateTime int64 `json:"createTime"`
FullPath string `json:"fullPath"`
Priority int32 `json:"priority"`
Type int32 `json:"type"`
}
type CategoryWithPostCount ¶
type CategoryWithPostCount struct {
*CategoryDTO
PostCount int32 `json:"postCount"`
}
type Comment ¶
type Comment struct {
ID int32 `json:"id"`
Author string `json:"author"`
Email string `json:"email"`
IPAddress string `json:"ipAddress"`
AuthorURL string `json:"authorUrl"`
GravatarMD5 string `json:"gravatarMd5"`
Content string `json:"content"`
Status consts.CommentStatus `json:"status"`
UserAgent string `json:"userAgent"`
ParentID int32 `json:"parentId"`
IsAdmin bool `json:"isAdmin"`
AllowNotification bool `json:"allowNotification"`
CreateTime int64 `json:"createTime"`
Avatar string `json:"avatar"`
Likes int32 `json:"likes"`
}
type EnvironmentDTO ¶
type IndependentSheet ¶
type JournalWithComment ¶
type LoginPreCheckDTO ¶
type LoginPreCheckDTO struct {
NeedMFACode bool `json:"needMFACode"`
}
type Page ¶
type Page struct {
Content interface{} `json:"content"`
Pages int `json:"pages"`
Total int64 `json:"total"`
RPP int `json:"rpp"`
PageNum int `json:"pageNum"`
HasNext bool `json:"hasNext"`
HasPrevious bool `json:"hasPrevious"`
IsFirst bool `json:"isFirst"`
IsLast bool `json:"isLast"`
IsEmpty bool `json:"isEmpty"`
HasContent bool `json:"hasContent"`
}
type Post ¶
type Post struct {
PostMinimal
Summary string `json:"summary"`
Thumbnail string `json:"thumbnail"`
Visits int64 `json:"visits"`
DisallowComment bool `json:"disallowComment"`
Password string `json:"password"`
Template string `json:"template"`
TopPriority int32 `json:"topPriority"`
Likes int64 `json:"likes"`
WordCount int64 `json:"wordCount"`
Topped bool `json:"topped"`
}
type PostDetail ¶
type PostMinimal ¶
type PostMinimal struct {
ID int32 `json:"id"`
Title string `json:"title"`
Status consts.PostStatus `json:"status"`
Slug string `json:"slug"`
EditorType consts.EditorType `json:"editorType"`
CreateTime int64 `json:"createTime"`
EditTime int64 `json:"editTime"`
UpdateTime int64 `json:"updateTime"`
MetaKeywords string `json:"metaKeywords"`
MetaDescription string `json:"metaDescription"`
FullPath string `json:"fullPath"`
}
type Statistic ¶
type Statistic struct {
PostCount int64 `json:"postCount"`
CommentCount int64 `json:"commentCount"`
CategoryCount int64 `json:"categoryCount"`
TagCount int64 `json:"tagCount"`
JournalCount int64 `json:"journalCount"`
Birthday int64 `json:"birthday"`
EstablishDays int64 `json:"establishDays"`
LinkCount int64 `json:"linkCount"`
VisitCount int64 `json:"visitCount"`
LikeCount int64 `json:"likeCount"`
}
type StatisticWithUser ¶
type TagWithPostCount ¶
type ThemeAuthor ¶
type ThemeConfigGroup ¶
type ThemeConfigGroup struct {
Name string `json:"name"`
Label string `json:"label"`
Items []*ThemeConfigItem `json:"items" yaml:"-"`
ItemMap map[string]*ThemeConfigItem `json:"-" yaml:"items"`
}
type ThemeConfigItem ¶
type ThemeConfigItem struct {
Name string `json:"name"`
Label string `json:"label"`
InputType consts.ThemeConfigInputType `json:"type" yaml:"type"`
DataType consts.ThemeConfigDataType `json:"dataType" yaml:"data-type"`
DefaultValue interface{} `json:"defaultValue" yaml:"default"`
PlaceHolder string `json:"placeHolder"`
Description string `json:"description"`
Options []*ThemeConfigOption `json:"options"`
}
type ThemeConfigOption ¶
type ThemeConfigOption struct {
Label string `json:"label"`
Value interface{} `json:"value"`
}
type ThemeProperty ¶
type ThemeProperty struct {
ID string `json:"id"`
Name string `json:"name"`
Website string `json:"website"`
Branch string `json:"branch"`
Repo string `json:"repo"`
UpdateStrategy consts.ThemeUpdateStrategy `json:"updateStrategy"`
Description string `json:"description"`
Logo string `json:"logo"`
Version string `json:"version"`
Require string `json:"require"`
Author ThemeAuthor `json:"author"`
ThemePath string `json:"themePath"`
FolderName string `json:"folderName"`
HasOptions bool `json:"hasOptions"`
Activated bool `json:"activated"`
ScreenShots string `json:"screenshots"`
PostMetaField []string `json:"postMetaField"`
SheetMetaField []string `json:"sheetMetaField"`
}
type User ¶
type User struct {
ID int32 `json:"id"`
Username string `json:"username"`
Nickname string `json:"nickname"`
Email string `json:"email"`
Avatar string `json:"avatar"`
Description string `json:"description"`
MFAType consts.MFAType `json:"mfaType"`
CreateTime int64 `json:"createTime"`
UpdateTime int64 `json:"updateTime"`
}
Click to show internal directories.
Click to hide internal directories.