From 01804402b12b623eeae9bbf55e0b481bce995f90 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Fri, 21 Jul 2023 17:05:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=90=8C=E6=AD=A5proto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocol/userProxy.proto | 62 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/protocol/userProxy.proto b/protocol/userProxy.proto index 2a5883b..85e540e 100644 --- a/protocol/userProxy.proto +++ b/protocol/userProxy.proto @@ -16,6 +16,7 @@ message User { bool isVip = 8; bool isLike = 9; bool isLikeMe = 10; + string code = 11; } /* Svip*/ @@ -209,6 +210,9 @@ message GlobalGiftBanner { string giftPicUrl = 11; Svip svip = 12; Svip receiveSvip = 13; + uint32 bannerType = 14; // 类型:0.普通礼物 1.cp直接送礼 2.cp告白礼物 + uint32 cpLevel = 15; // cp等级 + string receiveUserAvatar = 16; } /* id == 116 横幅的回应,用来测量RTT */ @@ -349,4 +353,62 @@ message GroupActivity { /* id == 144 邀请用户成为房间会员 */ message RoomInviteMember { string group_id = 1; +} + +/* id == 145 钻石变化 */ +message DiamondChange { + uint32 remainDiamond = 1; + uint32 remainPinkDiamond = 2; +} + +/* id == 146 游戏横幅 */ +message GlobalGameBanner { + uint32 gameType = 1; // 0.h5游戏 1.ludo 2.uno 3.dice 4.lucky wheel 5.lucky box 6.fruit + uint64 userId = 2; + string avatar = 3; + uint64 diamond = 4; + string bannerUrl = 5; + uint64 gameId = 6; // 1.ludo 2.uno 3.dice 4.lucky wheel 5.lucky box 6.fruit 7.slot +} + +/* id == 147 羊羊匹配成功 */ +message SheepMatchSuccess { + uint64 match_id = 1; + User user = 2; + User otherUser = 3; + uint64 game_id = 4; +} + +message SheepGamePlayer { + User user = 1; + bool is_win = 2; + int32 rank = 3; +} + +/* id == 148 羊羊游戏结果 */ +message SheepGameResult { + uint64 match_id = 1; + repeated SheepGamePlayer players = 2; + uint64 game_id = 3; +} + +/* id == 149 cp邀请 */ +message CpInvite { + User user = 1; + string msg = 2; +} + +/* id == 150 cp升级 */ +message CpUpgrade { + User user1 = 1; + User user2 = 2; + uint32 cp_level = 3; + string group_id = 4; +} + +/* id == 151 svip升级 */ +message SvipUpgrade { + User user = 1; + uint32 svip_level = 2; + string group_id = 3; } \ No newline at end of file -- 2.22.0