Add user info service

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-25 02:50:27 +08:00
parent 396ab10469
commit f8b6c1b1df
5 changed files with 45 additions and 3 deletions

12
service/user/handler.go Normal file
View File

@@ -0,0 +1,12 @@
package user
import (
"nixcn-cms/internal/crypto/jwt"
"github.com/gin-gonic/gin"
)
func Handler(r *gin.RouterGroup) {
r.Use(jwt.JWTAuth())
r.GET("/info", UserInfo)
}