feat: add message push function call

This commit is contained in:
engigu
2026-03-04 21:45:43 +08:00
parent d4663cb492
commit 81b8d2a93d
53 changed files with 4161 additions and 33 deletions
+5
View File
@@ -89,6 +89,11 @@ func (s *SettingsService) Set(section, key, value string) error {
return database.DB.Model(&setting).Update("value", value).Error
}
// Delete 删除单个设置
func (s *SettingsService) Delete(section, key string) error {
return database.DB.Where("section = ? AND `key` = ?", section, key).Delete(&models.Setting{}).Error
}
// GetSection 获取整个 section 的设置
func (s *SettingsService) GetSection(section string) map[string]string {
if section == constant.SectionSite {