app-cloudep-member-server/internal/config/config.go

34 lines
563 B
Go
Raw Normal View History

2024-08-21 00:21:29 +00:00
package config
2024-08-21 08:12:34 +00:00
import (
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/core/stores/redis"
"github.com/zeromicro/go-zero/zrpc"
)
2024-08-21 00:21:29 +00:00
type Config struct {
zrpc.RpcServerConf
2024-08-21 08:12:34 +00:00
// 加上 DB 結構體
DB struct {
DsnString string
}
// 快取
Cache cache.CacheConf
// 密碼加密層數
Bcrypt struct {
Cost int
}
// Redis Cluster
RedisCluster redis.RedisConf
Mongo struct {
Schema string
User string
Password string
Host string
Port string
Database string
Collection string
}
2024-08-21 00:21:29 +00:00
}