```
refactor(common): 统一使用 common.TomeeHeader 替代 player.TomeeHeader 将多处
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package nono
|
||||
|
||||
import "blazing/logic/service/player"
|
||||
import "blazing/logic/service/common"
|
||||
|
||||
// NonoOutboundInfo 用于表示Nono相关的出站信息
|
||||
type NonoOutboundInfo struct {
|
||||
@@ -54,13 +54,13 @@ type NonoOutboundInfo struct {
|
||||
}
|
||||
|
||||
type NonoInboundInfo struct {
|
||||
Head player.TomeeHeader `cmd:"9003" struc:"[0]pad"`
|
||||
Head common.TomeeHeader `cmd:"9003" struc:"[0]pad"`
|
||||
|
||||
// 米米号
|
||||
UserID uint32
|
||||
}
|
||||
type NonoFollowOrHomeInInfo struct {
|
||||
Head player.TomeeHeader `cmd:"9019" struc:"[0]pad"`
|
||||
Head common.TomeeHeader `cmd:"9019" struc:"[0]pad"`
|
||||
|
||||
// Flag 1为跟随 0为收回 且如果为收回收回 那么后续结构不需要发送
|
||||
// 对应Java的@UInt long类型,在Go中使用uint64
|
||||
@@ -86,7 +86,7 @@ type NonoFollowOutInfo struct {
|
||||
Power uint32 `fieldDescription:"能量值 前端显示除以1000后的值" uint:"true"`
|
||||
}
|
||||
type SwitchFlyingInboundInfo struct {
|
||||
Head player.TomeeHeader `cmd:"2112" struc:"[0]pad"`
|
||||
Head common.TomeeHeader `cmd:"2112" struc:"[0]pad"`
|
||||
Type uint32 `description:"开关, 0为取消飞行模式, 大于0为开启飞行模式" codec:"auto" uint:"true"` // 对应@FieldDescription、@UInt、@AutoCodec
|
||||
}
|
||||
type SwitchFlyingOutboundInfo struct {
|
||||
@@ -94,7 +94,7 @@ type SwitchFlyingOutboundInfo struct {
|
||||
Type uint32 `description:"开关, 0为取消飞行模式, 大于0为开启飞行模式" codec:"auto" uint:"true"` // 对应@FieldDescription、@UInt、@AutoCodec
|
||||
}
|
||||
type PetCureInboundInfo struct {
|
||||
Head player.TomeeHeader `cmd:"2306" struc:"[0]pad"`
|
||||
Head common.TomeeHeader `cmd:"2306" struc:"[0]pad"`
|
||||
}
|
||||
type PetCureOutboundEmpty struct {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user