controllers

package
v0.0.0-...-c2a482a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2016 License: GPL-3.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 HomeController

type HomeController struct {
	beego.Controller
}

func (*HomeController) Get

func (ctl *HomeController) Get()

type RedirectController

type RedirectController struct {
	beego.Controller
}

func (*RedirectController) Get

func (ctl *RedirectController) Get()

type ShortURLController

type ShortURLController struct {
	beego.Controller
}

Operations about object

func (*ShortURLController) Get

func (ctl *ShortURLController) Get()

@Title Get @Description get ShortURL @Param code path string true "The short code" @Success 200 {object} models.SURL @Failure 403 body is empty @router /:code [get]

func (*ShortURLController) Post

func (ctl *ShortURLController) Post()

@Title Create @Description create ShortURL @Param url formData string true "The full URL" @Success 200 {object} models.SURL @Failure 403 body is empty @router / [post]

func (*ShortURLController) Qr

func (ctl *ShortURLController) Qr()

@Title Get QrCode Image @Description get QRcode Image @Param code path string true "The short code" @Success 200 {object} models.SURL @Failure 403 body is empty @router /:code/qr [get]

Jump to

Keyboard shortcuts

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