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

67 lines
1.4 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 group;
option go_package = ".;group";
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 PostListReply{
repeated PostItem list = 1;
int64 cnt = 2;
}
// 推文
message PostItem{
string identity = 1; // 唯一标识
string content = 2; // 内容
int64 passport_id=3; // 通行证ID
string passport_identity = 4; // 通行证Identity
bool is_open =5; // 是否公开默认为0-公开1-不公开
int64 cnt_unlike = 6; // 点踩数量
int64 cnt_comment = 7; // 评论数量
int64 cnt_like = 8; // 点赞数量
repeated AttachItem attachs = 9; // 附件信息
repeated TagItem tags = 10; // 所属话题
}
// 附件
message AttachItem{
string identity = 1; // 唯一标识
string attach_type = 2; // 文件类型
string url = 3; // 文件路径
}
// 标签
message TagItem {
string key = 1; // 标签唯一码
string content = 2; // 标签内容
}