Files
gfast/app/controller/admin/index.go
T

15 lines
289 B
Go

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