Files
bl/common/core/info/LoginSidInfo.go
昔念 cc9f1fb45a refactor(info): 删除多余的信息结构体文件
- 移除了多个未使用的 Java 和 Go 信息结构体文件
- 优化了项目结构,减少了冗余代码
- 这些文件可能是早期开发阶段的遗留代码,现在已不再需要
2025-06-23 10:15:22 +08:00

22 lines
621 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package info
func (h InfoCodec) In_1001(data []byte) any { //EnumCommandID//todo c2s数据
//fmt.Printf(" 处理命令: %s, 数据长度: %d\n", len(data))
return NewLoginSidInfo()
}
func (h InfoCodec) Out_1001(data []byte) { //EnumCommandID//TODO s2c数据
//fmt.Printf(" 处理命令: %s, 数据长度: %d\n", len(data))
}
// LoginSidInfo 登录携带的凭证结构体
type LoginSidInfo struct {
Sid []byte `struc:"[16]byte"` // 登录会话ID固定长度16字节
}
// NewLoginSidInfo 创建一个新的登录凭证实例
func NewLoginSidInfo() LoginSidInfo {
return LoginSidInfo{}
}