refactor(socket): 重构 socket 模块

- 移除 common/data/socket 目录下的大部分文件
- 新增 service 目录,将 Player 和 Conn 结构体移至该目录
- 更新 LogicClient 中的方法签名,使用 service 包的类型
- 重构 Controller 中的方法,适应新的 service 包结构
This commit is contained in:
2025-09-04 02:00:57 +08:00
parent afdf015d62
commit 621a9d3858
50 changed files with 886 additions and 849 deletions

View File

@@ -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
}