Documentation ¶
Index ¶
- type HttpMetadata
- type UserHttp
- func (h *UserHttp) AddAction(c *yago.Ctx)
- func (h *UserHttp) BaseListAction(c *yago.Ctx)
- func (h *UserHttp) CookieAction(c *yago.Ctx)
- func (h *UserHttp) DeleteAction(c *yago.Ctx)
- func (h *UserHttp) DetailAction(c *yago.Ctx)
- func (h *UserHttp) Hello2Action(c *yago.Ctx)
- func (h *UserHttp) HelloAction(c *yago.Ctx)
- func (h *UserHttp) ListAction(c *yago.Ctx)
- func (h *UserHttp) MetadataAction(c *yago.Ctx)
- func (h *UserHttp) NoRouterAction(c *yago.Ctx)
- func (h *UserHttp) PlusAction(c *yago.Ctx)
- func (h *UserHttp) UpdateAction(c *yago.Ctx)
- func (h *UserHttp) UploadAction(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 HttpMetadata ¶ added in v1.4.4
type HttpMetadata struct {
Label string `json:"label"`
}
type UserHttp ¶ added in v1.6.0
func (*UserHttp) AddAction ¶ added in v1.6.0
curl 'http://127.0.0.1:8080/user/add' -H "Content-type:application/x-www-form-urlencoded" -XPOST -d "username=lisi&phone=13090001112"
func (*UserHttp) BaseListAction ¶ added in v1.6.0
curl 'http://127.0.0.1:8080/user/base-list' -H "Content-type:application/json" -XPOST -d '{"page":1}'
func (*UserHttp) CookieAction ¶ added in v1.6.0
func (*UserHttp) DeleteAction ¶ added in v1.6.0
curl 'http://127.0.0.1:8080/user/delete' -H "Content-type:application/json" -XPOST -d '{"id":1}'
func (*UserHttp) DetailAction ¶ added in v1.6.0
curl 'http://127.0.0.1:8080/user/detail?id=2' -H "Content-type:application/json" -XGET
func (*UserHttp) Hello2Action ¶ added in v1.6.0
func (*UserHttp) HelloAction ¶ added in v1.6.0
curl -X GET 'http://127.0.0.1:8080/user/hello?username=zhangsan'
func (*UserHttp) ListAction ¶ added in v1.6.0
curl 'http://127.0.0.1:8080/user/list' -H "Content-type:application/json" -XPOST -d '{"pagesize":1}'
func (*UserHttp) MetadataAction ¶ added in v1.6.0
func (*UserHttp) NoRouterAction ¶ added in v1.6.0
func (*UserHttp) PlusAction ¶ added in v1.6.3
func (*UserHttp) UpdateAction ¶ added in v1.6.0
curl 'http://127.0.0.1:8080/user/update' -H "Content-type:application/json" -XPOST -d '{"id":2,"username":"zhangsan"}'