From 331089a39d19dd61d26769cdcb98ac86c327d0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Wed, 10 Aug 2022 15:28:57 +0800 Subject: [PATCH] =?UTF-8?q?enhance(response):=E5=BA=94=E7=94=A8=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9B=B8=E5=BA=94=E7=9A=84=E5=87=BD=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/router.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/router/router.go b/router/router.go index 66f8622..92cef94 100644 --- a/router/router.go +++ b/router/router.go @@ -15,12 +15,12 @@ func Router() *gin.Engine { return router } -//404 +// 404 func HandleNotFound(c *gin.Context) { - response.NewResult(c).Error(404, "资源未找到") + response.NewResult(c).NotFound("指定资源未找到。") } -//500 +// 500 func Recover(c *gin.Context) { defer func() { if r := recover(); r != nil {