MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / SaveSettings

Function SaveSettings

server/handles/setting.go:50–62  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

48}
49
50func SaveSettings(c *gin.Context) {
51 var req []model.SettingItem
52 if err := c.ShouldBind(&req); err != nil {
53 common.ErrorResp(c, err, 400)
54 return
55 }
56 if err := op.SaveSettingItems(req); err != nil {
57 common.ErrorResp(c, err, 500)
58 } else {
59 common.SuccessResp(c)
60 static.UpdateIndex()
61 }
62}
63
64func ListSettings(c *gin.Context) {
65 groupStr := c.Query("group")

Callers

nothing calls this directly

Calls 4

ErrorRespFunction · 0.92
SaveSettingItemsFunction · 0.92
SuccessRespFunction · 0.92
UpdateIndexFunction · 0.92

Tested by

no test coverage detected