25 lines
713 B
Go
25 lines
713 B
Go
package items
|
|
|
|
import (
|
|
"errors"
|
|
"go_dreamfactory/lego/core"
|
|
)
|
|
|
|
const ( //Redis
|
|
Redis_PackCache string = "pack:%s" //背包缓存数据存放key
|
|
DB_PackTable core.SqlTable = "pack" //背包数据库定义表
|
|
)
|
|
|
|
const (
|
|
GridCapMaxNum = 99 //单个格子的最大容量
|
|
GridMaxNUm = 200 //背包格子数量上限
|
|
Pack_Expiration = -1 //背包缓存数据过期时间
|
|
)
|
|
|
|
var (
|
|
ItemNotEnoughError = errors.New("item not enough!") //物品不足
|
|
NoFoundGirdError = errors.New("no found gvrid!") //未找到格子
|
|
PackGridNumUpper = errors.New("grid amount upper!") //背包格子达到上限
|
|
GirdAmountUpper = errors.New("grid amount upper!") //格子容量达到上限
|
|
)
|