mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-27 01:51:56 +08:00
Fix: admin summary cannot be cached in redis (#1329)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/gob"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
model "github.com/cloudreve/Cloudreve/v3/models"
|
model "github.com/cloudreve/Cloudreve/v3/models"
|
||||||
@@ -10,6 +11,11 @@ import (
|
|||||||
"github.com/cloudreve/Cloudreve/v3/pkg/serializer"
|
"github.com/cloudreve/Cloudreve/v3/pkg/serializer"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
gob.Register(map[string]interface{}{})
|
||||||
|
gob.Register(map[string]string{})
|
||||||
|
}
|
||||||
|
|
||||||
// NoParamService 无需参数的服务
|
// NoParamService 无需参数的服务
|
||||||
type NoParamService struct {
|
type NoParamService struct {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user