miduo_protocol/protos/ChatProto.proto

67 lines
2.5 KiB
Protocol Buffer
Raw Normal View History

2019-02-25 17:33:36 +08:00
package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
message ChatIndication{
optional int32 senderId = 1;//发送用户id
optional int32 senderServerId = 2;//发送用户id
optional string senderName = 3; //发送用户名字
optional int32 senderlevel = 4;//发送者等级
optional string senderimg = 5;//发送者头像
optional int32 sendervip = 6;//发送者vip等级
optional uint64 times = 7;//接受到的时间戳
optional int32 msgType = 8;//消息来源(0:系统;1:世界;2:工会3:队伍 4私聊)
optional string msg = 9;//消息内容,消息体
optional string voiceMsg = 10;//语音地址
optional int32 voiceTime = 11;// 说话时间
optional int32 playCount = 12;// 系统消息播放次数
optional int32 targetId = 13;// 私聊目标Id
optional string unionID = 14; // 工会id
optional int32 frame = 15; // 头像框
optional int32 isFamilySystem = 16; // 1:世家系统消息 2:IDIP消息
optional int32 endTime = 17; //结束时间
optional int32 PriorityLevel =18 ;// 优先级
optional int32 Frequency = 19; //频率(s)
optional int32 IsSystem = 20; //是否发送到系统提示区 0:否 1:是
optional int32 head = 21; // 新头像
optional string clientVersion = 22; //客户端版本号
optional uint64 messageId=23; //消息id
optional string arenaIcon=24; //arenaIcon
optional int32 arenaRank=25; //arenaIcon
optional int32 msgChildType =26; //当前消息内容类型(0-普通消息(文字和图片) 1-红包消息)
}
message SendChatInfoRequest{
optional int32 myServerId = 1; // 我的服务器Id
optional int32 targetUserId = 2; // 目标用户Id
optional int32 targetServerId = 3; // 目标的服务器Id
optional int32 messageType = 4; // 消息类型
optional string message = 5; // 消息体
optional string voiceMsg = 6; // 语音地址
optional int32 voiceTime = 7; // 说话时间
optional string ClientVersion = 8; //客户端版本号
optional string UserIP = 9; //客户端IP
optional int32 msgChildType =10; //当前消息内容类型
}
message GetChatInfoRequest {
optional uint64 messgeId = 1; //消息id
}
message GetChatInfoResponse {
repeated ChatIndication chatIndication =1;
}
message SwitchWorldChannelRequest{
optional uint32 channelId = 1; //要切换的频道号
}
message SwitchWorldChannelResponse{
optional int32 onlineNunms = 1; //在线人数
}