thrift.txt文件
内容如下;
定义了一个叫做豆豆的类型, 然后简单的示例如下:
namespace cpp xxx
namespace java com.xxx
struct Doudou{
1:bool success=true
2:i32 code
3:string msg="",
}
service ThriftService{
string test(1:string para)
Doudou hello(1:string para1,2:string para2)
}
生成命令:
thrift.exe -gen cpp thrift.txt