config.go
3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package ht_cardholder
// CardActivityConfigs 卡牌活动配置
type CardActivityConfigs struct {
CardActivityConfigs map[int64]CardActivityConfig // 活动配置列表
}
// CardActivityUpdateConfig 卡牌活动更新配置
type CardActivityUpdateConfig struct {
Id int64 `json:"id"` // ID
UpdateTime int64 `json:"update_time"` // 修改时间戳
}
// CardActivityConfig 卡牌活动配置
type CardActivityConfig struct {
Id int64 `json:"id"` // ID
OpenLevel int `json:"open_level"` // 开启等级
PreviewTime int64 `json:"preview_time"` // 预告时间
StartTime int64 `json:"start_time"` // 开始时间
EndTime int64 `json:"end_time"` // 结束时间
Round int `json:"round"` // 轮数
Awards string `json:"awards"` // 奖励配置
AlbumConfig string `json:"album_config"` // 卡组配置
CardConfig string `json:"card_config"` // 卡牌配置
CardHolderConfig string `json:"card_holder_config"` // 卡包开卡规则
NormalCardStarSequence string `json:"normal_card_star_sequence"` // 卡片星级配置
CardSequenceConfig string `json:"card_sequence_config"` // 卡片星级对应卡牌配置
Ver string `json:"ver"` // 版本号
UpdateTime int64 `json:"update_time"` // 修改时间戳
}
// CardConfig 卡牌表
type CardConfig struct {
Id int `json:"id"` // ID
GroupId int `json:"groupid"` // 卡组id
IsGoldCard int `json:"isgoldcard"` // 是否是金卡
Star int `json:"star"` // 星级
}
// CardholderConfig 卡包开卡规则表
type CardholderConfig struct {
Id int `json:"id"` // ID
GuaranteedStar int `json:"guaranteedstar"` // 保底卡星级序列ID
IsGoldCardholder int `json:"isgoldcardholder"` // 是否是金卡包
IsNew int `json:"isnew"` // 是否是新卡包
NormalCardNumber int `json:"normalcardnumber"` // 非保底卡数量
MinimumGuaranteeCardId int `json:"minimumguaranteecardid"` // 非保底卡牌序列ID
}
// NormalCardStarSequence 非保底卡星级ID
type NormalCardStarSequence struct {
Id int `json:"id"` // ID
Cohort int `json:"cohort"` // 用户分组
StarSequenceId int `json:"starsequenceid"` // 用户序列组ID
NormalCardSequenceId []int `json:"normalcardsequenceid"` // 非保底星级序列
}
// CardSequenceConfig 星级ID对应的卡片
type CardSequenceConfig struct {
Id int `json:"id"` // SequenceId 用户序列组ID
Cohort int `json:"cohort"` // 用户分组
CardIdList []int `json:"cardidlist"` // 卡牌抽取序列
}