Add remark
This commit is contained in:
@@ -12,6 +12,7 @@ typedef struct {
|
||||
int32_t gender;
|
||||
string wxid;
|
||||
string code;
|
||||
string remark;
|
||||
string name;
|
||||
string country;
|
||||
string province;
|
||||
|
||||
@@ -76,6 +76,9 @@ bool encode_contacts(pb_ostream_t *stream, const pb_field_t *field, void *const
|
||||
message.code.funcs.encode = &encode_string;
|
||||
message.code.arg = (void *)(*it).code.c_str();
|
||||
|
||||
message.remark.funcs.encode = &encode_string;
|
||||
message.remark.arg = (void *)(*it).remark.c_str();
|
||||
|
||||
message.name.funcs.encode = &encode_string;
|
||||
message.name.arg = (void *)(*it).name.c_str();
|
||||
|
||||
|
||||
+6
-5
@@ -102,11 +102,12 @@ message RpcContact
|
||||
{
|
||||
string wxid = 1; // 微信 id
|
||||
string code = 2; // 微信号
|
||||
string name = 3; // 微信昵称
|
||||
string country = 4; // 国家
|
||||
string province = 5; // 省/州
|
||||
string city = 6; // 城市
|
||||
int32 gender = 7; // 性别
|
||||
string remark = 3; // 备注
|
||||
string name = 4; // 微信昵称
|
||||
string country = 5; // 国家
|
||||
string province = 6; // 省/州
|
||||
string city = 7; // 城市
|
||||
int32 gender = 8; // 性别
|
||||
}
|
||||
message RpcContacts { repeated RpcContact contacts = 1; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user