config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(c *gin.Context)

Get 获取所有系统设置

func Update

func Update(c *gin.Context, in *UpdateRequest)

Update 更新系统设置

Types

type GetResponse

type GetResponse struct {
	Items []Item `json:"items"`
}

GetResponse 获取系统设置响应

type Item

type Item struct {
	Key          string `json:"key"`
	Value        string `json:"value"`
	DefaultValue string `json:"default_value"`
}

Item 单个配置项

type UpdateItem

type UpdateItem struct {
	Key   string `json:"key" binding:"required"`
	Value string `json:"value"`
}

UpdateItem 单个更新项

type UpdateRequest

type UpdateRequest struct {
	Items []UpdateItem `json:"items"`
}

UpdateRequest 更新系统设置请求

Jump to

Keyboard shortcuts

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