mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-07 00:52:57 +08:00
优化
This commit is contained in:
@@ -35,6 +35,8 @@ func (c CacheUtil) GetCache(key interface{}, obj interface{}) error {
|
||||
switch k := key.(type) {
|
||||
case int:
|
||||
cacheKey = strconv.Itoa(k)
|
||||
case int64:
|
||||
cacheKey = strconv.FormatInt(k, 10)
|
||||
case string:
|
||||
cacheKey = k
|
||||
default:
|
||||
|
Reference in New Issue
Block a user