index.go 353 B

12345678910111213141516
  1. package admin
  2. import (
  3. "gfast/boot"
  4. "github.com/gogf/gf/frame/g"
  5. "github.com/gogf/gf/net/ghttp"
  6. "github.com/gogf/gf/util/gconv"
  7. )
  8. type Index struct{}
  9. func (c *Index) Index(r *ghttp.Request) {
  10. resp := boot.AdminGfToken.GetTokenData(r)
  11. g.Log().Debug(r.Router.Uri)
  12. r.Response.Write("hello Index-", gconv.Map(resp.Get("data"))["user_nickname"])
  13. }