config.go
3.88 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package ht_cardholder
// CardActivityUpdateConfig 卡牌活动更新配置
type CardActivityUpdateConfig struct {
Id int64 `json:"id"` // ID
UpdateTime int64 `json:"update_time"` // 修改时间戳
}
// CardActivityConfig 卡牌活动配置 分析后数据
type CardActivityConfig struct {
Raw CardActivityConfigRaw
Id int64 // ID
Awards map[string]string // 奖励配置
AlbumConfig map[string]AlbumConfig // 卡组配置
CardConfig map[int]CardConfig // 卡牌配置
CardholderConfig map[string]CardholderConfig // 卡包开卡规则
NormalCardStarSequence []NormalCardStarSequence // 卡片星级配置
CardSequenceConfig []CardSequenceConfig // 卡片星级对应卡牌配置
}
// CardActivityConfigRaw 卡牌活动配置 原始数据
type CardActivityConfigRaw 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"` // 修改时间戳
}
// AlbumConfig 卡组表
type AlbumConfig struct {
SetId string `json:"set_id"` // 卡组id
Rewards string `json:"rewards"` // 集齐奖励
StartTime int64 `json:"start_time"` // 开始时间
EndTime int64 `json:"end_time"` // 结束时间
}
// CardConfig 卡牌表
type CardConfig struct {
Id int `json:"id"` // ID
SetId string `json:"album_setid"` // 卡组id
IsGold int `json:"is_gold"` // 是否是金卡
Star int `json:"star"` // 星级
}
// CardholderConfig 卡包开卡规则表
type CardholderConfig struct {
Id string `json:"id"` // ID
GuaranteedStar string `json:"guaranteed_star_card_id"` // 保底卡星级序列ID
IsGoldCardholder int `json:"isgoldcardholder"` // 是否是金卡包
IsNew int `json:"isnew"` // 是否是新卡包
NormalCardNumber int `json:"normal_card_number"` // 非保底卡数量
MinimumGuaranteeCardId string `json:"minimum_guarantee_card_id"` // 非保底卡牌序列ID
}
// NormalCardStarSequence 非保底卡星级ID
type NormalCardStarSequence struct {
Id string `json:"id"` // ID
SequenceId string `json:"user_sequence_id"` // 用户序列组ID
Cohort string `json:"cohort"` // 用户分组
NormalCardSequenceId string `json:"normal_card_sequence_id"` // 非保底星级序列
}
// CardSequenceConfig 星级ID对应的卡片
type CardSequenceConfig struct {
Id string `json:"id"` // SequenceId 用户序列组ID
SequenceId string `json:"user_sequence_id"` // 用户序列组ID
Cohort string `json:"cohort"` // 用户分组
CardIdList string `json:"card_id_list"` // 卡牌抽取序列
}