[sub] improve usage info in Remark
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
1 parent
71c1a05386
commit
38e1d0f94e
12 files changed
+91
-108
No files matched your search
@@ -51,6 +51,7 @@ var defaultValueMap = map[string]string{
|
||||
"subCertFile": "",
|
||||
"subKeyFile": "",
|
||||
"subUpdates": "12",
|
||||
"subShowInfo": "false",
|
||||
}
|
||||
|
||||
type SettingService struct {
|
||||
@@ -396,6 +397,10 @@ func (s *SettingService) GetSubUpdates() (int, error) {
|
||||
return s.getInt("subUpdates")
|
||||
}
|
||||
|
||||
func (s *SettingService) GetSubShowInfo() (bool, error) {
|
||||
return s.getBool("subShowInfo")
|
||||
}
|
||||
|
||||
func (s *SettingService) UpdateAllSetting(allSetting *entity.AllSetting) error {
|
||||
if err := allSetting.CheckValid(); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user