init
This commit is contained in:
29
game_server/handlers/GetFriendListInfoCsReq.py
Normal file
29
game_server/handlers/GetFriendListInfoCsReq.py
Normal 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"
|
||||
)
|
||||
)
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user