添加jwt请求验证功能

This commit is contained in:
2025-08-10 20:34:58 +08:00
parent f41a1a02d6
commit d490ecb405
5 changed files with 16 additions and 1 deletions

10
controllers/test/test.go Normal file
View 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": "处理请求成功"})
}