29 lines
889 B
Python
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"
|
|
)
|
|
)
|
|
]
|
|
) |