Closed redkongdong closed 2 years ago
hi~ 是支持的,可以参考下tutorial的echo_thrift.thrift里:
service Example {
EchoResult Echo(1:string message, 2:string name);
}
那么生成代码echo_thrift.srpc.h
就会包含以下多参数接口:
class SRPCClient : public srpc::SRPCClient
{
public:
void Echo(EchoResult& _return, const std::string& message, const std::string& name);
void send_Echo(const std::string& message, const std::string& name);
void recv_Echo(EchoResult& _return);
...
}
感恩
请教一下现在thrift 多参数支持吗
原生thrift接口参数填写为多个