controller

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 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}

func (*UserController) GetById

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

Get /user/{id}

func (*UserController) Init

func (c *UserController) Init(userService *service.UserService)

Init inject userService automatically

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