ark-member/internal/config/config.go

21 lines
350 B
Go
Raw Normal View History

2024-07-21 15:57:56 +00:00
package config
import (
"github.com/zeromicro/go-zero/core/stores/cache"
2024-07-25 14:01:22 +00:00
"github.com/zeromicro/go-zero/core/stores/redis"
2024-07-21 15:57:56 +00:00
"github.com/zeromicro/go-zero/zrpc"
)
type Config struct {
zrpc.RpcServerConf
// 加上DB結構體
DB struct {
DsnString string
}
2024-07-25 14:01:22 +00:00
Cache cache.CacheConf
2024-07-21 15:57:56 +00:00
Bcrypt struct {
Cost int
}
2024-07-25 14:01:22 +00:00
RedisCluster redis.RedisConf
2024-07-21 15:57:56 +00:00
}