1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 17:50:58 +00:00

Add ParseForm function for *Controller

This commit is contained in:
miraclesu 2013-07-25 22:26:31 +08:00
parent f552338822
commit b8e06f6365

View File

@ -264,6 +264,10 @@ func (c *Controller) Input() url.Values {
return c.Ctx.Request.Form return c.Ctx.Request.Form
} }
func (c *Controller) ParseForm(obj interface{}) error {
return ParseForm(c.Input(), obj)
}
func (c *Controller) GetString(key string) string { func (c *Controller) GetString(key string) string {
return c.Input().Get(key) return c.Input().Get(key)
} }