app

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppController

type AppController struct {
	base.APIController
}

操作App相关资源

func (*AppController) AppStatistics

func (c *AppController) AppStatistics()

@Title app statistics @Description app count statistics @Success 200 {object} models.AppCount success

func (*AppController) Create

func (c *AppController) Create()

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

func (*AppController) Delete

func (c *AppController) Delete()

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

func (c *AppController) Get()

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

func (*AppController) GetNames

func (c *AppController) GetNames()

@Title List/ @Description get all id and names @Param deleted query bool false "is deleted,default false." @Success 200 {object} []models.App success @router /names [get]

func (*AppController) List

func (c *AppController) List()

@Title List/ @Description get all app @Param starred query bool false "is starred app.default not star" @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Param name query string false "name filter" @Param namespaceId query int false "namespace id" @Param deleted query bool false "is deleted, default list all." @Success 200 {object} []models.App success @router / [get]

func (*AppController) Prepare

func (c *AppController) Prepare()

func (*AppController) URLMapping

func (c *AppController) URLMapping()

func (*AppController) Update

func (c *AppController) Update()

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

Jump to

Keyboard shortcuts

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