...
|
...
|
@@ -18,7 +18,7 @@ func (controller *SystemSettingController) UpdateSystemSetting() { |
|
|
if err != nil {
|
|
|
log.Logger.Debug(err.Error())
|
|
|
}
|
|
|
// updateSystemSettingCommand.CompanyId = controller.GetCompanyId()
|
|
|
updateSystemSettingCommand.CompanyId = controller.GetCompanyId()
|
|
|
data, err := systemSettingService.UpdateSystemSetting(updateSystemSettingCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -30,7 +30,7 @@ func (controller *SystemSettingController) GetSystemSetting() { |
|
|
if err != nil {
|
|
|
log.Logger.Debug(err.Error())
|
|
|
}
|
|
|
// getSystemSettingQuery.CompanyId = controller.GetCompanyId()
|
|
|
getSystemSettingQuery.CompanyId = controller.GetCompanyId()
|
|
|
data, err := systemSettingService.GetSystemSetting(getSystemSettingQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -38,7 +38,7 @@ func (controller *SystemSettingController) GetSystemSetting() { |
|
|
func (controller *SystemSettingController) ListSystemSetting() {
|
|
|
systemSettingService := service.NewSystemSettingService(nil)
|
|
|
listSystemSettingQuery := &query.ListSystemSettingQuery{}
|
|
|
// listSystemSettingQuery.CompanyId = controller.GetCompanyId()
|
|
|
listSystemSettingQuery.CompanyId = controller.GetCompanyId()
|
|
|
data, err := systemSettingService.ListSystemSetting(listSystemSettingQuery)
|
|
|
controller.Response(data, err)
|
|
|
} |
...
|
...
|
|