|
@@ -25,10 +25,10 @@ type Config struct {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
type CacheConfig struct {
|
|
type CacheConfig struct {
|
|
- Key string // 缓存key
|
|
|
|
- Timeout int // 缓存时间
|
|
|
|
- CacheUpdateKey string //
|
|
|
|
- CacheUpdateTimeout int //
|
|
|
|
|
|
+ Key string `json:"Key,optional"` // 缓存key
|
|
|
|
+ Timeout int `json:"Timeout,optional"` // 缓存时间
|
|
|
|
+ CacheUpdateKey string `json:"CacheUpdateKey,optional"` //
|
|
|
|
+ CacheUpdateTimeout int `json:"CacheUpdateTimeout,optional"` //
|
|
|
|
|
|
}
|
|
}
|
|
type Db struct {
|
|
type Db struct {
|