controllers

package
v0.0.0-...-11f4b66 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminController

type AdminController struct {
	beego.Controller
}

func (*AdminController) Login

func (u *AdminController) Login()

@Title AdminLogin @Description admin login @Param body body models.Admin true "body for Admin content" @Success 200 @Failure 403 body is empty @router /login [post]

func (*AdminController) Options

func (u *AdminController) Options()

@Title BeforeAdminLogin @Description cros before admin login @router /login [options]

func (*AdminController) URLMapping

func (u *AdminController) URLMapping()

type CategoryController

type CategoryController struct {
	beego.Controller
}

CategoryController operations for Category

func (*CategoryController) Create

func (c *CategoryController) Create()

Create ... @Title Create @Description create Category @Param body body models.Category true "body for Category content" @Success 201 {int} models.Category @Failure 403 body is empty @router /create [post]

func (*CategoryController) Delete

func (c *CategoryController) Delete()

Remove ... @Title Remove @Description delete the Category @Param body body models.Category true "body for Category content" @Success 201 {int} models.Category @Failure 403 body is empty @router /delete [post]

func (*CategoryController) GetAll

func (c *CategoryController) GetAll()

GetAll ... @Title Get All @Description get Category @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Category @Failure 403 @router /list [get]

func (*CategoryController) GetOne

func (c *CategoryController) GetOne()

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

func (*CategoryController) URLMapping

func (c *CategoryController) URLMapping()

URLMapping ...

func (*CategoryController) Update

func (c *CategoryController) Update()

Update ... @Title Update @Description update the Category @Param body body models.Category true "body for Category content" @Success 201 {int} models.Category @Failure 403 body is empty @router /update [post]

type LabelController

type LabelController struct {
	beego.Controller
}

LabelController operations for Label

func (*LabelController) Create

func (c *LabelController) Create()

Create ... @Title Create @Description create Label @Param body body models.Label true "body for Label content" @Success 201 {int} models.Label @Failure 403 body is empty @router /create [post]

func (*LabelController) Delete

func (c *LabelController) Delete()

Remove ... @Title Remove @Description delete the Label @Param body body models.Label true "body for Label content" @Success 201 {int} models.Label @Failure 403 body is empty @router /delete [post]

func (*LabelController) GetAll

func (c *LabelController) GetAll()

GetAll ... @Title Get All @Description get Label @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Label @Failure 403 @router /list [get]

func (*LabelController) GetOne

func (c *LabelController) GetOne()

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

func (*LabelController) URLMapping

func (c *LabelController) URLMapping()

URLMapping ...

func (*LabelController) Update

func (c *LabelController) Update()

Update ... @Title Update @Description update the Label @Param body body models.Label true "body for Label content" @Success 201 {int} models.Label @Failure 403 body is empty @router /update [post]

type TopicController

type TopicController struct {
	beego.Controller
}

TopicController operations for Topic

func (*TopicController) Create

func (c *TopicController) Create()

Login ... @Title Login @Description create Topic @Param body body models.Topic true "body for Topic content" @Success 201 {int} models.Topic @Failure 403 body is empty @router /create [post]

func (*TopicController) Delete

func (c *TopicController) Delete()

Delete ... @Title Delete @Description delete the Topic @Param body body models.Topic true "body for Topic content" @Success 201 {int} models.Topic @Failure 403 body is empty @router /delete [post]

func (*TopicController) GetAll

func (c *TopicController) GetAll()

GetAll ... @Title Get All @Description get Topic @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Topic @Failure 403 @router /list [get]

func (*TopicController) GetByCate

func (c *TopicController) GetByCate()

GetByCate ... @Title GetByCategory @Description get Topics by Category id @Param id path string true "category id" @Success 200 {object} models.TopicsResult @Failure 403 :id is empty @router /cate/:id [get]

func (*TopicController) GetByLabel

func (c *TopicController) GetByLabel()

GetByLabel ... @Title GetByLabel @Description get Topics by Label id @Param id path string true "Label id" @Success 200 {object} models.TopicsResult @Failure 403 :id is empty @router /label/:id [get]

func (*TopicController) GetByVagueName

func (c *TopicController) GetByVagueName()

GetByVagueName @Title GetByVagueName @Description get Topics by Vague Name @Param vname path string true "Vague Name" @Success 200 {object} models.TopicsResult @Failure 403 :vname is empty @router /find/:vname [get]

func (*TopicController) GetOne

func (c *TopicController) GetOne()

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

func (*TopicController) URLMapping

func (c *TopicController) URLMapping()

URLMapping ...

func (*TopicController) Update

func (c *TopicController) Update()

Put ... @Title Put @Description update the Topic @Param body body models.Topic true "body for Topic content" @Success 201 {int} models.Topic @Failure 403 body is empty @router /update [post]

Jump to

Keyboard shortcuts

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