Files
Fishing2Server/Config/NetworkProtocol/Outer/OuterMessage.proto
2025-08-12 14:05:23 +08:00

116 lines
2.3 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto3";
package Fantasy.Network.Message;
// 协议分为:
// ProtoBuf:可以在Outer和Inner文件里使用。
// MemoryPack:可以在Outer和Inner文件里使用。
// Bson:仅支持在Inner文件里使用。
// 使用方式:
// 在message协议上方添加// Protocol+空格+协议名字
// 例如:// Protocol ProtoBuf 或 // Protocol MemoryPack
message C2A_LoginRequest // IRequest,A2C_LoginResponse
{
string Username = 1;
string Password = 2;
int32 LoginType = 3; //登录方式
int32 Region = 4; //登录地区,如果是注册,则必须传入
}
message A2C_LoginResponse // IResponse
{
string ToKen = 1;
}
/// 客户端登录到Gate服务器
message C2G_LoginRequest // IRequest,G2C_LoginResponse
{
string ToKen = 1;
}
message G2C_LoginResponse // IResponse
{
GameAccountInfo GameAccountInfo = 1;
}
/// 通知客户端重复登录
message G2C_RepeatLogin // IMessage
{
}
/// GameAccount实体类
message GameAccountInfo
{
int64 CreateTime = 1;
int64 LoginTime = 2;
}
message C2Game_GetRoleInfoRequest // ICustomRouteRequest,Game2C_GetRoleInfoResponse,GameRoute
{
}
message Game2C_GetRoleInfoResponse // ICustomRouteResponse
{
string Name;
string RoleId;
}
///请求邮件列表
message C2Game_GetMailsRequest // ICustomRouteRequest,Game2C_GetMailsResponse,GameRoute
{
}
///获取邮件列表响应
message Game2C_GetMailsResponse // ICustomRouteResponse
{
repeated MailInfo Mail = 1;
}
///新邮件推送
message Game2C_HaveMail // ICustomRouteMessage,GameRoute
{
MailInfo Mail = 1;
}
message Game2C_MailState // ICustomRouteMessage,GameRoute
{
int32 MailState = 1;
int64 MailId = 2;
}
message C2Chat_JoinChannelRequest // ICustomRouteRequest,Caht2C_JoinChannelResponse,ChatRoute
{
int64 Target = 1; // 频道id
}
///进入频道响应
message Caht2C_JoinChannelResponse // ICustomRouteResponse
{
}
///发送聊天
message C2Chat_SendMessageRequest // ICustomRouteRequest,Caht2C_SendMessageResponse,ChatRoute
{
int32 Type = 1; //消息类型 0.频道聊天 1.私聊
string Message = 2;
int64 Target = 3; //目标id频道id或者好友id
}
///发送聊天响应
message Caht2C_SendMessageResponse // ICustomRouteResponse
{
}
///推送消息
message Chat2C_Message // ICustomRouteMessage,ChatRoute
{
ChatMessageInfo Message = 1;
}
message C2G_LoginRequest1 // IRequest,G2C_LoginResponse
{
string ToKen = 1;
}