Files
neonsr/game_server/handlers/GetFriendListInfoCsReq.py
Naruse ec8972d5d6 init
2025-04-15 19:36:05 +08:00

29 lines
889 B
Python

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"
)
)
]
)