controllers

package
Version: v0.0.0-...-632f8f1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCode

func GetCode() string

Types

type SmsController

type SmsController struct {
	beego.Controller
}

func (*SmsController) Send

func (c *SmsController) Send()

type UserController

type UserController struct {
	beego.Controller
}

func (*UserController) AddUser

func (u *UserController) AddUser()

@Title Add A User @Description create user @Param username query string false "username" @Param gender query string false "gender" @Param age query int false "age" @Param address query string false "address" @Param email query string false "email" @Param phone query string false "phone" @Success 200 {string} uid @Failure 400 {error} err @router /add [post]

func (*UserController) DeleteUser

func (u *UserController) DeleteUser()

@Title Delete One Users @Description Get The Users @Success 200 {string} "delete success" @Param uid query string false "id" @Failure 400 {error} err @router /delete [get]

func (*UserController) GetAllUsers

func (u *UserController) GetAllUsers()

@Title Get All Users @Description Get All The Users @Success 200 {object} []*Users @Failure 400 {error} err @router /all [get]

func (*UserController) GetOneUser

func (u *UserController) GetOneUser()

@Title Get One Users @Description Get The Users @Success 200 {object} *Users @Param uid query string false "id" @Failure 400 {error} err @router /one [get]

func (*UserController) Login

func (u *UserController) Login()

@Title Delete One Users @Description Get The Users @Success 200 {string} "{\"status_code\":\"200\",\"message\":\"login success\"}" @Param phone query string false "phone" @Param code query string false @Failure 400 {string} "{\"status_code\":\"400\",\"message\":\"login failed\"}" @router /login [post]

func (*UserController) UpdateUser

func (u *UserController) UpdateUser()

@Title Update A User @Description Update user @Param uid query string false "id" @Param username query string false "username" @Param gender query string false "gender" @Param age query int false "age" @Param address query string false "address" @Param email query string false "email" @Success 200 {object} *Users @Failure 400 {error} err @router /update [post]

Source Files

Jump to

Keyboard shortcuts

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