2025-07-26 02:06:08 +00:00
|
|
|
|
package model
|
2025-07-26 00:48:57 +08:00
|
|
|
|
|
|
|
|
|
|
// TeamInfo 战队信息结构
|
|
|
|
|
|
type TeamInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
//Head common.TomeeHeader `cmd:"1001" struc:"skip"` // 命令头
|
2025-08-10 14:19:03 +08:00
|
|
|
|
ID uint32 `struc:"uint32" default:"0"` // 默认值0
|
|
|
|
|
|
Priv uint32 `struc:"uint32" default:"1"` // 默认值1
|
|
|
|
|
|
SuperCore uint32 `struc:"uint32" default:"1"` // 默认值1
|
|
|
|
|
|
IsShow uint32 `struc:"uint32" default:"1"` // 默认值1
|
|
|
|
|
|
AllContribution uint32 `struc:"uint32" default:"1"` // 默认值1
|
|
|
|
|
|
CanExContribution uint32 `struc:"uint32" default:"1"` // 默认值1
|
2025-07-26 00:48:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// InitDefaults 初始化默认值
|
|
|
|
|
|
func (t *TeamInfo) InitDefaults() {
|
|
|
|
|
|
t.ID = 0
|
|
|
|
|
|
t.Priv = 1
|
|
|
|
|
|
t.SuperCore = 1
|
|
|
|
|
|
t.IsShow = 1
|
|
|
|
|
|
t.AllContribution = 1
|
|
|
|
|
|
t.CanExContribution = 1
|
|
|
|
|
|
}
|
2025-08-15 08:17:43 +00:00
|
|
|
|
|
|
|
|
|
|
// TeamPKInfo 战队PK相关信息结构
|
|
|
|
|
|
type TeamPKInfo struct {
|
2025-08-26 23:22:10 +00:00
|
|
|
|
GroupID uint32 `struc:"uint32" default:"1"` // 分组ID,默认值1(@UInt long)
|
|
|
|
|
|
HomeTeamID uint32 `struc:"uint32" default:"1"` // 主队ID,默认值1(@UInt long)
|
2025-08-15 08:17:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// InitDefaults 初始化默认值(确保字段默认值正确赋值)
|
|
|
|
|
|
func (t *TeamPKInfo) InitDefaults() {
|
|
|
|
|
|
t.GroupID = 1
|
|
|
|
|
|
t.HomeTeamID = 1
|
|
|
|
|
|
}
|