Documentation ¶
Index ¶
- type HomeHttp
- func (h *HomeHttp) AddAction(c *yago.Ctx)
- func (h *HomeHttp) DeleteAction(c *yago.Ctx)
- func (h *HomeHttp) DetailAction(c *yago.Ctx)
- func (h *HomeHttp) HelloAction(c *yago.Ctx)
- func (h *HomeHttp) ListAction(c *yago.Ctx)
- func (h *HomeHttp) NoRouterAction(c *yago.Ctx)
- func (h *HomeHttp) UpdateAction(c *yago.Ctx)
- func (h *HomeHttp) UploadAction(c *yago.Ctx)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HomeHttp ¶
func (*HomeHttp) AddAction ¶
curl 'http://127.0.0.1:8080/home/add' -H "Content-type:application/x-www-form-urlencoded" -XPOST -d name=lisi
func (*HomeHttp) DeleteAction ¶
curl 'http://127.0.0.1:8080/home/delete' -H "Content-type:application/json" -XPOST -d '{"id":1}'
func (*HomeHttp) DetailAction ¶
curl 'http://127.0.0.1:8080/home/detail?id=2' -H "Content-type:application/json" -XGET
func (*HomeHttp) HelloAction ¶
curl -X GET 'http://127.0.0.1:8080/home/hello?name=zhangsan'
func (*HomeHttp) ListAction ¶
curl 'http://127.0.0.1:8080/home/list' -H "Content-type:application/json" -XPOST -d '{"pagesize":1}'
func (*HomeHttp) NoRouterAction ¶ added in v1.2.9
func (*HomeHttp) UpdateAction ¶
curl 'http://127.0.0.1:8080/home/update' -H "Content-type:application/json" -XPOST -d '{"id":2,"name":"zhangsan"}'
func (*HomeHttp) UploadAction ¶
Click to show internal directories.
Click to hide internal directories.