(c *gin.Context)
| 48 | } |
| 49 | |
| 50 | func 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 | |
| 64 | func ListSettings(c *gin.Context) { |
| 65 | groupStr := c.Query("group") |
nothing calls this directly
no test coverage detected