From 7f395b6520639a6f9470f3a195aacc6142730f2a Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 26 Apr 2018 17:46:16 +0900 Subject: [PATCH] ing --- service/SensorConfigService.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/service/SensorConfigService.go b/service/SensorConfigService.go index 09fa7a1..4a7ff69 100644 --- a/service/SensorConfigService.go +++ b/service/SensorConfigService.go @@ -7,7 +7,7 @@ import ( cda "git.loafle.net/commons/di-go/annotation" cdr "git.loafle.net/commons/di-go/registry" "git.loafle.net/commons/logging-go" - ocsm "git.loafle.net/overflow/commons-go/sensorconfig/model" + ocmsc "git.loafle.net/overflow/commons-go/model/sensorconfig" // For annotation _ "git.loafle.net/overflow/commons-go/core/annotation" @@ -22,11 +22,11 @@ func init() { type SensorConfigService struct { cda.TypeAnnotation `annotation:"@overflow:RPCService()"` - sensorConfigs map[string]*ocsm.SensorConfig + sensorConfigs map[string]*ocmsc.SensorConfig } func (s *SensorConfigService) InitService() error { - s.sensorConfigs = make(map[string]*ocsm.SensorConfig, 0) + s.sensorConfigs = make(map[string]*ocmsc.SensorConfig, 0) return nil } @@ -44,7 +44,7 @@ func (s *SensorConfigService) DestroyService() { } -func (s *SensorConfigService) InitConfig(sensorConfigs []*ocsm.SensorConfig) error { +func (s *SensorConfigService) InitConfig(sensorConfigs []*ocmsc.SensorConfig) error { if nil == sensorConfigs || 0 == len(sensorConfigs) { return nil } @@ -58,7 +58,7 @@ func (s *SensorConfigService) InitConfig(sensorConfigs []*ocsm.SensorConfig) err return nil } -func (s *SensorConfigService) AddConfig(sensorConfig *ocsm.SensorConfig) error { +func (s *SensorConfigService) AddConfig(sensorConfig *ocmsc.SensorConfig) error { if nil == sensorConfig { return fmt.Errorf("Sensor config is not valid") } @@ -74,7 +74,7 @@ func (s *SensorConfigService) AddConfig(sensorConfig *ocsm.SensorConfig) error { return nil } -func (s *SensorConfigService) UpdateConfig(sensorConfig *ocsm.SensorConfig) error { +func (s *SensorConfigService) UpdateConfig(sensorConfig *ocmsc.SensorConfig) error { if nil == sensorConfig { return fmt.Errorf("Sensor config is not valid") }