add api validation signature

This commit is contained in:
landaiqing
2024-09-28 00:20:13 +08:00
parent 03c5b92515
commit bd2e8b8f6c
14 changed files with 173 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
package constant
// 登录相关的redis key
const (
// 登录相关的redis key
UserLoginSmsRedisKey = "user:sms:"
UserLoginTokenRedisKey = "user:token:"
UserLoginCaptchaRedisKey = "user:captcha:"
@@ -10,8 +10,14 @@ const (
UserSessionRedisKey = "user:session:"
)
// 登录之后
// 评论相关的redis key
const (
CommentSubmitCaptchaRedisKey = "comment:submit:captcha:"
CommentOfflineMessageRedisKey = "comment:offline:message:"
)
// 系统相关的redis key
const (
SystemApiNonceRedisKey = "system:api:nonce:"
)