From 9b79a3d3ecbdae8a1d7e945d2183a84a992915de Mon Sep 17 00:00:00 2001 From: hujiebin Date: Thu, 15 Jun 2023 16:51:11 +0800 Subject: [PATCH] =?UTF-8?q?cp=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocol/userProxy.proto | 8 ++++++++ rpc/user_center_coder.go | 1 + 2 files changed, 9 insertions(+) diff --git a/protocol/userProxy.proto b/protocol/userProxy.proto index 45d4a8d..149e111 100644 --- a/protocol/userProxy.proto +++ b/protocol/userProxy.proto @@ -393,4 +393,12 @@ message SheepGameResult { message CpInvite { User user = 1; string msg = 2; +} + +/* id == 150 cp升级 */ +message CpUpgrade { + User user1 = 1; + User user2 = 2; + uint32 cp_level = 3; + string content = 4; } \ No newline at end of file diff --git a/rpc/user_center_coder.go b/rpc/user_center_coder.go index daf859d..7971594 100644 --- a/rpc/user_center_coder.go +++ b/rpc/user_center_coder.go @@ -64,6 +64,7 @@ const ( MsgTypeSheepGameMatchSuccess = 147 // 羊羊匹配成功 MsgTypeSheepGameResult = 148 // 羊羊游戏结果 MsgTypeCpInvite = 149 // cp邀请 + MsgTypeCpUpgrade = 150 // cp升级 ) const ( -- 2.22.0