refactor: db/redis/mongo连接代码包独立

This commit is contained in:
meilin.huang
2023-10-27 17:41:45 +08:00
parent a1303b52eb
commit 12f63ef3dd
45 changed files with 1112 additions and 950 deletions

View File

@@ -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())
}
}