style: 清理代码注释和格式
This commit is contained in:
@@ -20,55 +20,42 @@ type SimUserInfoOutboundInfo struct {
|
||||
Color uint32 `codec:"true"`
|
||||
|
||||
// Texture 纹理 0
|
||||
// 对应 Java 注解: @FieldDescription("纹理 0") @UInt
|
||||
Texture uint32 `codec:"true"`
|
||||
|
||||
// Vip 默认值 1 位置
|
||||
// 对应 Java 注解: @FieldDescription("默认值 1 位置") @UInt
|
||||
Vip uint32 `codec:"true"`
|
||||
|
||||
// Status 默认值0 未知
|
||||
// 对应 Java 注解: @FieldDescription("默认值0 未知") @UInt
|
||||
Status uint32 `codec:"true"`
|
||||
|
||||
// MapType 地图类型 进入地图包传入的字段
|
||||
// 对应 Java 注解: @FieldDescription("地图类型 进入地图包传入的字段") @UInt
|
||||
MapType uint32 `codec:"true"`
|
||||
|
||||
// MapID 地图id
|
||||
// 对应 Java 注解: @FieldDescription("地图id") @UInt
|
||||
MapID uint32 `codec:"true"`
|
||||
|
||||
// IsCanBeTeacher 能不能做教官
|
||||
// 对应 Java 注解: @FieldDescription("能不能做教官") @UInt
|
||||
IsCanBeTeacher uint32 `codec:"true"`
|
||||
|
||||
// TeacherID 教官id
|
||||
// 对应 Java 注解: @FieldDescription("教官id") @UInt
|
||||
TeacherID uint32 `codec:"true"`
|
||||
|
||||
// StudentID 学生id
|
||||
// 对应 Java 注解: @FieldDescription("学生id") @UInt
|
||||
StudentID uint32 `codec:"true"`
|
||||
|
||||
// GraduationCount 教官成绩
|
||||
// 对应 Java 注解: @FieldDescription("教官成绩") @UInt
|
||||
GraduationCount uint32 `codec:"true"`
|
||||
|
||||
// VipLevel vip等级 8
|
||||
// 对应 Java 注解: @FieldDescription("vip等级 8") @UInt
|
||||
VipLevel uint32 `codec:"true"`
|
||||
|
||||
// TeamId 战队id
|
||||
// 对应 Java 注解: @FieldDescription("战队id") @UInt
|
||||
TeamId uint32 `codec:"true"`
|
||||
|
||||
// IsShow 有没有跟随的精灵
|
||||
// 对应 Java 注解: @FieldDescription("有没有跟随的精灵") @UInt
|
||||
IsShow uint32 `codec:"true"`
|
||||
ClothesCount uint32 `struc:"sizeof=Clothes" json:"clothes_count"` // 穿戴装备数量
|
||||
// Clothes 穿戴装备
|
||||
// 对应 Java 注解: @FieldDescription("穿戴装备") @Builder.Default
|
||||
Clothes []model.PeopleItemInfo `codec:"true"`
|
||||
}
|
||||
type MoreUserInfoInboundInfo struct {
|
||||
@@ -77,7 +64,6 @@ type MoreUserInfoInboundInfo struct {
|
||||
}
|
||||
type MoreUserInfoOutboundInfo struct {
|
||||
// UserID 米米号
|
||||
// 对应 Java 注解: @FieldDescription("米米号") @UInt
|
||||
UserID uint32 `codec:"true"`
|
||||
|
||||
Nick string `struc:"[16]byte" default:"seer" json:"nick"` // 16字节昵称
|
||||
@@ -85,35 +71,27 @@ type MoreUserInfoOutboundInfo struct {
|
||||
RegisterTime uint32 `struc:"uint32" json:"register_time"` // 注册时间(秒时间戳)
|
||||
|
||||
// PetAllNum 所有精灵数量
|
||||
// 对应 Java 注解: @FieldDescription("所有精灵数量") @UInt
|
||||
AllPetNumber uint32 `codec:"true"`
|
||||
|
||||
// PetMaxLev 精灵最大等级
|
||||
// 对应 Java 注解: @FieldDescription("精灵最大等级") @UInt
|
||||
PetMaxLevel uint32 `codec:"true"`
|
||||
|
||||
// BossAchievement spt boos成就 20字节 以任务状态完成 3为击败该boss, 目前spt只有12个, 剩下的长度以3填充
|
||||
// 对应 Java 注解: @FieldDescription(...) @ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 20) @Builder.Default
|
||||
BossAchievement [20]byte `codec:"true"`
|
||||
|
||||
// GraduationCount 教官成绩
|
||||
// 对应 Java 注解: @FieldDescription("教官成绩") @UInt
|
||||
GraduationCount uint32 `codec:"true"`
|
||||
|
||||
// MonKingWin 精灵王胜场
|
||||
// 对应 Java 注解: @FieldDescription("精灵王胜场") @UInt
|
||||
MonKingWin uint32 `codec:"true"`
|
||||
|
||||
// MessWin 大乱斗胜场
|
||||
// 对应 Java 注解: @FieldDescription("大乱斗胜场") @UInt
|
||||
MessWin uint32 `codec:"true"`
|
||||
|
||||
// MaxStage 勇者之塔层数
|
||||
// 对应 Java 注解: @FieldDescription("勇者之塔层数") @UInt
|
||||
MaxStage uint32 `codec:"true"`
|
||||
|
||||
// MaxArenaWins 星际擂台胜场
|
||||
// 对应 Java 注解: @FieldDescription("星际擂台胜场") @UInt
|
||||
MaxArenaWins uint32 `codec:"true"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user