config

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfigController

type BaseConfigController struct {
	beego.Controller
}

func (*BaseConfigController) ListBase

func (c *BaseConfigController) ListBase()

@Title GetConfig @Description get base config @Success 200 {object} Config success @router / [get]

func (*BaseConfigController) URLMapping

func (c *BaseConfigController) URLMapping()

type ConfigController

type ConfigController struct {
	base.APIController
}

func (*ConfigController) Create

func (c *ConfigController) Create()

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

func (*ConfigController) Delete

func (c *ConfigController) Delete()

@Title Delete @Description delete the app @Param id path int true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id([0-9]+) [delete]

func (*ConfigController) Get

func (c *ConfigController) Get()

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

func (*ConfigController) List

func (c *ConfigController) List()

@Title GetConfig @Description get system config @Success 200 {object} Config success @router / [get]

func (*ConfigController) ListSystem

func (c *ConfigController) ListSystem()

@Title GetConfig @Description get system config @Success 200 {object} Config success @router /system [get]

func (*ConfigController) URLMapping

func (c *ConfigController) URLMapping()

func (*ConfigController) Update

func (c *ConfigController) Update()

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

Jump to

Keyboard shortcuts

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