add setting, alertbox, etc

This commit is contained in:
Simon Ding
2024-07-05 14:45:42 +08:00
parent 321e36bb43
commit 6e50e84694
9 changed files with 167 additions and 10 deletions

View File

@@ -29,5 +29,5 @@ func (s *Server) GetSetting(c *gin.Context) (interface{}, error) {
}
v := s.db.GetSetting(q)
log.Infof("get value for key %v: %v", q, v)
return v, nil
return gin.H{q: v}, nil
}