index.go 289 B

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