go_gin_tmpl/route/admin/user.go

12 lines
202 B
Go
Raw Permalink Normal View History

2022-05-09 09:00:14 +08:00
package admin
import (
"ginDemo/api/admin"
"github.com/gin-gonic/gin"
)
// 用户相关路由
func user(g *gin.RouterGroup) {
g.GET("", admin.UserApi().GetUser) // 获取当前登录用户信息
}