🏗️ microservice fabric splitting

This commit is contained in:
2024-12-24 00:38:41 +08:00
parent 462e811742
commit 89d64336f5
311 changed files with 18384 additions and 2428 deletions

View File

@@ -0,0 +1,10 @@
package constant
const (
COMMENT int64 = iota
REPLY
)
const (
CommentTopicType int64 = iota
)

View File

@@ -0,0 +1,6 @@
package constant
const (
Female int64 = iota
Male
)

View File

@@ -0,0 +1,6 @@
package constant
const (
JWT_TYPE_ACCESS string = "access"
JWT_TYPE_REFRESH string = "refresh"
)

View File

@@ -0,0 +1,5 @@
package constant
const (
COMMENT_IMAGES = "comment_images"
)

View File

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

View File

@@ -0,0 +1,15 @@
package constant
// 用户相关的redis key
const (
UserClientPrefix string = "user:client:"
UserCaptchaPrefix string = "user:captcha:"
UserTokenPrefix string = "user:token:"
UserSmsRedisPrefix string = "user:sms:"
UserQrcodePrefix = "user:qrcode:"
)
// 系统相关的redis key
const (
SystemApiNoncePrefix = "system:nonce:"
)

3
common/constant/time.go Normal file
View File

@@ -0,0 +1,3 @@
package constant
const TimeFormat = "2006-01-02 15:04:05"

View File

@@ -0,0 +1,3 @@
package constant
const UID_HEADER_KEY = "X-UID"

View File

@@ -0,0 +1,7 @@
package constant
const (
Root string = "root"
Admin string = "admin"
User string = "user"
)