1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-29 07:47:22 +00:00

next version preparation: hero, mvc: fix payload binding

Former-commit-id: d95f750dd9e1532c9ac0d30a85b383d60acb3178
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-03-04 10:29:34 +02:00
parent 409f83ca66
commit 5ee06f9a92
3 changed files with 33 additions and 13 deletions

View File

@@ -227,7 +227,7 @@ func (m *MyController) MyCustomHandler(id int64) string { return "MyCustomHandle
如果是 `mvc.New(app.Party("/assets")).Handle(new(file.Controller))`
- `func(*Controller) GetByWildard(path string)` - `GET:/assets/{param:path}`
- `func(*Controller) GetByWildcard(path string)` - `GET:/assets/{param:path}`
支持的函数接收者类型是int, int64, bool and string。