Documentation
¶
Overview ¶
Package console defines console controllers.
Package console defines console controllers.
Index ¶
- func AddArticleAction(c *gin.Context)
- func AddCategoryAction(c *gin.Context)
- func AddNavigationAction(c *gin.Context)
- func AddUserAction(c *gin.Context)
- func BlogSwitchAction(c *gin.Context)
- func CheckVersion(c *gin.Context)
- func ExportMarkdownAction(c *gin.Context)
- func GenArticlesAction(c *gin.Context)
- func GetArticleAction(c *gin.Context)
- func GetArticleThumbsAction(c *gin.Context)
- func GetArticlesAction(c *gin.Context)
- func GetBasicSettingsAction(c *gin.Context)
- func GetCategoriesAction(c *gin.Context)
- func GetCategoryAction(c *gin.Context)
- func GetCommentsAction(c *gin.Context)
- func GetFeedSettingsAction(c *gin.Context)
- func GetI18nSettingsAction(c *gin.Context)
- func GetNavigationAction(c *gin.Context)
- func GetNavigationsAction(c *gin.Context)
- func GetPreferenceSettingsAction(c *gin.Context)
- func GetSignSettingsAction(c *gin.Context)
- func GetTagsAction(c *gin.Context)
- func GetThemesAction(c *gin.Context)
- func GetUsersAction(c *gin.Context)
- func ImportMarkdownAction(c *gin.Context)
- func LoginCheck(c *gin.Context)
- func MarkdownAction(c *gin.Context)
- func RemoveArticleAction(c *gin.Context)
- func RemoveArticlesAction(c *gin.Context)
- func RemoveCategoryAction(c *gin.Context)
- func RemoveCommentAction(c *gin.Context)
- func RemoveCommentsAction(c *gin.Context)
- func RemoveNavigationAction(c *gin.Context)
- func ShowAdminPagesAction(c *gin.Context)
- func UpdateArticleAction(c *gin.Context)
- func UpdateBasicSettingsAction(c *gin.Context)
- func UpdateCategoryAction(c *gin.Context)
- func UpdateFeedSettingsAction(c *gin.Context)
- func UpdateI18nSettingsAction(c *gin.Context)
- func UpdateNavigationAction(c *gin.Context)
- func UpdatePreferenceSettingsAction(c *gin.Context)
- func UpdateSignSettingsAction(c *gin.Context)
- func UpdateThemeAction(c *gin.Context)
- type ConsoleArticle
- type ConsoleAuthor
- type ConsoleCategory
- type ConsoleComment
- type ConsoleNavigation
- type ConsoleTag
- type ConsoleTheme
- type ConsoleUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddArticleAction ¶
func AddCategoryAction ¶
func AddNavigationAction ¶
func AddUserAction ¶
func BlogSwitchAction ¶
func CheckVersion ¶
func ExportMarkdownAction ¶
func GenArticlesAction ¶
func GetArticleAction ¶
func GetArticleThumbsAction ¶
func GetArticlesAction ¶
func GetBasicSettingsAction ¶
func GetCategoriesAction ¶
func GetCategoryAction ¶
func GetCommentsAction ¶
func GetFeedSettingsAction ¶
func GetI18nSettingsAction ¶
func GetNavigationAction ¶
func GetNavigationsAction ¶
func GetSignSettingsAction ¶
func GetTagsAction ¶
func GetThemesAction ¶
func GetUsersAction ¶
func ImportMarkdownAction ¶
func LoginCheck ¶
func MarkdownAction ¶
func RemoveArticleAction ¶
func RemoveArticlesAction ¶
func RemoveCategoryAction ¶
func RemoveCommentAction ¶
func RemoveCommentsAction ¶
func RemoveNavigationAction ¶
func ShowAdminPagesAction ¶
func UpdateArticleAction ¶
func UpdateCategoryAction ¶
func UpdateNavigationAction ¶
func UpdateThemeAction ¶
Types ¶
type ConsoleArticle ¶
type ConsoleArticle struct { ID uint `json:"id"` Author *ConsoleAuthor `json:"author"` CreatedAt string `json:"createdAt"` Title string `json:"title"` Tags []*ConsoleTag `json:"tags"` URL string `json:"url"` Topped bool `json:"topped"` ViewCount int `json:"viewCount"` CommentCount int `json:"commentCount"` }
type ConsoleAuthor ¶
type ConsoleAuthor struct { URL string `json:"url"` Name string `json:"name"` AvatarURL string `json:"avatarURL"` }
func (*ConsoleAuthor) AvatarURLWithSize ¶
func (u *ConsoleAuthor) AvatarURLWithSize(size int) string
type ConsoleCategory ¶
type ConsoleComment ¶
type ConsoleComment struct { ID uint `json:"id"` Author *ConsoleAuthor `json:"author"` ArticleAuthor *ConsoleAuthor `json:"articleAuthor"` CreatedAt string `json:"createdAt"` Title string `json:"title"` Content template.HTML `json:"content"` URL string `json:"url"` }
type ConsoleNavigation ¶
type ConsoleNavigation struct {}
type ConsoleTag ¶
type ConsoleTheme ¶
Click to show internal directories.
Click to hide internal directories.