deprecated-oc-search/controllers/partner.go
2023-08-26 22:04:56 +02:00

29 lines
507 B
Go

package controllers
import (
beego "github.com/beego/beego/v2/server/web"
)
// PartnerController shows partners on a map
type PartnerController struct {
beego.Controller
}
// Get i
func (c *PartnerController) Get() {
c.Data["Website"] = "beego.me"
c.Data["Email"] = "astaxie@gmail.com"
c.TplName = "item.tpl"
c.EnableXSRF = false
}
// Add i
func (c *PartnerController) Add() {
c.Data["Website"] = "beego.me"
c.Data["Email"] = "astaxie@gmail.com"
c.TplName = "map.tpl"
c.EnableXSRF = false
}