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]
Click to show internal directories.
Click to hide internal directories.