59 lines
1.3 KiB
Protocol Buffer
59 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
package Pb;
|
|
option go_package = "pb/";
|
|
|
|
import "enums.proto";
|
|
|
|
// ModId.ModContactList: 14000;
|
|
// 联系人模块消息定义
|
|
// 如果定义的消息内没有字段或者消息被注释掉了,说明该请求不需要参数,发送消息时仅发送包头即可,包体可为空, 返回的消息亦是如此。
|
|
|
|
message Contact {
|
|
uint64 UserId = 1;
|
|
uint32 ServerId = 2;
|
|
uint64 RoleId = 3;
|
|
ContactType Type = 4;
|
|
string ServerArea = 5;
|
|
string ServerName = 6;
|
|
string RoleName = 7;
|
|
uint64 Capacity = 8;
|
|
string Corps = 9;
|
|
string Mining = 10;
|
|
uint32 Hatred = 11;
|
|
int64 LogoutTime = 12; //0:在线,>0: 离线时间
|
|
}
|
|
|
|
// MsgId.ModContactList = 14001;
|
|
// 联系人列表
|
|
message ContactListAck {
|
|
repeated Contact ContactList = 1;
|
|
}
|
|
|
|
// MsgId.ModContactAdd = 14002;
|
|
// 联系人添加
|
|
message ContactAddReq {
|
|
uint64 UserId = 1;
|
|
uint32 ServerId = 2;
|
|
uint64 RoleId = 3;
|
|
ContactType Type = 4;
|
|
}
|
|
|
|
// MsgId.ModContactAdd = 14002;
|
|
// 联系人添加
|
|
message ContactAddAck {
|
|
Contact Contact = 1;
|
|
}
|
|
|
|
// MsgId.ModContactAgree = 14003;
|
|
// 联系人同意
|
|
message ContactAgreeReq {
|
|
uint32 UserId = 1;
|
|
uint32 ServerId = 2;
|
|
uint64 RoleId = 3;
|
|
}
|
|
|
|
// MsgId.ModContactAgree = 14003;
|
|
// 联系人同意
|
|
message ContactAgreeAck {
|
|
Contact Contact = 1;
|
|
} |