From f6a296065331669eea12578b788a770e5f00e4e7 Mon Sep 17 00:00:00 2001 From: zhangshanxue Date: Wed, 25 Nov 2020 15:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=A8=E6=9C=8D=E6=9C=8D=E5=8A=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/gtwprotos/WorldProto.proto | 12 +++++++- protos/wtgprotos/WorldProto.proto | 51 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 protos/wtgprotos/WorldProto.proto diff --git a/protos/gtwprotos/WorldProto.proto b/protos/gtwprotos/WorldProto.proto index 809c4ff..7fcec74 100644 --- a/protos/gtwprotos/WorldProto.proto +++ b/protos/gtwprotos/WorldProto.proto @@ -48,4 +48,14 @@ import "CommonProto.proto"; //跨服天梯挑战与被挑战 战斗记录 message GetWorldArenaRecordInfoResponse{ repeated rpc.protocols.ArenaRecordInfo arenaRecordInfo =1; - } \ No newline at end of file + } + + + //gs --》word + message GetGSUserArenaInfoRequest{ + + } + message GetGSUserArenaInfoResponse{ + optional rpc.protocols.ArenaEnemy arenaEnemys = 1; //新的一批对手信息 + } + \ No newline at end of file diff --git a/protos/wtgprotos/WorldProto.proto b/protos/wtgprotos/WorldProto.proto new file mode 100644 index 0000000..809c4ff --- /dev/null +++ b/protos/wtgprotos/WorldProto.proto @@ -0,0 +1,51 @@ +package rpc.world; + +option optimize_for = SPEED; + + +// request 编号需要小于 response 编号 + +import "CommonProto.proto"; + + message GetWorldArenaInfoRequest{ + + } + message GetWorldArenaInfoResponse{ + optional rpc.protocols.ArenaInfo arenaInfo = 1; + optional int32 stage = 2;//1 未开始 2 战斗阶段 3 膜拜阶段 + optional int32 endTime = 3;//阶段结束时间戳 + } + message GetWorldArenaInfoIndication{ + optional rpc.protocols.ArenaInfo arenaInfo = 1; + optional int32 stage = 2;//1 未开始 2 战斗阶段 3 膜拜阶段 + optional int32 endTime = 3;//阶段结束时间戳 + } + // 需要的数据 世界等级(推送) + + //跨服天梯挑战 + message GetWorldArenaChallengeRequest{ + optional int32 teamId =1; // 本人进攻队伍id + optional int32 challengeServerid = 2 ;// 对手Serverid + optional int32 challengeUid = 3 ;// 对手uid + optional int32 skipFight = 4 ;// 1:标识跳过战斗 0: 不跳过战斗 + } + + message GetWorldArenaChallengeResponse{ + optional int32 mySortChange = 1 ; //我的名次变化值 + repeated rpc.protocols.ArenaEnemy arenaEnemys = 2; //新的一批对手信息 + optional rpc.protocols.FightData fightData =3; // 战斗数据 + optional int32 fightResult = 4 ;// 战斗结果 -1 时 表示挑战目标排名发生变化 需刷新 + optional rpc.protocols.Drop drop = 5 ; + } + //膜拜 + message GetWorldArenaProudRequest{ + optional int32 challengeServerid = 1 ;// 对手Serverid + optional int32 challengeUid = 2 ;// 对手uid + } + message GetWorldArenaProudResponse{ + optional rpc.protocols.Drop drop = 1;//膜拜奖励 (头像框奖励) + } + //跨服天梯挑战与被挑战 战斗记录 + message GetWorldArenaRecordInfoResponse{ + repeated rpc.protocols.ArenaRecordInfo arenaRecordInfo =1; + } \ No newline at end of file