systemhandler

package
v1.21.6 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemHandler

type SystemHandler struct {
	base.BaseHandler
}

func (*SystemHandler) GetConfig

func (h *SystemHandler) GetConfig(c *gin.Context)

GetConfig 获取系统配置 @Tags System @Summary 获取系统配置 @Description 获取系统配置 @Accept json @Produce json @Param name path string true "配置名" @Success 200 {object} handlers.ResponseStruct{Data=models.OnlineConfig} "resp" @Router /v1/system/config/{name} [get] @Security JWT

func (*SystemHandler) ListConfig

func (h *SystemHandler) ListConfig(c *gin.Context)

GetConfig 列出所有系统配置 @Tags System @Summary 列出所有系统配置 @Description 列出所有系统配置 @Accept json @Produce json @Success 200 {object} handlers.ResponseStruct{Data=[]models.OnlineConfig} "resp" @Router /v1/system/config [get] @Security JWT

func (*SystemHandler) RegistRouter

func (h *SystemHandler) RegistRouter(rg *gin.RouterGroup)

func (*SystemHandler) SetConfig

func (h *SystemHandler) SetConfig(c *gin.Context)

SetConfig 修改系统配置 @Tags System @Summary 修改系统配置 @Description 修改系统配置 @Accept json @Produce json @Param name path string true "配置名" @Param from body models.OnlineConfig true "配置内容" @Success 200 {object} handlers.ResponseStruct{Data=string} "resp" @Router /v1/system/config/{name} [put] @Security JWT

Jump to

Keyboard shortcuts

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