package user import "blazing/logic/service/player" type ChatInboundInfo struct { Head player.TomeeHeader `cmd:"2102" struc:"[0]pad"` Reserve uint32 `json:"reserve" fieldDescription:"填充 默认值为0" uint:"true"` // @UInt long reserve,无符号长整数 MessageLen uint32 `struc:"sizeof=Message"` Message string `json:"message" fieldDescription:"消息内容, 结束符为utf-8的数字0"` // 消息内容,包含utf-8空字符('\x00')作为结束符 } type ChatOutboundInfo struct { SenderId uint32 `description:"发送人的米米号" codec:"uint"` // @UInt long -> uint64 SenderNickname string `struc:"[16]byte" default:"seer" json:"nick"` // 固定16字节的字符串,对应@ArraySerialize注解 ToId uint32 `description:"可能是私聊用的 公屏发送时为0" codec:"uint"` // @UInt long -> uint64 MessageLen uint32 `struc:"sizeof=Message"` Message string `description:"这里的内容没有结束符" codec:"string"` // String -> string }