refactor(blazing): 重构项目并优化数据结构

- 更新 LoginUserInfo 结构体,将 uint64 类型改为 uint32
- 调整 ServerInfo 结构体,将 IP 字段从 []byte 改为 string
- 移除未使用的 ArraySerialize 结构体
- 更新 ByteArray 类,修改相关方法名
- 删除未使用的 serialize 相关代码
- 优化模块导入,移除冗余依赖
This commit is contained in:
2025-06-22 12:05:07 +08:00
parent c00a87800a
commit 720294ad27
24 changed files with 631 additions and 395 deletions

View File

@@ -1,20 +1,11 @@
package main
import (
"blazing/common/core/info"
"blazing/common/serialize"
"blazing/common/socket"
"fmt"
)
func main() {
tt := info.NewServerInfo()
tt.OnlineID = 99
tt.IP = []byte("127.0.0.1")
tt1 := serialize.NewDefaultPacketHandler[info.ServerInfo]()
tg, _ := tt1.Serialize(*tt)
fmt.Println(tg)
//fmt.Println(tt)
socket.NewServer(socket.WithPort("9999")).Start()
}