Files
gfast/app/controller/admin/index.go
T
2020-01-16 18:08:46 +08:00

17 lines
353 B
Go

package admin
import (
"gfast/boot"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/util/gconv"
)
type Index struct{}
func (c *Index) Index(r *ghttp.Request) {
resp := boot.AdminGfToken.GetTokenData(r)
g.Log().Debug(r.Router.Uri)
r.Response.Write("hello Index-", gconv.Map(resp.Get("data"))["user_nickname"])
}