mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 10:12:59 +00:00
17 lines
353 B
Go
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"])
|
|
}
|