controller

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID       int    `json:"id"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type UserController

type UserController struct {
	at.RestController

	at.RequestMapping `value:"/user" `
}

func (*UserController) DeleteUser

func (c *UserController) DeleteUser(at struct {
	at.DeleteMapping `value:"/{id}"`
}, id int) (response *UserResponse)

GetUser

func (*UserController) GetUser

func (c *UserController) GetUser(at struct {
	at.GetMapping `value:"/{id}"`
}, id int) (response *UserResponse)

GetUser

type UserResponse

type UserResponse struct {
	at.ResponseBody `json:"-"`
	model.BaseResponse
	Data *User `json:"data"`
}

Jump to

Keyboard shortcuts

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