2025-10-23 01:02:19 +08:00
|
|
|
|
package user
|
|
|
|
|
|
|
2025-11-19 16:11:02 +08:00
|
|
|
|
import "blazing/logic/service/common"
|
2025-10-23 01:02:19 +08:00
|
|
|
|
|
|
|
|
|
|
type ChatInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2102" struc:"skip"`
|
2025-10-23 01:02:19 +08:00
|
|
|
|
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
|
|
|
|
|
|
}
|
2025-10-24 00:31:38 +08:00
|
|
|
|
type ChangeColorInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2063" struc:"skip"`
|
2025-10-24 00:31:38 +08:00
|
|
|
|
|
|
|
|
|
|
Color uint32 `codec:"color"` // 更改的颜色 rgb (对应Java的@UInt long)
|
|
|
|
|
|
}
|
|
|
|
|
|
type ChangeColorOutboundInfo struct {
|
|
|
|
|
|
UserId uint32 `codec:"userId"` // 更改人的用户id (对应Java的@UInt long)
|
|
|
|
|
|
Color uint32 `codec:"color"` // 前端发来的更改的颜色rgb值 (对应Java的@UInt long)
|
|
|
|
|
|
Texture uint32 `codec:"texture"` // 大概是当前的涂装 by 7 (对应Java的@UInt long)
|
|
|
|
|
|
Coins uint32 `codec:"coins"` // 扣除200豆子后返回的剩余豆子 (对应Java的@UInt long)
|
|
|
|
|
|
}
|
|
|
|
|
|
type ChangeDoodleInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2062" struc:"skip"`
|
2025-10-24 00:31:38 +08:00
|
|
|
|
Id uint32 `codec:"id"` // 涂鸦ID (对应Java的@UInt long)
|
|
|
|
|
|
Color uint32 `codec:"color"` // 前端发来的更改的颜色rgb值 (对应Java的@UInt long)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ChangeDoodleOutboundInfo struct {
|
|
|
|
|
|
UserId uint32 `codec:"userId"` // 更改人的userid (对应Java的@UInt long)
|
|
|
|
|
|
Color uint32 `codec:"color"` // 使用前端发的id 从itemInfo中获得 (对应Java的@UInt long)
|
|
|
|
|
|
Texture uint32 `codec:"texture"` // 使用前端发的id 从itemInfo中获得 (对应Java的@UInt long)
|
|
|
|
|
|
Coins uint32 `codec:"coins"` // 扣除对应豆子后返回的剩余豆子 (对应Java的@UInt long)
|
|
|
|
|
|
}
|
|
|
|
|
|
type ChangeNONOColorInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"9012" struc:"skip"`
|
2025-10-24 00:31:38 +08:00
|
|
|
|
|
|
|
|
|
|
Color uint32 `codec:"color"` // 更改的颜色 rgb (对应Java的@UInt long)
|
|
|
|
|
|
}
|
|
|
|
|
|
type ChangeNONOColorOutboundInfo struct {
|
|
|
|
|
|
Sataus uint32 `codec:"userId"` // 更改人的用户id (对应Java的@UInt long)
|
|
|
|
|
|
Color uint32 `codec:"color"` // 前端发来的更改的颜色rgb值 (对应Java的@UInt long)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2025-11-20 05:57:29 +08:00
|
|
|
|
|
|
|
|
|
|
// C2SDanceAction 前端发送给后端的舞蹈动作请求结构体
|
|
|
|
|
|
// 对应 C# 的 C2S_DANCE_ACTION
|
|
|
|
|
|
type C2SDanceAction struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2103" struc:"skip"`
|
2025-11-20 05:57:29 +08:00
|
|
|
|
|
|
|
|
|
|
// Reserve 固定参数(值为 10001)
|
|
|
|
|
|
Reserve uint32 `struc:"uint32,big"`
|
|
|
|
|
|
// Type 动作类型(3 = 蹲下)
|
|
|
|
|
|
Type uint32 `struc:"uint32,big"`
|
|
|
|
|
|
}
|
|
|
|
|
|
type S2CDanceAction struct {
|
|
|
|
|
|
// UserID 玩家ID
|
|
|
|
|
|
UserID uint32 `struc:"uint32,big"`
|
|
|
|
|
|
// Type 动作类型(透传前端的 type,3 = 蹲下)
|
|
|
|
|
|
Type uint32 `struc:"uint32,big"`
|
|
|
|
|
|
}
|
|
|
|
|
|
type C2SPEOPLE_TRANSFROM struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2111" struc:"skip"`
|
2025-11-20 05:57:29 +08:00
|
|
|
|
|
2025-11-28 00:16:51 +08:00
|
|
|
|
// Reserve uint32// 固定参数(值为 10001)
|
2025-11-20 05:57:29 +08:00
|
|
|
|
SuitID uint32 `struc:"uint32,big"`
|
|
|
|
|
|
}
|
|
|
|
|
|
type S2CPEOPLE_TRANSFROM struct {
|
|
|
|
|
|
// UserID 玩家ID
|
|
|
|
|
|
UserID uint32 `struc:"uint32,big"`
|
|
|
|
|
|
// Type 动作类型(透传前端的 type,3 = 蹲下)
|
|
|
|
|
|
SuitID uint32 `struc:"uint32,big"`
|
|
|
|
|
|
}
|