miduo_protocol/protos/ChatProto.proto

39 lines
1.2 KiB
Protocol Buffer

package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
message ChatInfo{
optional int32 senderId = 1;//发送用户id
optional string senderName = 2; //发送用户名字
optional int32 senderlevel = 3;//发送者等级
optional int32 sendervip = 5;//发送者vip等级
optional uint64 times = 6;//接受到的时间戳
optional string msg = 7;//消息内容,消息体
optional string head = 8; // 头像
optional string frame = 9; // 头像框
//跑马灯用
optional int32 type = 15; //0:系统 1:其他
optional int32 startTime = 16 ; // 开始时间
optional int32 endTime = 17; //结束时间
optional int32 PriorityLevel =18 ;// 优先级
optional int32 Frequency = 19; //频率(s)
}
message GetChatMessageInfoRequest {
optional int32 chatType = 1; // 类型 0:系统 1:世界 2:公会 3 好友
}
message GetChatMessageInfoResponse {
repeated ChatInfo chatInfo = 1;
}
message SendChatInfoReqest {
optional int32 chatType = 1; // 类型1:世界 2:公会 3 好友
optional string message = 2; //聊天内容
optional int32 friendId = 3; // 接受聊天的好友id
}
message SendChatInfoIndication {
optional ChatInfo chatInfo = 1;
}