diff --git a/backend/errcode/locale.en.toml b/backend/errcode/locale.en.toml new file mode 100644 index 0000000..a4399b2 --- /dev/null +++ b/backend/errcode/locale.en.toml @@ -0,0 +1,35 @@ +[err-permission] +other = "Permission denied" + +[err-user-not-found] +other = "User not found" + +[err-user-lock] +other = "User is locked" + +[err-password] +other = "Incorrect password" + +[err-invite-code-invalid] +other = "Invalid invitation code" + +[err-email-invalid] +other = "Invalid email format" + +[err-oauth-state-invalid] +other = "Invalid OAuth state" + +[err-unsupported-platform] +other = "Unsupported platform" + +[err-not-invited] +other = "Not invited" + +[err-dingtalk-not-enabled] +other = "DingTalk is not enabled" + +[err-custom-not-enabled] +other = "OAuth is not enabled" + +[err-user-limit] +other = "User limit reached" \ No newline at end of file diff --git a/backend/go.mod b/backend/go.mod index bc68b7e..f354304 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -4,7 +4,7 @@ go 1.23.7 require ( entgo.io/ent v0.14.4 - github.com/GoYoko/web v1.1.0 + github.com/GoYoko/web v1.3.0 github.com/cloudwego/eino v0.3.51 github.com/cloudwego/eino-ext/components/model/openai v0.0.0-20250710065240-482d48888f25 github.com/doquangtan/socket.io/v4 v4.0.8 diff --git a/backend/go.sum b/backend/go.sum index 055bcf6..1b82297 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -8,8 +8,8 @@ github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/GoYoko/web v1.1.0 h1:nIbtol5z0Y03d0nHsvGjv+W0fgmFRGUL8fzPN3kmrOY= -github.com/GoYoko/web v1.1.0/go.mod h1:DL9/gvuUG2jcBE1XUIY+9QBrrhdshzPEdxMCzR9jUHo= +github.com/GoYoko/web v1.3.0 h1:f59n1xkyEUjy/wF0ilX86oJWpyQrJJQQzGkRIve1YJw= +github.com/GoYoko/web v1.3.0/go.mod h1:DL9/gvuUG2jcBE1XUIY+9QBrrhdshzPEdxMCzR9jUHo= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo=