Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexController ¶
type IndexController struct { Ctx iris.Context ServiceADemo services.ADemoService }
func (*IndexController) Get ¶
func (c *IndexController) Get() string
Get http://localhost:8080/demo 返回html页面
func (*IndexController) GetBoom ¶
func (c *IndexController) GetBoom()
Get http://localhost:8080/demo/boom 返回错误页面
func (*IndexController) GetInfo ¶
func (c *IndexController) GetInfo() map[string]interface{}
Get http://localhost:8080/demo/info 返回json数据
Click to show internal directories.
Click to hide internal directories.