Documentation
¶
Index ¶
- func ArticleCategoryLabel() []datastruct.Option[string, uint64]
- func ArticleCategoryMap() map[uint64]*articleCategory.Entity
- func ArticlesSmallEntity2Dto(data []articles.SmallEntity) []vo.ArticlesSimpleDto
- func ArticlesSmallEntityWithUser2Dto(data []articles.SmallEntity, userMap map[uint64]*users.EntityComplete) []vo.ArticlesSimpleDto
- func GetAnnouncementConfigCache() pageConfig.AnnouncementConfig
- func GetArticleCategory() []*articleCategory.Entity
- func GetArticlesType() *[]datastruct.Option[string, int]
- func GetArticlesTypeName(iType int) string
- func GetFooterConfigCache() pageConfig.FooterConfig
- func GetLatestArticleSimpleDto() []vo.ArticlesSimpleDto
- func GetLatestArticles() []articles.SmallEntity
- func GetMailSettingsConfigCache() pageConfig.MailSettingsConfig
- func GetOrLoad[T any](key string, load func() (T, error)) T
- func GetRecommendedArticles() []articles.SmallEntity
- func GetSiteSettingsConfigCache() pageConfig.SiteSettingsConfig
- func GetSiteStatisticsData() vo.SiteStats
- func Reload[T any](key string, dataObj T) error
- func SponsorsConfigCache() pageConfig.SponsorsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArticleCategoryLabel ¶ added in v0.0.9
func ArticleCategoryLabel() []datastruct.Option[string, uint64]
func ArticleCategoryMap ¶ added in v0.0.9
func ArticleCategoryMap() map[uint64]*articleCategory.Entity
ArticleCategoryMap GetMapByIds 根据ID列表获取分类Map
func ArticlesSmallEntity2Dto ¶ added in v0.0.9
func ArticlesSmallEntity2Dto(data []articles.SmallEntity) []vo.ArticlesSimpleDto
func ArticlesSmallEntityWithUser2Dto ¶ added in v0.0.9
func ArticlesSmallEntityWithUser2Dto(data []articles.SmallEntity, userMap map[uint64]*users.EntityComplete) []vo.ArticlesSimpleDto
func GetAnnouncementConfigCache ¶ added in v0.0.9
func GetAnnouncementConfigCache() pageConfig.AnnouncementConfig
func GetArticleCategory ¶ added in v0.0.9
func GetArticleCategory() []*articleCategory.Entity
func GetArticlesType ¶ added in v0.0.9
func GetArticlesType() *[]datastruct.Option[string, int]
func GetArticlesTypeName ¶ added in v0.0.9
func GetFooterConfigCache ¶
func GetFooterConfigCache() pageConfig.FooterConfig
func GetLatestArticleSimpleDto ¶ added in v0.0.9
func GetLatestArticleSimpleDto() []vo.ArticlesSimpleDto
func GetLatestArticles ¶ added in v0.0.9
func GetLatestArticles() []articles.SmallEntity
func GetMailSettingsConfigCache ¶
func GetMailSettingsConfigCache() pageConfig.MailSettingsConfig
func GetRecommendedArticles ¶ added in v0.0.9
func GetRecommendedArticles() []articles.SmallEntity
func GetSiteSettingsConfigCache ¶
func GetSiteSettingsConfigCache() pageConfig.SiteSettingsConfig
func GetSiteStatisticsData ¶ added in v0.0.9
func SponsorsConfigCache ¶
func SponsorsConfigCache() pageConfig.SponsorsConfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.