From d5a71a5b3d998e899adf62e01816c1c133ab87c0 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Tue, 7 Jan 2020 15:56:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=9A=E7=BA=A2=E5=8C=85=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/CommonProto.proto | 15 ++++++++++++++- protos/Family.proto | 26 ++++++++++++++++++++++++++ protos/MessageTypeProto.proto | 11 +++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index 83a2dda..ddf2681 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -716,7 +716,20 @@ option optimize_for = SPEED; optional int32 position = 7; //位置 1 2 3 4 一次从左到右 optional int32 isGUess= 8; //是否是当前竞猜信息,0 否 1 是 } - + message RedPackage{ + optional string userName = 1; + optional int32 redId = 2;//红包Id + optional int32 isGet = 3; //本人是否已领取过 + optional int32 getCount = 4;//已领取个数 + } + message RedOneDetail{ + optional int32 uid = 1; + optional int32 head = 2; + optional int32 headFrame = 3; + optional string name =4; + optional int32 time = 5; + optional int32 count = 6; + } diff --git a/protos/Family.proto b/protos/Family.proto index 4c4b47a..2a73482 100644 --- a/protos/Family.proto +++ b/protos/Family.proto @@ -311,3 +311,29 @@ import "CommonProto.proto"; message KickOutIndication{ optional int32 uid = 1; } + //发红包 + message SendRedPackageRequest{ + optional int32 id = 1; + } + //获取所有红包信息 + message GetAllRedPackageResponse{ + repeated RedPackage allRed = 1; + } + //抢红包 + message RobRedPackageRequest{ + optional int32 id = 1; + optional int32 type = 2; + } + + message RobRedPackageResponse{ + optional int32 isSuccess = 1; + } + + //查看红包详情 + message RedPackageDetailRequest{ + optional int32 id = 1; + } + message RedPackageDetailResponse{ + repeated RedOneDetail info = 1; + optional int32 remainTime = 2; + } \ No newline at end of file diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index 8fbab92..3187bc1 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -445,6 +445,17 @@ enum MessageType{ HERO_LOCK_CHANGE_RESPONSE = 10708; // I 10800 // J 10900 + J_SEND_REDPACKAGE_REQUEST = 10901;//发红包 + J_SEND_REDPACKAGE_RESPONSE = 10902; + + J_GET_ALL_REDPACKAGE_INFO_REQUEST = 10903;//获取所有红包 + J_GET_ALL_REDPACKAGE_INFO_RESPONSE= 10904; + + J_ROB_REDPACKAGE_INFO_REQUEST = 10905;//抢红包 + J_ROB_REDPACKAGE_INFO_RESPONSE = 10906; + + J_GET_REDPACKAGE_DETAIL_REQUEST = 10907;//查看红包详情 + J_GET_REDPACKAGE_DETAIL_RESPONSE = 10908; // K 11000 // L 11100