controller

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 6 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 {
	at.RestController
	at.RequestMapping `value:"/user"`
	// contains filtered or unexported fields
}

hi: RestController

func (*UserController) DeleteById

func (c *UserController) DeleteById(at struct {
	at.DeleteMapping `value:"/{id}"`
}, id string) (response model.Response, err error)

Delete /user/id/{id}

func (*UserController) GetById

func (c *UserController) GetById(at struct {
	at.GetMapping `value:"/{id}"`
}, id string) (model.Response, error)

Get /user/id/{id}

func (*UserController) Post

func (c *UserController) Post(at struct {
	at.PostMapping `value:"/"`
}, 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