2025-01-21 16:48:55 +08:00

26 lines
439 B
Go

package config
import (
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/rest"
)
type Config struct {
rest.RestConf
DB struct {
DataSource string
}
Cache cache.CacheConf
Auth struct { // JWT 认证需要的密钥和过期时间配置
AccessSecret string
AccessExpire int64
}
DWCache struct {
Host string // 缓存服务器地址
IdleTimeout int
} // 抖音微信缓存配置
}