```
refactor(controller): 重构控制器函数命名和代码注释 - 重命名 EGG 函数为 EggGamePlay,更新宠物生成逻辑 - 重命名 Leiyi 函数为 GetLeiyiTrainStatus - 重命名 Cacthpet 函数为 CatchPet,添加详细函数注释 - 为 ArenaSetOwner、ArenaFightOwner、ArenaGetInfo、ArenaUpfight、ArenaOwnerAcce 等擂台相关函数添加注释前缀 - 重命名 PETKing 函数为 PetKing - 重命名 FRESH_CHOICE_FIGHT_LEVEL 函数为 FreshChoiceFightLevel,添加详细参数说明 - 重命名 BuyMItem 函数为 BuyMultipleItems - 重命名 ITEM_S
This commit is contained in:
@@ -6,7 +6,11 @@ import (
|
||||
"blazing/logic/service/player"
|
||||
)
|
||||
|
||||
func (h Controller) OnSeeOnline(data *friend.SeeOnlineInboundInfo, c *player.Player) (result *friend.SeeOnlineOutboundInfo, err errorcode.ErrorCode) {
|
||||
// GetOnlineFriends 获取在线好友列表
|
||||
// data: 包含用户ID列表的输入信息
|
||||
// c: 当前玩家对象
|
||||
// 返回: 好友在线信息和错误码
|
||||
func (h Controller) GetOnlineFriends(data *friend.SeeOnlineInboundInfo, c *player.Player) (result *friend.SeeOnlineOutboundInfo, err errorcode.ErrorCode) {
|
||||
result = &friend.SeeOnlineOutboundInfo{}
|
||||
result.Friends = make([]friend.OnlineInfo, 0)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user