config.go
1.44 KB
package ht_draw
// 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"` // 卡牌抽取序列
}