414 lines
8.0 KiB
Protocol Buffer
Executable File
414 lines
8.0 KiB
Protocol Buffer
Executable File
package ss;
|
||
|
||
import "cs_proto.proto";
|
||
|
||
message MFIMMsgConext
|
||
{
|
||
optional int64 seqid = 1;
|
||
optional cs.MFUserInfo user_info = 2;
|
||
optional int32 socket_handle = 3;
|
||
}
|
||
|
||
message MFIMServerInfo
|
||
{
|
||
optional int32 instance_id = 1;
|
||
optional int32 online_num = 2;
|
||
optional string ip = 3;
|
||
optional int32 port = 4;
|
||
optional bool servicing = 5;
|
||
}
|
||
|
||
message MFGuildLogItem
|
||
{
|
||
optional string sender_id = 1;
|
||
optional string sender_name = 2;
|
||
optional string sender_avatar_url = 3;
|
||
optional int32 sender_job = 4;
|
||
optional int32 logtime = 5;
|
||
optional int32 action = 6;
|
||
optional string opt_id = 7;
|
||
optional string opt_name = 8;
|
||
optional string opt_avatar_url = 9;
|
||
optional int32 opt_job = 10;
|
||
}
|
||
|
||
message MFGuildLogDB
|
||
{
|
||
repeated MFGuildLogItem logs = 1;
|
||
}
|
||
|
||
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 guild_id = 6; //公会id
|
||
optional string guild_name = 7; //公会名称
|
||
optional int32 guild_job = 8; //公会职位
|
||
optional int32 vip_lv = 9; //性别
|
||
optional int32 head = 10; //头像框
|
||
optional int32 contribute = 11; //贡献度
|
||
|
||
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 MFRole
|
||
{
|
||
optional int32 today_apply_times = 1;
|
||
optional int32 save_count = 2;
|
||
optional int32 last_save_time = 3;
|
||
optional int32 today_apply_guild_times = 4;
|
||
optional int32 today_create_guild_times = 5;
|
||
repeated cs.MFPairInt64 applyed_guild_list = 6;
|
||
}
|
||
|
||
message MFGroupMemberDB
|
||
{
|
||
optional MFBaseUserDataDB base_data = 1; //基础数据
|
||
}
|
||
|
||
message MFGroupDB
|
||
{
|
||
repeated MFGroupMemberDB members = 1;
|
||
}
|
||
|
||
message MFGuildMemberDB
|
||
{
|
||
optional MFBaseUserDataDB base_data = 1; //基础数据
|
||
}
|
||
|
||
message MFGuildDB
|
||
{
|
||
repeated MFGuildMemberDB members = 1;
|
||
}
|
||
|
||
message MFFriendDB
|
||
{
|
||
optional MFBaseUserDataDB base_data = 1; //基础数据
|
||
}
|
||
|
||
message MFUserDB
|
||
{
|
||
repeated MFFriendDB friends = 1;
|
||
optional MFRole role_data = 2;
|
||
repeated MFFriendDB black_list = 3;
|
||
}
|
||
|
||
message SS_WSP_SocketDisconnect
|
||
{
|
||
}
|
||
|
||
message SS_CMPing
|
||
{
|
||
}
|
||
|
||
message SS_CommonError
|
||
{
|
||
optional int32 errcode = 1; //1:群id错误
|
||
optional string errmsg = 2; //错误消息
|
||
}
|
||
|
||
message SS_CMLogin_CMReConnect_CommonHead
|
||
{
|
||
optional int32 server_id = 1;
|
||
}
|
||
|
||
message SS_CMLogin_CMReConnect_CommonHead2
|
||
{
|
||
optional int32 server_id = 1;
|
||
optional string team_uuid = 2;
|
||
optional string account_id = 3;
|
||
}
|
||
|
||
message SS_WSP_RequestTargetServer
|
||
{
|
||
optional int64 context_id = 1;
|
||
optional string account_id = 2;
|
||
optional string team_id = 3;
|
||
}
|
||
|
||
message SS_MS_ResponseTargetServer
|
||
{
|
||
optional int32 error_code = 1;
|
||
optional string error_msg = 2;
|
||
optional int64 context_id = 3;
|
||
optional string host = 4;
|
||
optional int32 port = 5;
|
||
}
|
||
|
||
message SS_SMRpcError
|
||
{
|
||
optional int32 error_code = 1;
|
||
optional string error_msg = 2;
|
||
optional string debug_msg = 3;
|
||
optional string file = 4;
|
||
optional int32 lineno = 5;
|
||
}
|
||
|
||
message SS_Ping
|
||
{
|
||
}
|
||
|
||
message SS_Pong
|
||
{
|
||
optional int32 param1 = 1;
|
||
}
|
||
|
||
message SS_ForceCloseSocket
|
||
{
|
||
}
|
||
|
||
message SS_IM_ForwardMsg
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional bytes payload = 2;
|
||
}
|
||
|
||
message SS_MS_ForwardGroupCMMsg
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional bytes payload = 2;
|
||
}
|
||
|
||
message SS_MS_ForwardGroupSMMsg
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional bytes payload = 2;
|
||
}
|
||
|
||
message SS_MS_LoadGroup
|
||
{
|
||
optional int64 group_id = 1;
|
||
}
|
||
|
||
message SS_IM_ForwardGuildCMMsg
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional int64 guild_id = 2;
|
||
optional int32 msgid = 3;
|
||
optional bytes payload = 4;
|
||
}
|
||
|
||
message SS_IM_ForwardGuildSMMsg
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional int32 msgid = 2;
|
||
optional bytes payload = 3;
|
||
}
|
||
|
||
message SS_IM_ReportServerInfo
|
||
{
|
||
optional int32 instance_id = 1;
|
||
optional int32 online_num = 2;
|
||
optional string ip = 3;
|
||
optional int32 port = 4;
|
||
optional bool servicing = 5;
|
||
}
|
||
|
||
message SS_MS_ConfirmedServerInfo
|
||
{
|
||
optional int32 errcode = 1;
|
||
optional string errmsg = 2;
|
||
}
|
||
|
||
message SS_IM_UserOnline
|
||
{
|
||
repeated cs.MFUserInfo user_infos = 1;
|
||
}
|
||
|
||
message SS_IM_UserOffline
|
||
{
|
||
repeated string account_ids = 1;
|
||
}
|
||
|
||
message SS_IM_PullUserList
|
||
{
|
||
repeated string account_ids = 1;
|
||
}
|
||
message SS_MS_PushUserList
|
||
{
|
||
repeated cs.MFUserInfo user_infos = 1;
|
||
}
|
||
|
||
message SS_IM_SendChatMsg
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional int32 chat_channel = 2;
|
||
optional string target = 3;
|
||
optional int32 msg_type = 4;
|
||
optional string msg_body = 5;
|
||
}
|
||
|
||
message SS_IM_SendCustomMsg
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional string target = 2;
|
||
optional string msg = 3;
|
||
optional int64 param1 = 4;
|
||
optional int64 param2 = 5;
|
||
optional int64 param3 = 6;
|
||
}
|
||
|
||
message SS_IM_IMServerList
|
||
{
|
||
}
|
||
message SS_MS_IMServerList
|
||
{
|
||
repeated MFIMServerInfo server_list = 1;
|
||
}
|
||
|
||
message SS_IM_UpdateUserInfo
|
||
{
|
||
optional cs.MFUserInfo user_info = 1;
|
||
}
|
||
|
||
message SS_IM_FriendAgreeRequest
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional string target_id = 3;
|
||
}
|
||
|
||
message SS_IM_FriendAgreeResponse
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional string target_id = 3;
|
||
}
|
||
|
||
message SS_IM_FriendDeleteRequest
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional string target_id = 3;
|
||
optional int32 reason = 4;
|
||
}
|
||
|
||
message SS_IM_FriendDeleteResponse
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional string target_id = 3;
|
||
}
|
||
|
||
message SS_IM_FriendApply
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional string target_id = 3;
|
||
}
|
||
|
||
message SS_IM_QueryUserOnlineState
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
repeated string account_ids = 3;
|
||
}
|
||
|
||
message SS_IM_PushUserOnlineState
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
repeated cs.MFUserInfo user_infos = 2;
|
||
}
|
||
|
||
message SS_IM_OnUserOnline
|
||
{
|
||
repeated string account_ids = 3;
|
||
}
|
||
|
||
message SS_IM_OnUserOffline
|
||
{
|
||
repeated string account_ids = 3;
|
||
}
|
||
|
||
message SS_IM_RandomUsersRequest
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
repeated string exclude_account_ids = 3;
|
||
}
|
||
|
||
message SS_IM_RandomUsersResponse
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
repeated cs.MFUserInfo user_infos = 2;
|
||
}
|
||
|
||
message SS_IM_GuildMemberQuitRequest
|
||
{
|
||
optional int64 seqid = 1;
|
||
optional int64 guild_id = 2;
|
||
optional string sender_id = 3;
|
||
optional string target_id = 4;
|
||
optional int32 reason = 5;
|
||
}
|
||
|
||
message SS_IM_GuildMemberQuitResponse
|
||
{
|
||
optional int64 seqid = 1;
|
||
}
|
||
|
||
message SS_IM_GuildMemberUpdateRequest
|
||
{
|
||
optional int64 seqid = 1;
|
||
optional int64 guild_id = 2;
|
||
optional string sender_id = 3;
|
||
optional string target_id = 4;
|
||
optional int32 reason = 5;
|
||
optional int32 guild_job = 6;
|
||
}
|
||
|
||
message SS_IM_GuildMemberUpdateResponse
|
||
{
|
||
optional int64 seqid = 1;
|
||
}
|
||
|
||
message SS_IM_RefeshGuildMemberInfo
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
}
|
||
|
||
message SS_GS_QueryGuildUserOnlineState
|
||
{
|
||
optional int64 seqid = 1;
|
||
optional int64 guild_id = 2;
|
||
repeated string account_ids = 3;
|
||
}
|
||
|
||
message SS_IM_PushGuildUserOnlineState
|
||
{
|
||
optional int64 seqid = 1;
|
||
optional int64 guild_id = 2;
|
||
repeated string online_users = 3;
|
||
}
|
||
|
||
message SS_IM_GuildRecalcRedPoint
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional int64 guild_id = 2;
|
||
}
|
||
|
||
message SS_GS_PushGuildRedPoint
|
||
{
|
||
optional int64 guild_id = 1;
|
||
optional string account_id = 2;
|
||
optional int32 has_apply = 3;
|
||
}
|
||
|
||
message SS_IM_GuildNewApply
|
||
{
|
||
optional MFIMMsgConext context = 1;
|
||
optional int64 guild_id = 2;
|
||
}
|
||
|
||
message SS_GS_ApplyChangeRequest
|
||
{
|
||
optional int64 seqid = 1;
|
||
optional int64 guild_id = 2;
|
||
optional string account_id = 3;
|
||
optional int32 is_refuse = 4;
|
||
}
|
||
|
||
message SS_IM_ApplyChangeResponse
|
||
{
|
||
optional int64 seqid = 1;
|
||
}
|