2
對於以下代碼阿帕奇節儉數據類型概括
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
一起使用?
這樣我就可以繼續實施服務器並讓客戶開發自己的語言客戶端。