controllers

package
v0.0.0-...-6b9e1a3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectController

type ObjectController struct {
	beego.Controller
}

Operations about object

func (*ObjectController) Delete

func (o *ObjectController) Delete()

@Title Delete @Description delete the object @Param objectId path string true "The objectId you want to delete" @Success 200 {string} delete success! @Failure 403 objectId is empty @router /:objectId [delete]

func (*ObjectController) Get

func (o *ObjectController) Get()

@Title Get @Description find object by objectid @Param objectId path string true "the objectid you want to get" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /:objectId [get]

func (*ObjectController) GetAll

func (o *ObjectController) GetAll()

@Title GetAll @Description get all objects @Success 200 {object} models.Object @Failure 403 :objectId is empty @router / [get]

func (*ObjectController) Post

func (o *ObjectController) Post()

@Title Create @Description create object @Param body body models.Object true "The object content" @Success 200 {string} models.Object.Id @Failure 403 body is empty @router / [post]

func (*ObjectController) Put

func (o *ObjectController) Put()

@Title Update @Description update the object @Param objectId path string true "The objectid you want to update" @Param body body models.Object true "The body" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /:objectId [put]

type UserController

type UserController struct {
	beego.Controller
}

Operations about Users

func (*UserController) Get

func (u *UserController) Get()

@Title Get @Description get user by uid @Param uid path string true "The key for staticblock" @Success 200 {object} models.User @Failure 403 :uid is empty @router /:uid [get]

func (*UserController) Post

func (u *UserController) Post()

@Title CreateUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]

Jump to

Keyboard shortcuts

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