This commit is contained in:
geek 2017-05-26 12:00:46 +09:00
parent 7ae897f147
commit 8a61bb6810

View File

@ -44,7 +44,7 @@ func (s *ServiceImpl) ExecServices(c context.Context, in *pb.ServiceInput) (*pb.
pbs := &pb.ServiceOutput{} pbs := &pb.ServiceOutput{}
// Todo Call Service Method // 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 pbs.ResultStr = result