You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
356 B

package model
//ConfValues 配置
type ConfValues map[int64]string
const (
// Empty 空
Empty = ""
// Set 存在
Set = "1"
// GoldTarget 金瓜子
GoldTarget = 1010
// SilverTarget 银瓜子
SilverTarget = 1011
)
// IsSet 是否存在
func (vs ConfValues) IsSet(key int64) bool {
v, ok := vs[key]
if !ok {
return false
}
return v == Set
}