添加jwt请求验证功能
This commit is contained in:
10
controllers/test/test.go
Normal file
10
controllers/test/test.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func Testjwt(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{"code": 20002, "msg": "处理请求成功"})
|
||||
}
|
||||
Reference in New Issue
Block a user