feat: 增加全局 panic 捕获的中间件

This commit is contained in:
2026-01-04 11:44:23 +08:00
parent 85f2008997
commit 330f7c880d
3 changed files with 40 additions and 0 deletions

View File

@@ -53,4 +53,5 @@ const (
CodeLogicErrorWrapper = "logic-error-wrapper"
CodeLogicSseInitError = "sse-init-error"
CodeLogicSseClosedError = "sse-closed-error"
CodeServicePanic = "service-panic" // 服务发生 panic
)