Files
full/module/social/relation/proto/blocks.proto

53 lines
1.2 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto3";
package relation;
option go_package = ".;relation";
message FetchRequest {
int64 page_no=1; // 页数
int64 page_size=2; // 每页记录数
map<string,string> params=3; // 条件参数,key=val,eg key:category_id=?,vlaue=11
}
message IdentRequest{
int64 id = 1; // 唯一ID
string identity = 2; // 唯一码
}
message VersionRequest {
int64 version=1; // 时序版本号
}
message SearchRequest {
string keyword=1; //关键词
}
message StatusReply{
string data=1; // 数据
int64 timeseq=2; // 响应时间序列
}
message Empty{
}
message RelationItem{
string identity=1;
string nickname=2; //昵称
string remark_name=3; // 备注名称
int32 popular=4; //是否置顶
string avatar=5;
string birthday = 6; //生日
int32 sex = 7; //性别1为男性2为女性
int32 province = 8; //省
int32 city = 9; //市
int32 area = 10; //区
string sign = 11; //签名
repeated string tags=12; //所属标签组
int32 foreign_status=13; //外表的状态值,根据表不同,值的作用不同
}
message FetchRelationItemReply {
int64 total=1; // 总记录数
repeated RelationItem data=2;
}