package config import ( "github.com/zeromicro/go-zero/core/stores/cache" "github.com/zeromicro/go-zero/rest" "github.com/zeromicro/go-zero/zrpc" ) type CacheRedisConf struct { Nodes cache.CacheConf KeyPrefix string `json:",optional"` } type Config struct { rest.RestConf RpcServerConf zrpc.RpcServerConf MySQL struct { DataSource string } CacheRedis CacheRedisConf Auth struct { AccessSecret string AccessExpire int64 RefreshSecret string RefreshExpire int64 } }