deprecated-oc-search/controllers/item.go

29 lines
507 B
Go
Raw Normal View History

2023-08-26 22:04:56 +02:00
package controllers
import (
beego "github.com/beego/beego/v2/server/web"
)
// ItemController shows partners on a map
type ItemController struct {
beego.Controller
}
// Get items
func (c *ItemController) Get() {
c.Data["Website"] = "beego.me"
c.Data["Email"] = "astaxie@gmail.com"
c.TplName = "item.tpl"
c.EnableXSRF = false
}
// Add item
func (c *ItemController) Add() {
c.Data["Website"] = "beego.me"
c.Data["Email"] = "astaxie@gmail.com"
c.TplName = "item_add.tpl"
c.EnableXSRF = false
}