物品分页请求
parent
ec683143b7
commit
82b0c81cdf
|
|
@ -14,9 +14,6 @@ local PLAYER_EXP_FIELD = protobuf.FieldDescriptor();
|
|||
local PLAYER_VIPLEVEL_FIELD = protobuf.FieldDescriptor();
|
||||
local PLAYER_FAMILYID_FIELD = protobuf.FieldDescriptor();
|
||||
local PLAYER_HEAD_FIELD = protobuf.FieldDescriptor();
|
||||
local PLAYER_GOLD_FIELD = protobuf.FieldDescriptor();
|
||||
local PLAYER_GEM_FIELD = protobuf.FieldDescriptor();
|
||||
local PLAYER_CHARGEGEM_FIELD = protobuf.FieldDescriptor();
|
||||
local PLAYER_CURMAPID_FIELD = protobuf.FieldDescriptor();
|
||||
ITEM = protobuf.Descriptor();
|
||||
local ITEM_ITEMID_FIELD = protobuf.FieldDescriptor();
|
||||
|
|
@ -156,40 +153,10 @@ PLAYER_HEAD_FIELD.default_value = ""
|
|||
PLAYER_HEAD_FIELD.type = 9
|
||||
PLAYER_HEAD_FIELD.cpp_type = 9
|
||||
|
||||
PLAYER_GOLD_FIELD.name = "gold"
|
||||
PLAYER_GOLD_FIELD.full_name = ".com.ljsd.jieling.protocols.Player.gold"
|
||||
PLAYER_GOLD_FIELD.number = 8
|
||||
PLAYER_GOLD_FIELD.index = 7
|
||||
PLAYER_GOLD_FIELD.label = 1
|
||||
PLAYER_GOLD_FIELD.has_default_value = false
|
||||
PLAYER_GOLD_FIELD.default_value = 0
|
||||
PLAYER_GOLD_FIELD.type = 3
|
||||
PLAYER_GOLD_FIELD.cpp_type = 2
|
||||
|
||||
PLAYER_GEM_FIELD.name = "gem"
|
||||
PLAYER_GEM_FIELD.full_name = ".com.ljsd.jieling.protocols.Player.gem"
|
||||
PLAYER_GEM_FIELD.number = 9
|
||||
PLAYER_GEM_FIELD.index = 8
|
||||
PLAYER_GEM_FIELD.label = 1
|
||||
PLAYER_GEM_FIELD.has_default_value = false
|
||||
PLAYER_GEM_FIELD.default_value = 0
|
||||
PLAYER_GEM_FIELD.type = 5
|
||||
PLAYER_GEM_FIELD.cpp_type = 1
|
||||
|
||||
PLAYER_CHARGEGEM_FIELD.name = "chargeGem"
|
||||
PLAYER_CHARGEGEM_FIELD.full_name = ".com.ljsd.jieling.protocols.Player.chargeGem"
|
||||
PLAYER_CHARGEGEM_FIELD.number = 10
|
||||
PLAYER_CHARGEGEM_FIELD.index = 9
|
||||
PLAYER_CHARGEGEM_FIELD.label = 1
|
||||
PLAYER_CHARGEGEM_FIELD.has_default_value = false
|
||||
PLAYER_CHARGEGEM_FIELD.default_value = 0
|
||||
PLAYER_CHARGEGEM_FIELD.type = 5
|
||||
PLAYER_CHARGEGEM_FIELD.cpp_type = 1
|
||||
|
||||
PLAYER_CURMAPID_FIELD.name = "curMapId"
|
||||
PLAYER_CURMAPID_FIELD.full_name = ".com.ljsd.jieling.protocols.Player.curMapId"
|
||||
PLAYER_CURMAPID_FIELD.number = 11
|
||||
PLAYER_CURMAPID_FIELD.index = 10
|
||||
PLAYER_CURMAPID_FIELD.number = 8
|
||||
PLAYER_CURMAPID_FIELD.index = 7
|
||||
PLAYER_CURMAPID_FIELD.label = 1
|
||||
PLAYER_CURMAPID_FIELD.has_default_value = false
|
||||
PLAYER_CURMAPID_FIELD.default_value = 0
|
||||
|
|
@ -200,7 +167,7 @@ PLAYER.name = "Player"
|
|||
PLAYER.full_name = ".com.ljsd.jieling.protocols.Player"
|
||||
PLAYER.nested_types = {}
|
||||
PLAYER.enum_types = {}
|
||||
PLAYER.fields = {PLAYER_UID_FIELD, PLAYER_NICKNAME_FIELD, PLAYER_LEVEL_FIELD, PLAYER_EXP_FIELD, PLAYER_VIPLEVEL_FIELD, PLAYER_FAMILYID_FIELD, PLAYER_HEAD_FIELD, PLAYER_GOLD_FIELD, PLAYER_GEM_FIELD, PLAYER_CHARGEGEM_FIELD, PLAYER_CURMAPID_FIELD}
|
||||
PLAYER.fields = {PLAYER_UID_FIELD, PLAYER_NICKNAME_FIELD, PLAYER_LEVEL_FIELD, PLAYER_EXP_FIELD, PLAYER_VIPLEVEL_FIELD, PLAYER_FAMILYID_FIELD, PLAYER_HEAD_FIELD, PLAYER_CURMAPID_FIELD}
|
||||
PLAYER.is_extendable = false
|
||||
PLAYER.extensions = {}
|
||||
ITEM_ITEMID_FIELD.name = "itemId"
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
-- Generated By protoc-gen-lua Do not Edit
|
||||
local protobuf = require "protobuf/protobuf"
|
||||
module('GMCommandProto_pb')
|
||||
|
||||
|
||||
GMCOMMAND = protobuf.Descriptor();
|
||||
local GMCOMMAND_COMMAND_FIELD = protobuf.FieldDescriptor();
|
||||
|
||||
GMCOMMAND_COMMAND_FIELD.name = "command"
|
||||
GMCOMMAND_COMMAND_FIELD.full_name = ".com.ljsd.jieling.protocols.GMCommand.command"
|
||||
GMCOMMAND_COMMAND_FIELD.number = 1
|
||||
GMCOMMAND_COMMAND_FIELD.index = 0
|
||||
GMCOMMAND_COMMAND_FIELD.label = 1
|
||||
GMCOMMAND_COMMAND_FIELD.has_default_value = false
|
||||
GMCOMMAND_COMMAND_FIELD.default_value = ""
|
||||
GMCOMMAND_COMMAND_FIELD.type = 9
|
||||
GMCOMMAND_COMMAND_FIELD.cpp_type = 9
|
||||
|
||||
GMCOMMAND.name = "GMCommand"
|
||||
GMCOMMAND.full_name = ".com.ljsd.jieling.protocols.GMCommand"
|
||||
GMCOMMAND.nested_types = {}
|
||||
GMCOMMAND.enum_types = {}
|
||||
GMCOMMAND.fields = {GMCOMMAND_COMMAND_FIELD}
|
||||
GMCOMMAND.is_extendable = false
|
||||
GMCOMMAND.extensions = {}
|
||||
|
||||
GMCommand = protobuf.Message(GMCOMMAND)
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ local GETPLAYERINFOREQUEST_STR_FIELD = protobuf.FieldDescriptor();
|
|||
GETPLAYERINFORESPONSE = protobuf.Descriptor();
|
||||
local GETPLAYERINFORESPONSE_PLAYER_FIELD = protobuf.FieldDescriptor();
|
||||
GETITEMINFOREQUEST = protobuf.Descriptor();
|
||||
local GETITEMINFOREQUEST_NUM_FIELD = protobuf.FieldDescriptor();
|
||||
local GETITEMINFOREQUEST_STR_FIELD = protobuf.FieldDescriptor();
|
||||
local GETITEMINFOREQUEST_INDEX_FIELD = protobuf.FieldDescriptor();
|
||||
GETITEMINFORESPONSE = protobuf.Descriptor();
|
||||
local GETITEMINFORESPONSE_ITEMLIST_FIELD = protobuf.FieldDescriptor();
|
||||
local GETITEMINFORESPONSE_ISSENDFINISH_FIELD = protobuf.FieldDescriptor();
|
||||
|
||||
ERRORMSGRESPONSE_MSG_FIELD.name = "msg"
|
||||
ERRORMSGRESPONSE_MSG_FIELD.full_name = ".com.ljsd.jieling.protocols.ErrorMsgResponse.msg"
|
||||
|
|
@ -150,31 +150,21 @@ GETPLAYERINFORESPONSE.enum_types = {}
|
|||
GETPLAYERINFORESPONSE.fields = {GETPLAYERINFORESPONSE_PLAYER_FIELD}
|
||||
GETPLAYERINFORESPONSE.is_extendable = false
|
||||
GETPLAYERINFORESPONSE.extensions = {}
|
||||
GETITEMINFOREQUEST_NUM_FIELD.name = "num"
|
||||
GETITEMINFOREQUEST_NUM_FIELD.full_name = ".com.ljsd.jieling.protocols.GetItemInfoRequest.num"
|
||||
GETITEMINFOREQUEST_NUM_FIELD.number = 1
|
||||
GETITEMINFOREQUEST_NUM_FIELD.index = 0
|
||||
GETITEMINFOREQUEST_NUM_FIELD.label = 1
|
||||
GETITEMINFOREQUEST_NUM_FIELD.has_default_value = false
|
||||
GETITEMINFOREQUEST_NUM_FIELD.default_value = 0
|
||||
GETITEMINFOREQUEST_NUM_FIELD.type = 5
|
||||
GETITEMINFOREQUEST_NUM_FIELD.cpp_type = 1
|
||||
|
||||
GETITEMINFOREQUEST_STR_FIELD.name = "str"
|
||||
GETITEMINFOREQUEST_STR_FIELD.full_name = ".com.ljsd.jieling.protocols.GetItemInfoRequest.str"
|
||||
GETITEMINFOREQUEST_STR_FIELD.number = 2
|
||||
GETITEMINFOREQUEST_STR_FIELD.index = 1
|
||||
GETITEMINFOREQUEST_STR_FIELD.label = 1
|
||||
GETITEMINFOREQUEST_STR_FIELD.has_default_value = false
|
||||
GETITEMINFOREQUEST_STR_FIELD.default_value = ""
|
||||
GETITEMINFOREQUEST_STR_FIELD.type = 9
|
||||
GETITEMINFOREQUEST_STR_FIELD.cpp_type = 9
|
||||
GETITEMINFOREQUEST_INDEX_FIELD.name = "index"
|
||||
GETITEMINFOREQUEST_INDEX_FIELD.full_name = ".com.ljsd.jieling.protocols.GetItemInfoRequest.index"
|
||||
GETITEMINFOREQUEST_INDEX_FIELD.number = 1
|
||||
GETITEMINFOREQUEST_INDEX_FIELD.index = 0
|
||||
GETITEMINFOREQUEST_INDEX_FIELD.label = 1
|
||||
GETITEMINFOREQUEST_INDEX_FIELD.has_default_value = false
|
||||
GETITEMINFOREQUEST_INDEX_FIELD.default_value = 0
|
||||
GETITEMINFOREQUEST_INDEX_FIELD.type = 5
|
||||
GETITEMINFOREQUEST_INDEX_FIELD.cpp_type = 1
|
||||
|
||||
GETITEMINFOREQUEST.name = "GetItemInfoRequest"
|
||||
GETITEMINFOREQUEST.full_name = ".com.ljsd.jieling.protocols.GetItemInfoRequest"
|
||||
GETITEMINFOREQUEST.nested_types = {}
|
||||
GETITEMINFOREQUEST.enum_types = {}
|
||||
GETITEMINFOREQUEST.fields = {GETITEMINFOREQUEST_NUM_FIELD, GETITEMINFOREQUEST_STR_FIELD}
|
||||
GETITEMINFOREQUEST.fields = {GETITEMINFOREQUEST_INDEX_FIELD}
|
||||
GETITEMINFOREQUEST.is_extendable = false
|
||||
GETITEMINFOREQUEST.extensions = {}
|
||||
GETITEMINFORESPONSE_ITEMLIST_FIELD.name = "itemlist"
|
||||
|
|
@ -188,11 +178,21 @@ GETITEMINFORESPONSE_ITEMLIST_FIELD.message_type = CommonProto_pb.ITEM
|
|||
GETITEMINFORESPONSE_ITEMLIST_FIELD.type = 11
|
||||
GETITEMINFORESPONSE_ITEMLIST_FIELD.cpp_type = 10
|
||||
|
||||
GETITEMINFORESPONSE_ISSENDFINISH_FIELD.name = "isSendFinish"
|
||||
GETITEMINFORESPONSE_ISSENDFINISH_FIELD.full_name = ".com.ljsd.jieling.protocols.GetItemInfoResponse.isSendFinish"
|
||||
GETITEMINFORESPONSE_ISSENDFINISH_FIELD.number = 2
|
||||
GETITEMINFORESPONSE_ISSENDFINISH_FIELD.index = 1
|
||||
GETITEMINFORESPONSE_ISSENDFINISH_FIELD.label = 1
|
||||
GETITEMINFORESPONSE_ISSENDFINISH_FIELD.has_default_value = false
|
||||
GETITEMINFORESPONSE_ISSENDFINISH_FIELD.default_value = false
|
||||
GETITEMINFORESPONSE_ISSENDFINISH_FIELD.type = 8
|
||||
GETITEMINFORESPONSE_ISSENDFINISH_FIELD.cpp_type = 7
|
||||
|
||||
GETITEMINFORESPONSE.name = "GetItemInfoResponse"
|
||||
GETITEMINFORESPONSE.full_name = ".com.ljsd.jieling.protocols.GetItemInfoResponse"
|
||||
GETITEMINFORESPONSE.nested_types = {}
|
||||
GETITEMINFORESPONSE.enum_types = {}
|
||||
GETITEMINFORESPONSE.fields = {GETITEMINFORESPONSE_ITEMLIST_FIELD}
|
||||
GETITEMINFORESPONSE.fields = {GETITEMINFORESPONSE_ITEMLIST_FIELD, GETITEMINFORESPONSE_ISSENDFINISH_FIELD}
|
||||
GETITEMINFORESPONSE.is_extendable = false
|
||||
GETITEMINFORESPONSE.extensions = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,7 @@ option optimize_for = SPEED;
|
|||
optional int32 vipLevel = 5;
|
||||
optional string familyId = 6;
|
||||
optional string head = 7;
|
||||
optional int64 gold = 8;
|
||||
optional int32 gem = 9;
|
||||
optional int32 chargeGem = 10;
|
||||
optional int32 curMapId = 11;
|
||||
optional int32 curMapId = 8;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -33,10 +33,10 @@ import "CommonProto.proto";
|
|||
|
||||
|
||||
message GetItemInfoRequest{
|
||||
optional int32 num = 1;
|
||||
optional string str = 2;
|
||||
optional int32 index = 1; //第一次请求1 第二次:1+一页的总数量
|
||||
}
|
||||
|
||||
message GetItemInfoResponse{
|
||||
repeated Item itemlist = 1;
|
||||
repeated Item itemlist = 1;
|
||||
optional bool isSendFinish =2; //是否发送完成
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue