29 lines
528 B
Go
Raw Normal View History

2025-01-20 01:55:44 +08:00
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
2025-01-20 10:10:08 +08:00
Auth struct { // JWT 认证需要的密钥和过期时间配置
AccessSecret string
AccessExpire int64
}
2025-01-21 16:48:55 +08:00
DWCache struct {
Host string // 缓存服务器地址
2025-01-24 18:36:46 +08:00
Password string // 缓存服务器密码
2025-01-21 16:48:55 +08:00
IdleTimeout int
} // 抖音微信缓存配置
2025-01-23 18:39:48 +08:00
EcpmLogPath string // 日志文件路径
2025-01-20 01:55:44 +08:00
}