Documentation ¶
Index ¶
- func BaiduUrlPush(urls []string)
- func BuildAbsUrl(path string) string
- func BuildArticleUrl(articleId int64) string
- func BuildArticlesUrl(page int) string
- func BuildCategoryArticlesUrl(categoryId int64, page int) string
- func BuildMessagesUrl(page int) string
- func BuildTagArticlesUrl(tagId int64, page int) string
- func BuildTagTopicsUrl(tagId int64, page int) string
- func BuildTagsUrl(page int) string
- func BuildTopicUrl(topicId int64) string
- func BuildTopicsUrl(page int) string
- func BuildUserArticlesUrl(userId int64, page int) string
- func BuildUserFavoritesUrl(userId int64, page int) string
- func BuildUserTopicsUrl(userId int64, page int) string
- func BuildUserUrl(userId int64) string
- func GetMarkdownSummary(markdown string) string
- func GetUserRoles(roles string) []string
- func IndexOf(userIds []int64, userId int64) int
- func InitEmail()
- func IsProd() bool
- func IsValidateUsername(username string) bool
- func SendEmail(to string, subject, html string) error
- func SendTemplateEmail(to, subject, title, content, quoteContent, url string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAbsUrl ¶
func BuildCategoryArticlesUrl ¶
分类文章列表
func IsValidateUsername ¶
验证用户名合法性,用户名必须由5-12位(数字、字母、_、-)组成,且必须以字母开头。
func SendTemplateEmail ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.