Documentation ¶
Index ¶
- func BaiduUrlPush(urls []string)
- func BuildAbsUrl(path string) string
- func BuildArticleUrl(articleId int64) string
- func BuildTopicUrl(topicId int64) 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 IsInternalUrl(rawUrl string) bool
- 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 IsInternalUrl ¶ added in v1.0.5
func IsValidateUsername ¶ added in v1.0.2
验证用户名合法性,用户名必须由5-12位(数字、字母、_、-)组成,且必须以字母开头。
func SendTemplateEmail ¶ added in v1.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.