Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
|
|
package controllers
|
|
|
|
|
|
|
|
import beego "github.com/beego/beego/v2/server/web"
|
|
|
|
|
|
|
|
type MapController struct {
|
|
|
|
beego.Controller
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *MapController) Get() {
|
|
|
|
this.Data["UserId"] = this.GetSession("userid")
|
|
|
|
this.Data["HeadImg"] = this.GetSession("headimg")
|
|
|
|
this.Data["NickName"] = this.GetSession("nickname")
|
|
|
|
this.Data["IsLogin"] = this.GetSession("nickname") != nil
|
|
|
|
this.Data["IsMap"] = true
|
|
|
|
this.TplName = "map.html"
|
|
|
|
}
|