2025-08-20 22:34:45 +08:00
|
|
|
package controller
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/common/socket/errorcode"
|
|
|
|
|
"blazing/logic/service/friend"
|
2025-09-14 01:35:16 +08:00
|
|
|
"blazing/logic/service/player"
|
2025-08-20 22:34:45 +08:00
|
|
|
)
|
|
|
|
|
|
2025-12-24 19:03:11 +08:00
|
|
|
// GetOnlineFriends 获取在线好友列表
|
|
|
|
|
// data: 包含用户ID列表的输入信息
|
|
|
|
|
// c: 当前玩家对象
|
|
|
|
|
// 返回: 好友在线信息和错误码
|
|
|
|
|
func (h Controller) GetOnlineFriends(data *friend.SeeOnlineInboundInfo, c *player.Player) (result *friend.SeeOnlineOutboundInfo, err errorcode.ErrorCode) {
|
2025-08-20 22:34:45 +08:00
|
|
|
result = &friend.SeeOnlineOutboundInfo{}
|
|
|
|
|
result.Friends = make([]friend.OnlineInfo, 0)
|
|
|
|
|
return
|
|
|
|
|
}
|