refactor: update exception constants to follow new naming convention

- Update old ErrorStatus, ErrorType, and Service/Endpoint constants to new naming convention
- Fix incorrect TypeSpecific usage in JWT middleware
- Add missing event specific error definitions to specific.yaml
- Regenerate exception constants

Co-authored-by: Gemini <gemini@google.com>
This commit is contained in:
2026-01-21 14:31:03 +08:00
parent b1c78dce28
commit 14f50ecdb2
12 changed files with 236 additions and 229 deletions

View File

@@ -20,7 +20,7 @@ func JWTAuth() gin.HandlerFunc {
SetStatus(exception.StatusServer).
SetService(exception.MiddlewareServiceJwt).
SetEndpoint(exception.EndpointMiddlewareService).
SetType(exception.TypeSpecific).
SetType(exception.TypeCommon).
SetOriginal(exception.CommonErrorUnauthorized).
Build()