improve GetRequestForm, extend templates
This commit is contained in:
parent
a970ada00b
commit
90564daa5b
4 changed files with 9 additions and 4 deletions
|
|
@ -68,8 +68,9 @@ func (c *Context) RequestParamExists(key string) bool {
|
|||
return c.Request.httpRequest.Form.Has(key)
|
||||
}
|
||||
|
||||
func (c *Context) GetRequesForm() interface{} {
|
||||
return c.Request.httpRequest.Form
|
||||
func (c *Context) GetRequesForm(key string) interface{} {
|
||||
c.Request.httpRequest.ParseForm()
|
||||
return c.Request.httpRequest.Form[key]
|
||||
}
|
||||
|
||||
func (c *Context) GetRequesBodyMap() map[string]interface{} {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue