refactor(socket): 重构 socket 模块
- 移除 common/data/socket 目录下的大部分文件 - 新增 service 目录,将 Player 和 Conn 结构体移至该目录 - 更新 LogicClient 中的方法签名,使用 service 包的类型 - 重构 Controller 中的方法,适应新的 service 包结构
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package task
|
||||
|
||||
import (
|
||||
"blazing/common/socket/handler"
|
||||
"blazing/logic/service"
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
type GetTaskBufInboundInfo struct {
|
||||
Head handler.TomeeHeader `cmd:"2203|2234" struc:"[0]pad"`
|
||||
Head service.TomeeHeader `cmd:"2203|2234" struc:"[0]pad"`
|
||||
|
||||
TaskId uint32 `json:"taskId" description:"任务ID"` // 任务ID,对应Java的@UInt long
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user