【发布时间】:2014-10-04 15:21:02
【问题描述】:
如下代码
struct UserProfile {
1: i32 uid,
2: string name,
3: string blurb
}
service UserStorage {
void store(1: UserProfile user),
UserProfile retrieve(1: i32 uid)
}
Apache Thrift 生成的代码在服务器端也引用了UserProfile 对象。
我怎样才能使它与任何custom object 一起工作?
这样我就可以继续实现服务器并让客户开发自己的语言客户端。
【问题讨论】:
标签: thrift