tianyuan-api-server/apps/api/internal/config/config.go

34 lines
751 B
Go
Raw Permalink Normal View History

2024-10-02 00:57:17 +08:00
package config
import (
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/rest"
"github.com/zeromicro/go-zero/zrpc"
)
type Config struct {
rest.RestConf
DataSource string // 数据库连接的 DSN 字符串
CacheRedis cache.CacheConf // 缓存配置,使用 go-zero 自带的缓存配置结构体
SentinelRpc zrpc.RpcClientConf
2024-10-12 20:41:55 +08:00
UserRpc zrpc.RpcClientConf
2024-10-02 00:57:17 +08:00
KqPusherConf KqPusherConf
WestConfig WestConfig
2025-04-02 18:30:48 +08:00
YushanConfig YushanConfig
2024-10-02 00:57:17 +08:00
}
type KqPusherConf struct {
Brokers []string
Topic string
}
type WestConfig struct {
Url string
Key string
SecretId string
SecretSecondId string
2024-10-02 00:57:17 +08:00
}
2025-04-02 18:30:48 +08:00
type YushanConfig struct {
ApiKey string
AcctID string
Url string
}