mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-25 09:06:34 +08:00
refactor: db/redis/mongo连接代码包独立
This commit is contained in:
@@ -109,6 +109,7 @@ func ErrorRes(g *gin.Context, err any) {
|
||||
g.JSON(http.StatusOK, model.ServerError())
|
||||
default:
|
||||
logx.Errorf("未知错误: %v", t)
|
||||
g.JSON(http.StatusOK, model.ServerError())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user