Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
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
}