code migration

This commit is contained in:
landaiqing
2024-11-15 02:02:19 +08:00
parent b2d753e832
commit 34c4690f80
85 changed files with 4349 additions and 421 deletions

View File

@@ -0,0 +1,8 @@
package constant
const (
OAuthSourceWechat = "wechat"
OAuthSourceQQ = "qq"
OAuthSourceGithub = "github"
OAuthSourceGitee = "gitee"
)

View File

@@ -1,9 +1,26 @@
package constant
// 用户相关的redis key
const (
UserClientPrefix string = "user:client:"
UserSessionPrefix string = "user:session:"
UserCaptchaPrefix string = "user:captcha:"
UserTokenPrefix string = "user:token:"
UserSmsRedisPrefix string = "user:sms:"
UserQrcodePrefix = "user:qrcode:"
)
// 评论相关的redis key
const (
CommentSubmitCaptchaPrefix = "comment:submit:captcha:"
CommentOfflineMessagePrefix = "comment:offline:message:"
CommentLikeLockPrefix = "comment:like:lock:"
CommentDislikeLockPrefix = "comment:dislike:lock:"
CommentLikeListPrefix = "comment:like:list:"
CommentUserListPrefix = "comment:user:list:"
)
// 系统相关的redis key
const (
SystemApiNonceRedisKey = "system:controller:nonce:"
)