This commit is contained in:
zhangwenjian committed 2020-04-13 00:30:58 +08:00
1 parent f25da5f1ee
commit 1df55e75e5
72 files changed
+1401 -1559

No files matched your search

+3 -2
View File
@@ -4,13 +4,14 @@ import (
"github.com/gin-gonic/gin"
jwt "go-admin/pkg/jwtauth"
"log"
"net/http"
)
func NoFound(c *gin.Context) {
claims := jwt.ExtractClaims(c)
log.Printf("NoRoute claims: %#v\n", claims)
c.JSON(404, gin.H{
"code": "NOT_FOUND",
c.JSON(http.StatusOK, gin.H{
"code": "404",
"message": "not found",
})
}