diff --git a/gateway/services.go b/gateway/services.go index 3318023..635ef5a 100644 --- a/gateway/services.go +++ b/gateway/services.go @@ -44,7 +44,7 @@ func (s *ServiceImpl) ExecServices(c context.Context, in *pb.ServiceInput) (*pb. pbs := &pb.ServiceOutput{} // Todo Call Service Method - result := reflect.ValueOf(serviceName).MethodByName("Read").Call([]reflect.Value{})[0].String() + result := reflect.ValueOf(serviceName).MethodByName(in.MethodName).Call([]reflect.Value{})[0].String() pbs.ResultStr = result