搜索好友

master_huanxiang
gaojie 2019-06-11 14:20:29 +08:00
parent 7d9a7d4601
commit 17c133ab4c
4 changed files with 196 additions and 123 deletions

File diff suppressed because one or more lines are too long

View File

@ -162,6 +162,11 @@ local FRIENDTAKEHEARTREQUEST_TYPE_FIELD = protobuf.FieldDescriptor();
local FRIENDTAKEHEARTREQUEST_FRIENDID_FIELD = protobuf.FieldDescriptor();
FRIENDTAKEHEARTRESPONSE = protobuf.Descriptor();
local FRIENDTAKEHEARTRESPONSE_DROP_FIELD = protobuf.FieldDescriptor();
FRIENDSEARCHREQUEST = protobuf.Descriptor();
local FRIENDSEARCHREQUEST_NAME_FIELD = protobuf.FieldDescriptor();
FRIENDSEARCHRESPONSE = protobuf.Descriptor();
local FRIENDSEARCHRESPONSE_TYPE_FIELD = protobuf.FieldDescriptor();
local FRIENDSEARCHRESPONSE_FRIENDS_FIELD = protobuf.FieldDescriptor();
ERRORMSGRESPONSE_MSG_FIELD.name = "msg"
ERRORMSGRESPONSE_MSG_FIELD.full_name = ".com.ljsd.jieling.protocols.ErrorMsgResponse.msg"
@ -1594,6 +1599,51 @@ FRIENDTAKEHEARTRESPONSE.enum_types = {}
FRIENDTAKEHEARTRESPONSE.fields = {FRIENDTAKEHEARTRESPONSE_DROP_FIELD}
FRIENDTAKEHEARTRESPONSE.is_extendable = false
FRIENDTAKEHEARTRESPONSE.extensions = {}
FRIENDSEARCHREQUEST_NAME_FIELD.name = "name"
FRIENDSEARCHREQUEST_NAME_FIELD.full_name = ".com.ljsd.jieling.protocols.FriendSearchRequest.name"
FRIENDSEARCHREQUEST_NAME_FIELD.number = 1
FRIENDSEARCHREQUEST_NAME_FIELD.index = 0
FRIENDSEARCHREQUEST_NAME_FIELD.label = 1
FRIENDSEARCHREQUEST_NAME_FIELD.has_default_value = false
FRIENDSEARCHREQUEST_NAME_FIELD.default_value = ""
FRIENDSEARCHREQUEST_NAME_FIELD.type = 9
FRIENDSEARCHREQUEST_NAME_FIELD.cpp_type = 9
FRIENDSEARCHREQUEST.name = "FriendSearchRequest"
FRIENDSEARCHREQUEST.full_name = ".com.ljsd.jieling.protocols.FriendSearchRequest"
FRIENDSEARCHREQUEST.nested_types = {}
FRIENDSEARCHREQUEST.enum_types = {}
FRIENDSEARCHREQUEST.fields = {FRIENDSEARCHREQUEST_NAME_FIELD}
FRIENDSEARCHREQUEST.is_extendable = false
FRIENDSEARCHREQUEST.extensions = {}
FRIENDSEARCHRESPONSE_TYPE_FIELD.name = "type"
FRIENDSEARCHRESPONSE_TYPE_FIELD.full_name = ".com.ljsd.jieling.protocols.FriendSearchResponse.type"
FRIENDSEARCHRESPONSE_TYPE_FIELD.number = 1
FRIENDSEARCHRESPONSE_TYPE_FIELD.index = 0
FRIENDSEARCHRESPONSE_TYPE_FIELD.label = 1
FRIENDSEARCHRESPONSE_TYPE_FIELD.has_default_value = false
FRIENDSEARCHRESPONSE_TYPE_FIELD.default_value = 0
FRIENDSEARCHRESPONSE_TYPE_FIELD.type = 5
FRIENDSEARCHRESPONSE_TYPE_FIELD.cpp_type = 1
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.name = "Friends"
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.full_name = ".com.ljsd.jieling.protocols.FriendSearchResponse.Friends"
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.number = 2
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.index = 1
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.label = 1
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.has_default_value = false
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.default_value = nil
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.message_type = CommonProto_pb.FRIEND
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.type = 11
FRIENDSEARCHRESPONSE_FRIENDS_FIELD.cpp_type = 10
FRIENDSEARCHRESPONSE.name = "FriendSearchResponse"
FRIENDSEARCHRESPONSE.full_name = ".com.ljsd.jieling.protocols.FriendSearchResponse"
FRIENDSEARCHRESPONSE.nested_types = {}
FRIENDSEARCHRESPONSE.enum_types = {}
FRIENDSEARCHRESPONSE.fields = {FRIENDSEARCHRESPONSE_TYPE_FIELD, FRIENDSEARCHRESPONSE_FRIENDS_FIELD}
FRIENDSEARCHRESPONSE.is_extendable = false
FRIENDSEARCHRESPONSE.extensions = {}
ActiviteWorkShopReqeust = protobuf.Message(ACTIVITEWORKSHOPREQEUST)
AllGiftGoodsIndication = protobuf.Message(ALLGIFTGOODSINDICATION)
@ -1606,6 +1656,8 @@ DelFriendRequest = protobuf.Message(DELFRIENDREQUEST)
ErrorMsgResponse = protobuf.Message(ERRORMSGRESPONSE)
FriendGivePresentRequest = protobuf.Message(FRIENDGIVEPRESENTREQUEST)
FriendInviteOperationRequest = protobuf.Message(FRIENDINVITEOPERATIONREQUEST)
FriendSearchRequest = protobuf.Message(FRIENDSEARCHREQUEST)
FriendSearchResponse = protobuf.Message(FRIENDSEARCHRESPONSE)
FriendTakeHeartRequest = protobuf.Message(FRIENDTAKEHEARTREQUEST)
FriendTakeHeartResponse = protobuf.Message(FRIENDTAKEHEARTRESPONSE)
GetAllActivityResponse = protobuf.Message(GETALLACTIVITYRESPONSE)

View File

@ -109,6 +109,9 @@ enum MessageType{
FRIEND_GIVE_PRESENT_REQUEST = 10510; //
FRIEND_GIVE_PRESENT_RESPONSE =10511;
FRIEND_SEARCH_REQUEST = 10512; //
FRIEND_SEARCH_RESPONSE = 10513;
// G 10600
GET_PLAYERINFO_REQUEST = 10600; //
GET_PLAYERINFO_RESPONSE = 10601;

View File

@ -293,6 +293,14 @@ import "CommonProto.proto";
optional Drop drop =1;
}
message FriendSearchRequest{
optional string name = 1; //
}
message FriendSearchResponse{
optional int32 type = 1; // 1:, 2:. 3:
optional Friend Friends =2; //
}