homehttp

package
v1.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

type UserHttp struct {
	basehttp.BaseHttp
}

func (*UserHttp) AddAction added in v1.6.0

func (h *UserHttp) AddAction(c *yago.Ctx)

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

func (h *UserHttp) BaseListAction(c *yago.Ctx)

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 (h *UserHttp) CookieAction(c *yago.Ctx)

func (*UserHttp) DeleteAction added in v1.6.0

func (h *UserHttp) DeleteAction(c *yago.Ctx)

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

func (h *UserHttp) DetailAction(c *yago.Ctx)

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 (h *UserHttp) Hello2Action(c *yago.Ctx)

func (*UserHttp) HelloAction added in v1.6.0

func (h *UserHttp) HelloAction(c *yago.Ctx)

curl -X GET 'http://127.0.0.1:8080/user/hello?username=zhangsan'

func (*UserHttp) ListAction added in v1.6.0

func (h *UserHttp) ListAction(c *yago.Ctx)

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 (h *UserHttp) MetadataAction(c *yago.Ctx)

func (*UserHttp) NoRouterAction added in v1.6.0

func (h *UserHttp) NoRouterAction(c *yago.Ctx)

func (*UserHttp) PlusAction added in v1.6.3

func (h *UserHttp) PlusAction(c *yago.Ctx)

func (*UserHttp) UpdateAction added in v1.6.0

func (h *UserHttp) UpdateAction(c *yago.Ctx)

curl 'http://127.0.0.1:8080/user/update' -H "Content-type:application/json" -XPOST -d '{"id":2,"username":"zhangsan"}'

func (*UserHttp) UploadAction added in v1.6.0

func (h *UserHttp) UploadAction(c *yago.Ctx)

func (*UserHttp) UserDeleteAction added in v1.6.0

func (h *UserHttp) UserDeleteAction(c *yago.Ctx)

func (*UserHttp) UserGetAction added in v1.6.0

func (h *UserHttp) UserGetAction(c *yago.Ctx)

func (*UserHttp) UserSetAction added in v1.6.0

func (h *UserHttp) UserSetAction(c *yago.Ctx)

func (*UserHttp) UserUpdateAction added in v1.6.0

func (h *UserHttp) UserUpdateAction(c *yago.Ctx)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL