add list template

This commit is contained in:
Jay
2019-02-26 17:42:56 +08:00
parent 6751afdfde
commit c67e110c7e
3 changed files with 43 additions and 7 deletions
+6
View File
@@ -48,6 +48,12 @@ func (p *Context) BindData(i interface{}) error {
return p.ShouldBindWith(i, b)
}
// HTML -
func (p *Context) HTML(tmpl string, data interface{}) {
p.Context.HTML(http.StatusOK, tmpl, data)
p.Abort()
}
// Success -
func (p *Context) Success(res ...interface{}) {
var resBody interface{}