Documentation ¶
Index ¶
- type IndexHttp
- func (h *IndexHttp) CookieAction(c *yago.Ctx)
- func (h *IndexHttp) Hello2Action(c *yago.Ctx)
- func (h *IndexHttp) HelloAction(c *yago.Ctx)
- func (h *IndexHttp) IndexAction(c *yago.Ctx)
- func (h *IndexHttp) MetadataAction(c *yago.Ctx)
- func (h *IndexHttp) NoRouterAction(c *yago.Ctx)
- func (h *IndexHttp) UploadAction(c *yago.Ctx)
- type UserHttp
- func (h *UserHttp) AddAction(c *yago.Ctx)
- func (h *UserHttp) DeleteAction(c *yago.Ctx)
- func (h *UserHttp) DetailAction(c *yago.Ctx)
- func (h *UserHttp) ListAction(c *yago.Ctx)
- func (h *UserHttp) PlusAction(c *yago.Ctx)
- func (h *UserHttp) UpdateAction(c *yago.Ctx)
- func (h *UserHttp) UserDeleteAction(c *yago.Ctx)
- func (h *UserHttp) UserGetAction(c *yago.Ctx)
- func (h *UserHttp) UserSetAction(c *yago.Ctx)
- func (h *UserHttp) UserUpdateAction(c *yago.Ctx)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexHttp ¶
func (*IndexHttp) CookieAction ¶
func (*IndexHttp) Hello2Action ¶
curl -X GET 'http://127.0.0.1:8080/hello2?name=zhangsan'
func (*IndexHttp) HelloAction ¶
curl -X GET 'http://127.0.0.1:8080/hello?username=zhangsan'
func (*IndexHttp) IndexAction ¶
func (*IndexHttp) MetadataAction ¶
func (*IndexHttp) NoRouterAction ¶
func (*IndexHttp) UploadAction ¶
type UserHttp ¶
func (*UserHttp) AddAction ¶
curl 'http://127.0.0.1:8080/demo/user/add' -H "Content-type:application/x-www-form-urlencoded" -XPOST -d "username=lisi&phone=13090001112"
func (*UserHttp) DeleteAction ¶
curl 'http://127.0.0.1:8080/demo/user/delete' -H "Content-type:application/json" -XPOST -d '{"id":1}'
func (*UserHttp) DetailAction ¶
curl 'http://127.0.0.1:8080/demo/user/detail?id=2' -H "Content-type:application/json" -XGET
func (*UserHttp) ListAction ¶
curl 'http://127.0.0.1:8080/user/list' -H "Content-type:application/json" -XPOST -d '{"page_size":10,"page_num":1}'
func (*UserHttp) PlusAction ¶
func (*UserHttp) UpdateAction ¶
curl 'http://127.0.0.1:8080/demo/user/update' -H "Content-type:application/json" -XPOST -d '{"id":2,"username":"zhangsan"}'