🏗️ 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

21
common/i18n/keys.go Normal file
View File

@@ -0,0 +1,21 @@
package i18n
const I18nKey = "i18n"
const I18nCurrentLangKey = "language"
var (
defaultLangHeaderKey = "Accept-Language"
defaultErrCode uint32 = 10001
)
// SetDefaultLangHeaderKey sets the default value of the lang header key.
// need to be set before use
func SetDefaultLangHeaderKey(key string) {
defaultLangHeaderKey = key
}
// SetDefaultErrCode sets the default value of the err code.
// need to be set before use
func SetDefaultErrCode(code uint32) {
defaultErrCode = code
}