customlink

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.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 CustomLinkController

type CustomLinkController struct {
	base.APIController
}

func (*CustomLinkController) ChangeStatus

func (c *CustomLinkController) ChangeStatus()

@Title ChangeStatus @Description change the customLink status @Param id path int true "The id you want to change status" @Success 200 {string} update success! @router /:id/status [put]

func (*CustomLinkController) Create

func (c *CustomLinkController) Create()

@Title Create @Description create CustomLink @Param body body models.CustomLink true "The CustomLink content" @Success 200 return id success @Failure 403 body is empty @router / [post]

func (*CustomLinkController) Delete

func (c *CustomLinkController) Delete()

@Title Delete @Description delete the customLink @Param id path int true "The id you want to delete" @Param logical query bool false "is logical deletion,default true" @Success 200 {string} delete success! @router /:id [delete]

func (*CustomLinkController) Get

func (c *CustomLinkController) Get()

@Title Get @Description find Object by objectid @Param id path int true "the id you want to get" @Success 200 {object} models.CustomLink success @Failure 403 :id is empty @router /:id([0-9]+) [get]

func (*CustomLinkController) List

func (c *CustomLinkController) List()

@Title GetCustomLink @Description get outer custom link type @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param deleted query bool false "is deleted" @Success 200 {object} CustomLink success @router / [get]

func (*CustomLinkController) Prepare

func (c *CustomLinkController) Prepare()

func (*CustomLinkController) URLMapping

func (c *CustomLinkController) URLMapping()

func (*CustomLinkController) Update

func (c *CustomLinkController) Update()

@Title Update @Description update the object @Param id path int true "The id you want to update" @Param body body models.CustomLink true "The body" @Success 200 id success @Failure 403 :id is empty @router /:id([0-9]+) [put]

type Link struct {
	Displayname string
	Url         string
}

type LinkTypeController

type LinkTypeController struct {
	base.APIController
}

func (*LinkTypeController) Create

func (c *LinkTypeController) Create()

@Title Create @Description create LinkType @Param body body models.LinkType true "The LinkType content" @Success 200 return id success @Failure 403 body is empty @router / [post]

func (*LinkTypeController) Delete

func (c *LinkTypeController) Delete()

@Title Delete @Description delete the linkType @Param id path int true "The id you want to delete" @Param logical query bool false "is logical deletion,default true" @Success 200 {string} delete success! @router /:id [delete]

func (*LinkTypeController) Get

func (c *LinkTypeController) Get()

@Title Get @Description find Object by objectid @Param id path int true "the id you want to get" @Success 200 {object} models.LinkType success @Failure 403 :id is empty @router /:id([0-9]+) [get]

func (*LinkTypeController) List

func (c *LinkTypeController) List()

@Title GetLinkType @Description get outer custom link type @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param deleted query bool false "is deleted" @Success 200 {object} LinkType success @router / [get]

func (*LinkTypeController) Prepare

func (c *LinkTypeController) Prepare()

func (*LinkTypeController) URLMapping

func (c *LinkTypeController) URLMapping()

func (*LinkTypeController) Update

func (c *LinkTypeController) Update()

@Title Update @Description update the object @Param id path int true "The id you want to update" @Param body body models.LinkType true "The body" @Success 200 id success @Failure 403 :id is empty @router /:id([0-9]+) [put]

type ShowLinkController

type ShowLinkController struct {
	base.APIController
}

func (*ShowLinkController) List

func (c *ShowLinkController) List()

@Title GetCustomLink @Description Get all custom links belonging to this namespace @Param namespaceId query int false "namespace id" @Success 200 {object} allLinks success @router /links [get]

func (*ShowLinkController) URLMapping

func (c *ShowLinkController) URLMapping()

Jump to

Keyboard shortcuts

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