This commit is contained in:
@@ -22,6 +22,8 @@ var ctx = context.TODO()
|
||||
type Cmd struct {
|
||||
Func reflect.Value //方法函数
|
||||
Req reflect.Type //请求体
|
||||
// 新增:预缓存的req创建函数(返回结构体指针)
|
||||
NewReqFunc func() interface{}
|
||||
//Res reflect.Value //返回体
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user