mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
style: fix backup getter method format to match project convention
This commit is contained in:
parent
b0bdb3f785
commit
4da2346c62
1 changed files with 15 additions and 4 deletions
|
|
@ -1150,10 +1150,21 @@ func (s *SettingService) SetTurnstileSecretKey(value string) error {
|
|||
return s.setString("turnstileSecretKey", value)
|
||||
}
|
||||
|
||||
func (s *SettingService) GetBackupEnabled() (bool, error) { return s.getBool("backupEnabled") }
|
||||
func (s *SettingService) GetBackupFrequency() (string, error) { return s.getString("backupFrequency") }
|
||||
func (s *SettingService) GetBackupHour() (int, error) { return s.getInt("backupHour") }
|
||||
func (s *SettingService) GetBackupMaxCount() (int, error) { return s.getInt("backupMaxCount") }
|
||||
func (s *SettingService) GetBackupEnabled() (bool, error) {
|
||||
return s.getBool("backupEnabled")
|
||||
}
|
||||
|
||||
func (s *SettingService) GetBackupFrequency() (string, error) {
|
||||
return s.getString("backupFrequency")
|
||||
}
|
||||
|
||||
func (s *SettingService) GetBackupHour() (int, error) {
|
||||
return s.getInt("backupHour")
|
||||
}
|
||||
|
||||
func (s *SettingService) GetBackupMaxCount() (int, error) {
|
||||
return s.getInt("backupMaxCount")
|
||||
}
|
||||
|
||||
func (s *SettingService) UpdateAllSetting(allSetting *entity.AllSetting, presentKeys map[string]struct{}) error {
|
||||
if err := allSetting.CheckValid(); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue