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:
parent
f552338822
commit
b8e06f6365
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user