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 {