func (this *BachelorsNameController) Post() {
	inputName := this.GetString("name")
	if inputName != "" {
		res := models.GetBachelorsListByName(inputName)
		this.Data["list"] = res.Info
		this.TplName = "b_search.html"
	} else {
		this.TplName = "404.html"
	}
}
list: search item by name
package controllers
import (
	models "Pages/models"
	"strconv"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/logs"
)
type BachelorsIdController struct {
	beego.Controller
}
type BachelorsNameController struct {
	beego.Controller
}
func (this *BachelorsNameController) Get() {
	this.Data["Path"] = this.Ctx.Request.RequestURI
	this.TplName = "b_index.html"
}