GAAS GFrame项目web后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
450 B

// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
package container
import (
"reflect"
)
type CallerProxy struct {
servicFactory reflect.Value
methodName string
}
func (proxy *CallerProxy) Call(inValues []reflect.Value) []reflect.Value {
serviceValue := proxy.servicFactory.Call(emptyParameters)[0]
methodValue := serviceValue.MethodByName(proxy.methodName)
return methodValue.Call(inValues)
}