- 移除 common/data/socket 目录下的大部分文件 - 新增 service 目录,将 Player 和 Conn 结构体移至该目录 - 更新 LogicClient 中的方法签名,使用 service 包的类型 - 重构 Controller 中的方法,适应新的 service 包结构
14 lines
375 B
Go
14 lines
375 B
Go
package controller
|
|
|
|
import (
|
|
"blazing/common/socket/errorcode"
|
|
"blazing/logic/service"
|
|
"blazing/logic/service/friend"
|
|
)
|
|
|
|
func (h Controller) OnSeeOnline(data *friend.SeeOnlineInboundInfo, c *service.Player) (result *friend.SeeOnlineOutboundInfo, err errorcode.ErrorCode) {
|
|
result = &friend.SeeOnlineOutboundInfo{}
|
|
result.Friends = make([]friend.OnlineInfo, 0)
|
|
return
|
|
}
|