120 lines
2.9 KiB
Protocol Buffer
120 lines
2.9 KiB
Protocol Buffer
syntax = "proto2";
|
|
package cs;
|
|
option go_package = ".;cs";
|
|
//用来指定出生的lua模块名, lua_package不支持!!!
|
|
option java_package = "cs_friend_msgid_pb";
|
|
|
|
//消息id定义
|
|
enum CMMessageId_e
|
|
{
|
|
_CMPing = 101;
|
|
_CMLogin = 103;
|
|
_CMReconnect = 104;
|
|
|
|
// 好友相关
|
|
_CMSearchUserByAccountId = 105;
|
|
_CMSearchUser = 106;
|
|
_CMAddFriendRequest = 107;
|
|
_CMAcceptFriendRequest = 108;
|
|
_CMRejectFriendRequest = 109;
|
|
_CMListPendingFriendRequest = 110;
|
|
_CMListFriend = 111;
|
|
_CMDeleteFriendShip = 112;
|
|
_CMAddBlacklist = 113;
|
|
_CMRemoveBlacklist = 114;
|
|
_CMBlacklist = 116;
|
|
_CMInviteFriendMsg = 117;
|
|
_CMRecommendList = 118;
|
|
_CMSetStatus = 119;
|
|
|
|
// 聊天相关
|
|
_CMSetCurrPrivateChatTarget = 200;
|
|
_CMSendChatMsg = 201;
|
|
_CMReadMsgAndOpenChatNotify = 202;
|
|
_CMCloseChatNotify = 203;
|
|
|
|
_CMRedDot = 301;
|
|
|
|
// 公会相关
|
|
_CMGuildInfo = 120;
|
|
_CMCreateGuild = 121;
|
|
_CMApplyToGuild = 122;
|
|
_CMApprove = 123;
|
|
_CMReject = 124;
|
|
_CMLeaveGuild = 125;
|
|
_CMDismissMember = 126;
|
|
_CMDisband = 129;
|
|
_CMSearchGuilds = 130;
|
|
_CMApplyList = 131;
|
|
_CMGuildLogs = 132;
|
|
_CMSetNotice = 133;
|
|
_CMSetMemberLevel = 134;
|
|
_CMGuildMembersList = 135;
|
|
_CMSetName = 136;
|
|
_CMSetAvatar = 137;
|
|
_CMSetJoinCond = 138;
|
|
_CMRecommendGuildList = 139;
|
|
_CMGetTopGuildsByTotalStars = 140;
|
|
}
|
|
|
|
enum SMMessageId_e
|
|
{
|
|
_SMPing = 101;
|
|
_SMRpcError = 102;
|
|
_SMLogin = 103;
|
|
_SMReconnect = 104;
|
|
|
|
_SMSearchUserByAccountId = 105;
|
|
_SMSearchUser = 106;
|
|
_SMAddFriendRequest = 107;
|
|
_SMAcceptFriendRequest = 108;
|
|
_SMRejectFriendRequest = 109;
|
|
_SMListPendingFriendRequest = 110;
|
|
_SMListFriend = 111;
|
|
_SMDeleteFriendShip = 112;
|
|
_SMAddBlacklist = 113;
|
|
_SMRemoveBlacklist = 114;
|
|
_SMBlacklist = 116;
|
|
_SMInviteFriendMsg = 117;
|
|
_SMRecommendList = 118;
|
|
_SMSetStatus = 119;
|
|
|
|
// 公会相关
|
|
_SMGuildInfo = 120;
|
|
_SMCreateGuild = 121;
|
|
_SMApplyToGuild = 122;
|
|
_SMApprove = 123;
|
|
_SMReject = 124;
|
|
_SMLeaveGuild = 125;
|
|
_SMDismissMember = 126;
|
|
_SMDisband = 129;
|
|
_SMSearchGuilds = 130;
|
|
_SMApplyList = 131;
|
|
_SMGuildLogs = 132;
|
|
_SMSetNotice = 133;
|
|
_SMSetMemberLevel = 134;
|
|
_SMGuildMembersList = 135;
|
|
_SMSetName = 136;
|
|
_SMSetAvatar = 137;
|
|
_SMSetJoinCond = 138;
|
|
_SMRecommendGuildList = 139;
|
|
_SMGetTopGuildsByTotalStars = 140;
|
|
|
|
_SMRedDot = 301;
|
|
|
|
// 聊天相关通知
|
|
_SMUpdateChatRedPointNotify = 1000;
|
|
_SMChatMsgNotify = 1001;
|
|
_SMUpdateRedPointNotify = 1002;
|
|
_SMUpdatePrivateChatRedPointNotify = 1003;
|
|
_SMUpdateChatChannelLastId = 1004;
|
|
|
|
// 公会相关通知
|
|
_SMApproveJoinGuildNotify = 1010;
|
|
_SMDismissMemberNotify = 1011;
|
|
_SMSetMemberLevelNotify = 1012;
|
|
_SMApplyToGuildNotify = 1013;
|
|
_SMLeaveGuildNotify = 1014;
|
|
_SMUserStatusNotify = 1015;
|
|
}
|