()
| 45 | } |
| 46 | |
| 47 | func GetSettingsMap() map[string]string { |
| 48 | items, _ := GetSettingItems() |
| 49 | settings := make(map[string]string) |
| 50 | for _, item := range items { |
| 51 | settings[item.Key] = item.Value |
| 52 | } |
| 53 | return settings |
| 54 | } |
| 55 | |
| 56 | func GetSettingItems() ([]model.SettingItem, error) { |
| 57 | if items, exists := Cache.GetSettingGroup("ALL_SETTING_ITEMS"); exists { |
nothing calls this directly
no test coverage detected