Commit b8e06f63 authored by miraclesu's avatar miraclesu

Add ParseForm function for *Controller

parent f5523388
...@@ -264,6 +264,10 @@ func (c *Controller) Input() url.Values { ...@@ -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)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment