apikey

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKeyController

type ApiKeyController struct {
	base.APIController
}

func (*ApiKeyController) Create

func (c *ApiKeyController) Create()

@Title Create @Description create APIKey @Param body body models.APIKey true "The APIKey content" @Success 200 return models.APIKey success @router / [post]

func (*ApiKeyController) Delete

func (c *ApiKeyController) Delete()

@Title Delete @Description delete the APIKey @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 (*ApiKeyController) Get

func (c *ApiKeyController) Get()

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

func (*ApiKeyController) List

func (c *ApiKeyController) List()

@Title List/ @Description get all @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param deleted query bool false "is deleted, default list all." @Success 200 {object} []models.APIKey success @router / [get]

func (*ApiKeyController) Prepare

func (c *ApiKeyController) Prepare()

func (*ApiKeyController) URLMapping

func (c *ApiKeyController) URLMapping()

func (*ApiKeyController) Update

func (c *ApiKeyController) Update()

@Title Update @Description update the App @Param id path int true "The id you want to update" @Param body body models.APIKey true "The body" @Success 200 models.APIKey success @router /:id [put]

Jump to

Keyboard shortcuts

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