Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserTableName = `user` UserExtTableName = "user_ext" ResumeTableName = "resume" UserActionLogTableName = "user_action_log" FollowTableName = "user_follow" )
View Source
const ( ActiveDuration = 24 * 60 * 60 ResetDuration = 24 * 60 * 60 VerificationCodeDuration = 5 * 60 )
View Source
const ( // 生成激活账号的链接 ActiveTimeKey = "ActiveTime_" // 生成重置密码的链接 ResetTimeKey = "ResetTime_" // 用户信息 LoginUserKey = "LoginUser_" // 用户每分钟最多能发表的文章数 MomentMinuteLimitKey = "MomentMinuteLimit_" // 用户每天最多能发表的文章数 MomentDayLimitKey = "MomentDayLimit_" // 用户每分钟最多能发表的文章数 ArticleMinuteLimitKey = "ArticleMinuteLimit_" // 用户每天最多能发表的文章数 ArticleDayLimitKey = "ArticleDayLimit_" // 用户每分钟最多能发表的评论数 CommentMinuteLimitKey = "CommentMinuteLimit_" // 用户每天最多能发表的评论数 CommentDayLimitKey = "CommentDayLimit_" VerificationCodeKey = "VerificationCode_" UserExtKey = "User_Ext_" )
View Source
const ( ActionActiveContent = `ActionActiveContent` ActionActiveTemplate = `` /* 453-byte string literal not displayed */ ActionRestPasswordContent = `ActionRestPasswordContent` ActionRestPasswordTemplate = `` /* 428-byte string literal not displayed */ )
View Source
const (
DefaultAvatar = "/static/images/6cbeb5c8-7160-4b6f-a342-d96d3c00367a.jpg"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorities ¶
type Authorities []Authority
func (Authorities) Sql ¶
func (f Authorities) Sql() string
func (Authorities) Value ¶
func (f Authorities) Value() int
Click to show internal directories.
Click to hide internal directories.