1 Star 0 Fork 25

OnlyVersion/gim

forked from gogym/gim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Message.proto 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
gogym 提交于 2020-03-25 14:57 +08:00 . .
syntax = "proto3"; //指定版本,必须要写(proto3、proto2)
//import "google/protobuf/any.proto";
//生成类的类名
option java_outer_classname = "MessageClass";
message Message{
string id=1;//消息唯一ID
string identify=2;// 协议标志
string version=3;// 协议版本
int32 reqType=4;// 请求类型
int64 msgTime=5;//消息时间
string serverId=6;//服务器标志
//--------------------ack-------------------
string ack=7;//ack
//-------------------user-------------------
string senderId=8;// 发送人ID
string senderName=9;//发送人名称
string senderHeadImgUrl=10;//发送人头像URL
string receiverId=11;// 接收人ID
string receiverName=12;// 接收人名称
string receiverHeadImgUrl=13;// 接收人头像
//--------------------group-----------------
string groupId=14;// 群ID
string atUserId=15;//需要@的人的id
//------------------msg----------------------
string body=16;//消息体
int32 bodyType=17;//消息类型
int32 bodyLength=18;//消息体长度
//-----------------status---------------------
int32 status=19;//确认状态
int32 result=20;//业务结果
//-----------------expansion------------------
string field1=21;
string field2=22;
string field3=23;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/OnlyVersion/gim.git
git@gitee.com:OnlyVersion/gim.git
OnlyVersion
gim
gim
master

搜索帮助