调整方法

This commit is contained in:
yun
2025-10-26 20:58:12 +08:00
parent d1bda7e355
commit 8eaa8a6933
5 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import (
// 定义错误常量
type ErrorLanguage struct {
langx.LangError
ErrorInterface
}
// 生成错误常量
@@ -17,7 +17,7 @@ func NewLanguage(uniKey string, code int, defaultValue string) ErrorLanguage {
langx.AppendCode(map[string]int{uniKey: code})
langx.AppendTrans(langx.GetDefaultLang(), map[string]string{uniKey: defaultValue})
l := langx.NewStruct(context.Background(), uniKey, nil)
l := NewStruct(context.Background(), uniKey, nil)
return ErrorLanguage{l}
}