controller

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserController

type UserController struct {
	web.Controller
	// contains filtered or unexported fields
}

hi: RestController

func (*UserController) DeleteById

func (c *UserController) DeleteById(id string) (response model.Response, err error)

Delete /user/id/{id}

func (*UserController) GetById

func (c *UserController) GetById(id string) (model.Response, error)

Get /user/id/{id}

func (*UserController) Post

func (c *UserController) Post(user *entity.User) (model.Response, error)

Post /user

Jump to

Keyboard shortcuts

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