|
@@ -18,7 +18,7 @@ func (controller *SystemSettingController) UpdateSystemSetting() { |
|
@@ -18,7 +18,7 @@ func (controller *SystemSettingController) UpdateSystemSetting() { |
18
|
if err != nil {
|
18
|
if err != nil {
|
19
|
log.Logger.Debug(err.Error())
|
19
|
log.Logger.Debug(err.Error())
|
20
|
}
|
20
|
}
|
21
|
- // updateSystemSettingCommand.CompanyId = controller.GetCompanyId()
|
21
|
+ updateSystemSettingCommand.CompanyId = controller.GetCompanyId()
|
22
|
data, err := systemSettingService.UpdateSystemSetting(updateSystemSettingCommand)
|
22
|
data, err := systemSettingService.UpdateSystemSetting(updateSystemSettingCommand)
|
23
|
controller.Response(data, err)
|
23
|
controller.Response(data, err)
|
24
|
}
|
24
|
}
|
|
@@ -30,7 +30,7 @@ func (controller *SystemSettingController) GetSystemSetting() { |
|
@@ -30,7 +30,7 @@ func (controller *SystemSettingController) GetSystemSetting() { |
30
|
if err != nil {
|
30
|
if err != nil {
|
31
|
log.Logger.Debug(err.Error())
|
31
|
log.Logger.Debug(err.Error())
|
32
|
}
|
32
|
}
|
33
|
- // getSystemSettingQuery.CompanyId = controller.GetCompanyId()
|
33
|
+ getSystemSettingQuery.CompanyId = controller.GetCompanyId()
|
34
|
data, err := systemSettingService.GetSystemSetting(getSystemSettingQuery)
|
34
|
data, err := systemSettingService.GetSystemSetting(getSystemSettingQuery)
|
35
|
controller.Response(data, err)
|
35
|
controller.Response(data, err)
|
36
|
}
|
36
|
}
|
|
@@ -38,7 +38,7 @@ func (controller *SystemSettingController) GetSystemSetting() { |
|
@@ -38,7 +38,7 @@ func (controller *SystemSettingController) GetSystemSetting() { |
38
|
func (controller *SystemSettingController) ListSystemSetting() {
|
38
|
func (controller *SystemSettingController) ListSystemSetting() {
|
39
|
systemSettingService := service.NewSystemSettingService(nil)
|
39
|
systemSettingService := service.NewSystemSettingService(nil)
|
40
|
listSystemSettingQuery := &query.ListSystemSettingQuery{}
|
40
|
listSystemSettingQuery := &query.ListSystemSettingQuery{}
|
41
|
- // listSystemSettingQuery.CompanyId = controller.GetCompanyId()
|
41
|
+ listSystemSettingQuery.CompanyId = controller.GetCompanyId()
|
42
|
data, err := systemSettingService.ListSystemSetting(listSystemSettingQuery)
|
42
|
data, err := systemSettingService.ListSystemSetting(listSystemSettingQuery)
|
43
|
controller.Response(data, err)
|
43
|
controller.Response(data, err)
|
44
|
} |
44
|
} |