This commit is contained in:
Naruse
2025-04-15 19:36:05 +08:00
parent dd51fb491d
commit ec8972d5d6
121 changed files with 30598 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import betterproto
from game_server.net.session import PlayerSession
from rail_proto.lib import (
GetFriendListInfoCsReq,
GetFriendListInfoScRsp,
FriendSimpleInfo,
PlayerSimpleInfo,
PlatformType,
FriendOnlineStatus
)
async def handle(session: PlayerSession, msg: GetFriendListInfoCsReq) -> betterproto.Message:
return GetFriendListInfoScRsp(
retcode=0,
friend_list=[
FriendSimpleInfo(
player_info=PlayerSimpleInfo(
uid=69,
level=1,
chat_bubble_id=220004,
head_icon=201310,
platform=PlatformType.PC.value,
online_status=FriendOnlineStatus.FRIEND_ONLINE_STATUS_ONLINE.value,
is_banned=False,
nickname="FireFly"
)
)
]
)