Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
|
|
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"
|
|
|
|
}
|