master_huanxiang
parent
c61e623dcc
commit
b4c8f0be9f
|
@ -2,66 +2,34 @@ package com.ljsd.jieling.protocols;
|
|||
|
||||
option optimize_for = SPEED;
|
||||
|
||||
import "CommonProto.proto";
|
||||
message GetChatMessageInfoRequest {
|
||||
optional int32 chatType = 1; // 类型 0:系统 1:世界 2:公会 3 好友
|
||||
}
|
||||
|
||||
message GetChatMessageInfoResponse {
|
||||
repeated ChatInfo chatInfo = 1;
|
||||
|
||||
message ChatIndication{
|
||||
}
|
||||
|
||||
message SendChatInfoReqest {
|
||||
optional int32 chatType = 1; // 类型 0:系统 1:世界 2:公会 3 好友
|
||||
optional string message = 2; //聊天内容
|
||||
optional int32 friendId = 3; // 接受聊天的好友id
|
||||
}
|
||||
|
||||
message ChatInfo{
|
||||
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 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)
|
||||
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; //在线人数
|
||||
}
|
|
@ -136,6 +136,9 @@ enum MessageType{
|
|||
GET_VIP_MISSION_REQUEST = 16632; //获取vip任务详情
|
||||
GET_VIP_MISSION_REPONSE = 16633;
|
||||
|
||||
GET_CHAT_MESSAGE_REQUEST = 16634; // 获取聊天信息
|
||||
GET_CHAT_MESSAGE_REPONSE = 16635;
|
||||
|
||||
// H 10700
|
||||
HERO_RAND_REQQUEST = 10701;
|
||||
HERO_RAND_RESPONSE = 10702;
|
||||
|
@ -205,7 +208,7 @@ enum MessageType{
|
|||
SWITCH_WORLDCHANNEL_REQUEST = 11802; //切换世界聊天频道
|
||||
SWITCH_WORLDCHANNEL_RESPONSE = 11803;
|
||||
|
||||
SEND_CHAT_INFO_REQUEST = 11804;
|
||||
SEND_CHAT_INFO_REQUEST = 11804; //发送聊天
|
||||
SEND_CHAT_INFO_RESPONSE= 11805;
|
||||
|
||||
SEND_RED_POINT_INDICATION = 11806; //红点消息推送
|
||||
|
@ -222,7 +225,6 @@ enum MessageType{
|
|||
STORE_GOODS_REFRESH_REQUEST = 11813; //商店刷新
|
||||
STORE_GOODS_REFRESH_RESPONSE= 11814;
|
||||
|
||||
|
||||
RECHARGE_INFO_REQUEST = 11815; //充值
|
||||
RECHARGE_INFO_RESPONSE = 11816;
|
||||
|
||||
|
|
Loading…
Reference in New Issue