This commit is contained in:
aozhiwei 2020-06-12 10:08:15 +08:00
parent d8128ddfdf
commit 57f80f83c3
2 changed files with 173 additions and 93 deletions

View File

@ -3,10 +3,10 @@ package cs;
//
enum Constant_e
{
ProtoVersion = 2019071501; //
ProtoVersion = 2020061101; //
}
//
//(60)
message CMPing
{
}
@ -23,68 +23,62 @@ message MFPaging
optional int32 total_page = 3; //
}
//(线db)
message MFBaseUserData
{
optional string account_id = 1; //id
optional string nickname = 2; //
optional string avatar_url = 3; //
optional int32 sex = 4; // 1 2 0
optional int32 last_login_time = 5; //
optional int64 user_value1 = 50; //1
optional int64 user_value2 = 51; //2
optional int64 user_value3 = 52; //3
optional int64 base_data_version = 100; //
optional int32 _online = 101; //线
}
//(/线0)
message MFUserTempCustomData
{
optional int64 value1 = 1 [default = 0]; //1
optional int64 value2 = 2 [default = 0]; //2
optional int64 value3 = 3 [default = 0]; //3
}
//
message MFUserInfo
{
optional string account_id = 1;
optional string nickname = 2;
optional string avatar_url = 3;
optional int32 sex = 4;
optional int32 online = 5;
}
message MFGroupMemberDB
{
optional string account_id = 1;
optional string nickname = 2;
optional string avatar_url = 3;
optional int32 sex = 4;
optional int64 group_id = 5;
optional int32 data_version1 = 6;
}
message MFGroupDB
{
repeated MFGroupMemberDB members = 1;
}
message MFFriendDB
{
optional string account_id = 1;
optional string nickname = 2;
optional string avatar_url = 3;
optional int32 sex = 4;
optional int64 group_id = 5;
optional int32 data_version1 = 6;
}
message MFUserDB
{
repeated MFGroupMemberDB friends = 1;
optional MFBaseUserData base_data = 1; //
optional MFUserTempCustomData temp_custom_data = 2; //
}
//
message MFFriendApply
{
optional int64 idx = 1;
optional int64 applyid = 2;
optional string account_id = 3;
optional string nickname = 4;
optional string avatar_url = 5;
optional int32 sex = 6;
optional int64 idx = 1; //id
optional int64 applyid = 2; //id
optional string account_id = 3; //id
optional string nickname = 4; //
optional string avatar_url = 5; //
optional int32 sex = 6; //
}
//
//
message CMLogin
{
optional string account_id = 3;
optional string session_id = 20;
optional string nickname = 4;
optional string avatar_url = 5;
optional int32 sex = 6;
optional string account_id = 3; //id
optional string session_id = 20; //sessionid
optional string nickname = 4; //
optional string avatar_url = 5; //
optional int32 sex = 6; //
}
message SMLogin
{
optional int32 error_code = 1;
optional string error_msg = 2;
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
@ -94,8 +88,8 @@ message CMFriendList
//
message SMFriendList
{
optional int32 error_code = 1; //
optional string error_msg = 2; //
optional int32 errcode = 1; //
optional string errmsg = 2; //
repeated MFUserInfo friend_list = 3; //
}
@ -108,8 +102,8 @@ message CMFriendApply
//
message SMFriendApply
{
optional int32 error_code = 1; //1:
optional string error_msg = 2; //
optional int32 errcode = 1; //1:
optional string errmsg = 2; //
}
//
@ -120,8 +114,8 @@ message CMFriendApplyList
//
message SMFriendApplyList
{
optional int32 error_code = 1; //
optional string error_msg = 2; //
optional int32 errcode = 1; //
optional string errmsg = 2; //
optional MFPaging paging = 3; //
repeated MFFriendApply apply_list = 4; //
}
@ -134,8 +128,8 @@ message CMFriendAgree
//
message SMFriendAgree
{
optional int32 error_code = 1; //
optional string error_msg = 2; //
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
@ -146,8 +140,8 @@ message CMFriendIgnore
//
message SMFriendIgnore
{
optional int32 error_code = 1; //
optional string error_msg = 2; //
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
@ -158,8 +152,8 @@ message CMFriendDelete
//
message SMFriendDelete
{
optional int32 error_code = 1; //
optional string error_msg = 2; //
optional int32 errcode = 1; //
optional string errmsg = 2; //
optional string friend_id = 3; //id
}
@ -170,8 +164,8 @@ message CMFriendBlackList
//
message SMFriendBlackList
{
optional int32 error_code = 1; //
optional string error_msg = 2; //
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
@ -181,8 +175,8 @@ message CMFriendAddBlack
//
message SMFriendAddBlack
{
optional int32 error_code = 1; //
optional string error_msg = 2; //
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
@ -192,8 +186,8 @@ message CMFriendDeleteBlack
//
message SMFriendDeleteBlack
{
optional int32 error_code = 1; //
optional string error_msg = 2; //
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
@ -204,8 +198,8 @@ message CMGroupCreate
//
message SMGroupCreate
{
optional int32 error_code = 1; //1: 2:
optional string error_msg = 2; //
optional int32 errcode = 1; //1: 2:
optional string errmsg = 2; //
}
//
@ -216,17 +210,18 @@ message CMGroupJoin
//
message SMGroupJoin
{
optional int32 error_code = 1; //1:id不存在 2:
optional string error_msg = 2; //
optional int32 errcode = 1; //1:id不存在 2:
optional string errmsg = 2; //
}
//
message CMGroupAgree
{
}
message SMGroupAgree
{
optional int32 error_code = 1;
optional string error_msg = 2;
optional int32 errcode = 1;
optional string errmsg = 2;
}
//
@ -238,59 +233,110 @@ message CMGroupKick
//
message SMGroupKick
{
optional int32 error_code = 1; //1:id错误
optional string error_msg = 2; //
optional int32 errcode = 1; //1:id错误
optional string errmsg = 2; //
}
//退
message CMGroupQuit
{
}
message SMGroupQuit
{
optional int32 error_code = 1;
optional string error_msg = 2;
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
message CMGroupDismiss
{
}
message SMGroupDismiss
{
optional int32 error_code = 1;
optional string error_msg = 2;
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
message CMGroupRename
{
optional string new_group_name = 1;
optional string new_group_name = 1; //
}
message SMGroupRename
{
optional int32 error_code = 1;
optional string error_msg = 2;
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
message CMSendChatMsg
{
optional int32 chat_channel = 1;
optional string target = 2;
optional string msg = 3;
optional int32 chat_channel = 1; //
optional string target = 2; //
optional string msg = 3; //
}
//
message CMSendCustomMsg
{
repeated string target_list = 1; //
optional string msg = 2; //
optional int64 param1 = 3; //1
optional int64 param2 = 4; //2
optional int64 param3 = 5; //3
}
//
message CMUpdateTempCustomData
{
/*
0:
1:
2:
!!!
MFUserRaltimeData走的是增量更新如果不需要处理的字段不传就行
*/
optional int32 update_type = 1; //
optional MFUserTempCustomData temp_custom_data = 2; //
}
///线
message SMUserStatusNotify
{
repeated string online_users = 1;
repeated string offline_users = 2;
repeated string online_users = 1; //线
repeated string offline_users = 2; //线
}
//
message SMChatMsgNotify
{
optional string sender = 1;
optional int32 chat_channel = 2;
optional string msg = 3;
optional string sender = 1; //
optional int32 chat_channel = 2; //
optional string msg = 3; //
}
//
message SMCustomMsgNotify
{
optional string sender = 1; //
optional string msg = 2; //
optional int64 param1 = 3; //1
optional int64 param2 = 4; //2
optional int64 param3 = 5; //3
}
//
message SMUserInfoUpdate
{
repeated MFUserInfo user_infos = 1;
repeated MFUserInfo user_infos = 1; //
}
//
message SMUserTempCustomDataUpdate
{
optional string account_id = 1; //id
optional MFUserTempCustomData temp_custom_data = 2; //
}

View File

@ -13,6 +13,40 @@ message MFIMMsgConext
optional int32 data_version1 = 9;
}
message MFBaseUserDataDB
{
optional string account_id = 1; //id
optional string nickname = 2; //
optional string avatar_url = 3; //
optional int32 sex = 4; // 1 2 0
optional int32 last_login_time = 5; //
optional int64 user_value1 = 50; //1
optional int64 user_value2 = 51; //2
optional int64 user_value3 = 52; //3
optional int64 base_data_version = 100; //
}
message MFGroupMemberDB
{
optional MFBaseUserDataDB base_data = 1; //
}
message MFGroupDB
{
repeated MFGroupMemberDB members = 1;
}
message MFFriendDB
{
optional MFBaseUserDataDB base_data = 1; //
}
message MFUserDB
{
repeated MFFriendDB friends = 1;
}
message SS_WSP_SocketDisconnect
{
}