feat(app): update

This commit is contained in:
Yangtao
2025-11-19 14:24:13 +08:00
parent 1eac66d7fd
commit 0c34585649
329 changed files with 10760 additions and 281 deletions

View File

@ -1,9 +1,10 @@
package middleware
import (
"github.com/gin-gonic/gin"
"net/http"
"runtime/debug"
"github.com/gin-gonic/gin"
)
func Recover(c *gin.Context) {
@ -25,7 +26,7 @@ func Recover(c *gin.Context) {
c.Next()
}
func errorToString(r interface{}) string {
func errorToString(r any) string {
switch v := r.(type) {
case error:
return v.Error()