refactor(socket): 重构 socket 模块
- 移除 common/data/socket 目录下的大部分文件 - 新增 service 目录,将 Player 和 Conn 结构体移至该目录 - 更新 LogicClient 中的方法签名,使用 service 包的类型 - 重构 Controller 中的方法,适应新的 service 包结构
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package systemtime
|
||||
|
||||
import (
|
||||
"blazing/common/socket/handler"
|
||||
"blazing/logic/service"
|
||||
"time"
|
||||
)
|
||||
|
||||
// LoginSidInfo 登录携带的凭证结构体
|
||||
type InInfo struct { //这里直接使用组合来实现将传入的原始头部数据和结构体参数序列化
|
||||
Head handler.TomeeHeader `cmd:"1002" struc:"[0]pad"` //玩家登录
|
||||
Head service.TomeeHeader `cmd:"1002" struc:"[0]pad"` //玩家登录
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user