First merge from develop to main (WIP) #7

Merged
sugar merged 199 commits from develop into main 2026-01-27 17:47:07 +00:00
8 changed files with 23 additions and 27 deletions
Showing only changes of commit 2e11fc5d9c - Show all commits

View File

@@ -1,5 +1,3 @@
//go:build ignore
package main
import (

4
go.mod
View File

@@ -17,7 +17,9 @@ require (
github.com/redis/go-redis/v9 v9.17.2
github.com/spf13/viper v1.21.0
golang.org/x/crypto v0.46.0
golang.org/x/text v0.33.0
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
gopkg.in/yaml.v3 v3.0.1
gorm.io/datatypes v1.2.7
gorm.io/driver/postgres v1.6.0
gorm.io/gorm v1.31.1
@@ -75,10 +77,8 @@ require (
golang.org/x/net v0.48.0 // indirect
golang.org/x/sync v0.19.0 // indirect
golang.org/x/sys v0.39.0 // indirect
golang.org/x/text v0.33.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gorm.io/driver/mysql v1.5.6 // indirect
)

2
go.sum
View File

@@ -346,8 +346,6 @@ golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU=
golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY=
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE=
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8=
golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE=

View File

@@ -2,12 +2,12 @@
package exception
const (
CommonErrorInvalidInput = "00001"
CommonErrorUnauthorized = "00002"
CommonErrorInternal = "00003"
CommonErrorPermissionDenied = "00004"
CommonErrorUuidParseFailed = "00005"
CommonErrorDatabase = "00006"
CommonErrorMissingUserId = "00007"
CommonErrorUserNotFound = "00008"
CommonErrorInvalidInput = "00001"
CommonErrorUnauthorized = "00002"
CommonErrorInternal = "00003"
)

View File

@@ -2,19 +2,19 @@
package exception
const (
EndpointAuthServiceRefresh = "04"
EndpointAuthServiceExchange = "05"
EndpointAuthServiceRedirect = "01"
EndpointAuthServiceMagic = "02"
EndpointAuthServiceToken = "03"
EndpointAuthServiceRefresh = "04"
EndpointEventServiceCheckinQuery = "03"
EndpointEventServiceCheckinSubmit = "04"
EndpointEventServiceInfo = "01"
EndpointEventServiceCheckin = "02"
EndpointEventServiceCheckinQuery = "03"
EndpointEventServiceCheckinSubmit = "04"
EndpointUserServiceInfo = "01"
EndpointUserServiceUpdate = "02"
EndpointUserServiceList = "03"
EndpointUserServiceFull = "04"
EndpointUserServiceCreate = "05"
EndpointUserServiceInfo = "01"
EndpointUserServiceUpdate = "02"
EndpointMiddlewareService = "01"
)

View File

@@ -2,7 +2,7 @@
package exception
const (
ServiceAuth = "001"
ServiceUser = "002"
ServiceEvent = "003"
ServiceAuth = "001"
)

View File

@@ -3,20 +3,20 @@ package exception
const (
ApiVersionNotFound = "00001"
AuthRedirectUriMismatch = "00003"
AuthRedirectInvalidUri = "00004"
AuthRedirectTokenInvalid = "00001"
AuthRedirectClientNotFound = "00002"
AuthMagicInvalidExternalUrl = "00003"
AuthMagicInvalidEmailConfig = "00004"
AuthMagicTurnstileFailed = "00001"
AuthMagicCodeGenFailed = "00002"
AuthTokenInvalidToken = "00001"
AuthTokenGenFailed = "00002"
AuthRefreshInvalidToken = "00001"
AuthRefreshRenewFailed = "00002"
AuthExchangeGetUserIdFailed = "00001"
AuthExchangeCodeGenFailed = "00002"
AuthExchangeInvalidRedirectUri = "00003"
AuthRedirectClientNotFound = "00002"
AuthRedirectUriMismatch = "00003"
AuthRedirectInvalidUri = "00004"
AuthRedirectTokenInvalid = "00001"
AuthMagicCodeGenFailed = "00002"
AuthMagicInvalidExternalUrl = "00003"
AuthMagicInvalidEmailConfig = "00004"
AuthMagicTurnstileFailed = "00001"
AuthTokenInvalidToken = "00001"
AuthTokenGenFailed = "00002"
UserListMeilisearchFailed = "00001"
)

View File

@@ -2,8 +2,8 @@
package exception
const (
StatusClient = "6"
StatusSuccess = "2"
StatusUser = "4"
StatusServer = "5"
StatusClient = "6"
StatusSuccess = "2"
)