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