homehttp

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HomeHttp

type HomeHttp struct {
	basehttp.BaseHttp
}

func (*HomeHttp) AddAction

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

curl 'http://127.0.0.1:8080/home/add' -H "Content-type:application/x-www-form-urlencoded" -XPOST -d "name=lisi&phone=13090001112"

func (*HomeHttp) DeleteAction

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

curl 'http://127.0.0.1:8080/home/delete' -H "Content-type:application/json" -XPOST -d '{"id":1}'

func (*HomeHttp) DetailAction

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

curl 'http://127.0.0.1:8080/home/detail?id=2' -H "Content-type:application/json" -XGET

func (*HomeHttp) HelloAction

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

curl -X GET 'http://127.0.0.1:8080/home/hello?name=zhangsan'

func (*HomeHttp) ListAction

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

curl 'http://127.0.0.1:8080/home/list' -H "Content-type:application/json" -XPOST -d '{"pagesize":1}'

func (*HomeHttp) MetadataAction added in v1.6.0

func (h *HomeHttp) MetadataAction(c *yago.Ctx)

func (*HomeHttp) NoRouterAction

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

func (*HomeHttp) UpdateAction

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

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

func (*HomeHttp) UploadAction

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

type HttpMetadata added in v1.6.0

type HttpMetadata struct {
	Label string `json:"label"`
}

Jump to

Keyboard shortcuts

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